DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Portal Expiry

 12 Replies
 4 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Page 1 of 212 > >>
Author
Messages
Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!

Does DNN 9.x have a UI to set a portal's ExpiryDate?

If so, where is it?

Veteran Member
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
No. And there is no column in the table for portalsettings either (which would be the most logical place imho) so I don't think it can be done.
Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!
Posted By Joe Craig on 23 Mar 2021 09:53 PM

Does DNN 9.x have a UI to set a portal's ExpiryDate?

If so, where is it?

AFAIK, this was not implemented in the DNN9 CP.
IMO it would be good if this would be (re)added to DNN 9.

 

 

Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
It is ExpiryDate in the Portals table. And it works, ruthlessly!
Veteran Member
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

LOL... Thanks for the heads up.
Another hidden feature. And agreed with Timo: adding it as a setting in the UI would be a good one to revive.

Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
I added an issue for this.
New Around Here
Posts: 11
New Around Here

Greetings,

Where can I go to Portals table?

Best regards,
José Nobre

Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!

José,

either use SQL Server Management Studio (if you have remote desktop access to the server).

Or use the "SQL Console" in the Persona Bar:

<code>SELECT *<br /> FROM {databaseOwner}{objectQualifier}Portals</code>

should do the trick there. You should find the PortalID, and can do

<code>UPDATE {databaseOwner}{objectQualifier}Portals<br /> SET ExpiryDate = '2023-01-01'<br /> WHERE PortalID = x</code>

And - as always after changing values directly in the database - restart the application pool or clear the server cache (under "Server" in the Persona Bar).

Happy DNNing!
Michael

 

Michael Tobisch
DNN★MVP

DNN Connect
New Around Here
Posts: 11
New Around Here

Thank you for your response.

I followed you intructions and both restarted the application  and cleared the cache but site is still visible even though the contents were removed.

clipis_temp.PNG (1920×771) (ulusiada.pt)

Best regards,
José Nobre

Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!

It seems that is what it does (showing the site, but not any module). The modules are not removed, but not rendered. When you set the expiry date back to NULL or a future date, everything will be back on the site again.

But: there should be a message saying that the hosting contract expired on every page. Something like "The hosting contract for Your Website expired on 1-January-2023. Please contact [email protected] for further information." This could be an issue with your skin, please try it with the standard skin (Xcillion). Or use the newest DNN version (9.11.0), maybe that feature was removed and brought back.

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

DNN Connect
Page 1 of 212 > >>

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved