Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: EE style 'turn off site' function
Get this
and then wrap whatever you want to protect with this
<code><txp:ign_password_protect>
STUFF HERE
</txp:ign_password_protect>
</code>
Proud Canadian. Toronto Locksmith , Actualize Consulting
Offline
Re: EE style 'turn off site' function
Get this and then wrap whatever you want to protect with this
<code><txp:ign_password_protect>
STUFF HERE
</txp:ign_password_protect>
</code>
Hmm, that won’t quite cut it – if my site was down for maintainence, I wouldn’t want visitors to see a log in box – just a holding page reassuring them that everything is OK, and the site will be back up shortly. If they see a dialog asking for name and password, they’ll most likely be scared away, its not very friendly.
Also – you would have to add this to your page templates, and then remove it again. Not a lot of work if the opening and closing tags were both in forms that were being called, but it should just be a switch – site on, site off.
I evaluated Expression Engine a few weeks ago, and it was impressive. However, going back to Textpattern, this ability to put a site in maintainence mode was the only thing I came away wishing TXP could do.
Last edited by jonhicks (2005-09-12 08:15:51)
Cheers,
Jon VC#9
Offline
Re: EE style 'turn off site' function
I’d heard rumour that someone had figured out a hack or plugin to do this – but can’t find anything in the forums.
Anyone know?
Cheers,
Jon VC#9
Offline
Re: EE style 'turn off site' function
There’s this Jon but it goes back to July last year. I suspect you can probably work it out though. ;)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#41 2005-10-08 00:20:00
- NyteOwl
- Member
- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: EE style 'turn off site' function
Or without altering the admin console, just create the holding page/stylesheet and set them as the selection for the defeault section when you want to close the site.
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
#42 2005-10-22 10:00:18
- newnomad
- New Member
- Registered: 2005-06-11
- Posts: 5
Re: EE style 'turn off site' function
bump
any new input about this?
FWIW
http://blog.taragana.com/index.php/archive/wordpress-plugin-to-make-your-blog-temporarily-unavailable-for-maintenance/
Offline
Re: EE style 'turn off site' function
I’ve checked in a little change (for 4.0.2), that will allow you to use
<code><txp:txp_die msg=“Site is disabled” status=“503” /></code>
in a page_template. Together with the error-pages functionality that allows you to make custom templates for error pages, you can completely shut off your site and display a custom-page.
Now the only thing left to do for a plugin-author is to set a cookie in the backend, and add a conditional-tag for the frontend that checks said cookie.
Though sooner or later I think we’ll add site-off functionality to the core.
Last edited by Sencer (2005-10-22 17:28:55)
Offline
Re: EE style 'turn off site' function
Yay! Good news!
Cheers,
Jon VC#9
Offline
Re: EE style 'turn off site' function
I was wondering if you can still do this. I see that the “die” fuctionality works. I wonder if it is possible to use the rss_admin_edit plugin to allow access to the site for people logged in. It would seem to me like the two things are almost using the same mechanism- trying to figure out who is logged in and display it in some way.
bludrop studios .::. Creative Expression
Offline