You are not logged in.
This plugin, when activated, will show a maintenance page to all visitors who are not logged in on the admin side of Textpattern. Requires Textpattern 4.0.7 or higher.
Features:
Changelog:
Last edited by ruud (2009-01-05 21:15:28)
Offline
Very interesting plugin, and very useful. Tkanks lot :)
Just one question : do you think it would be difficult to add a warning message within the back-end header in the purpose to inform the administrator that the website is in maintenance mode. The goal is to remember administrators that the website is unavailable and don’t forget to switch in active mode.
I’d traying to test you cookie and display this kind of message, but cause live mode is activate when your plugin is disable, the cookie still exist.
Best regards,
Last edited by Pat64 (2007-11-14 19:49:33)
Patrick.
Txp Tricks & Tips by french users : http://txp-fr.net | G+
@Devs : Can’t find the punched tape version of TXP and I need it!
Happy user of TXP 1.0RC1
Offline
It’s not difficult, but my aim is to keep it small and adding such code, which involves adding some javascript at the bottom of each page to rewrite the pagetop, would increase the code size considerably with little extra benefit. Also, adding a warning message somewhere at the top by using such a Javascript solution could easily conflict with another plugin trying to do the same thing. Although I can see why a warning on each admin page is useful, the benefits don’t outweigh the downsides, IMHO.
If you want to test if the plugin is active, just use function_exists('rvm_maintenance') in an if-construct.
Offline
Ruud the Great said :
If you want to test if the plugin is active, just use function_exists(‘rvm_maintenance’) in an if-construct.
Fine. Thanks lot again.
Best regards,
Patrick.
Txp Tricks & Tips by french users : http://txp-fr.net | G+
@Devs : Can’t find the punched tape version of TXP and I need it!
Happy user of TXP 1.0RC1
Offline
This was so much needed! Is there a possibility to absorb it in the default install for the next txp release? It could appear in the preferences with an on/off radio button next to it.
neme.org | neme-imca.org | hblack.net | LABS
Offline
colak
I think that would be a good idea. It’s a pretty small plugin and would, IMO, make more sense to have it in the core than as an optional add-on.
ruud
Nice bit of code, thank you! I, for one, am learning from you :)
— Steve
Textile | My plugins on GitHub | @netcarver
Offline
Strange error. I get twice this message:
Warning: unknown_tag: sitename in /web/htdocs/www.site.it/home/textpattern/publish.php on line 973
…in the error page with maintenance advice. Sitename actually isn’t displayed (!). Am I missing something?
Very useful plugin, anyway!
Z-
Offline
Zanza wrote:
Strange error. I get twice this message:
Warning: unknown_tag: sitename in /web/htdocs/www.site.it/home/textpattern/publish.php on line 973
…in the error page with maintenance advice. Sitename actually isn’t displayed (!). Am I missing something?
Very useful plugin, anyway!
Z-
received the same error and decided to play around with what was going on.
for whatever reason, when the plugin is on, it doesn’t seem to recognize <txp:sitename /> but it will recognize <txp:site_name />
(devs: the default error page uses <txp:site_name /> while the regular default page uses <txp:sitename />. that should probably be corrected?)
zanza to answer your question, you can edit your error_default page (or custom page if you made one) and just replace all instances of <txp:sitename /> with <txp:site_name />
Last edited by iblastoff (2007-11-20 00:41:18)
Offline
ruud
Awesome, dude! Exactly what the doctor ordered.
+1 for this making it to the core if possible.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern.
Txp Builders – finely-crafted code, design and Txp
Offline