Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[request] a maintenance mode for textpattern
i’m aware that this has been brought up a couple of times already and also know about the different htaccess tricks but i’m still looking for a convenient and also end-user-friendly way to do this.
i’d like to be able to work on a textpattern site while other visitors (which are obviously not logged-in to the backend) get redirected to a specific page or just get a customizable status message.
i imagine that this could sit in a tab under extensions.. “maintenance” with two radio buttons “online”/“offline” or something like that. below one could specify what to do with visitors when the site is “offline”.
additionally, i’m wondering if this would be something for the txp core under “preferences” as most other CMSs have this fucntionality and it’s really important for a nice and clean workflow.
Offline
Re: [request] a maintenance mode for textpattern
i agree this would be nice. wordpress has a simple to use plugin for this purpose.
too bad wordpress blows chunks
Last edited by iblastoff (2007-09-27 10:35:21)
Offline
Re: [request] a maintenance mode for textpattern
Hi there…
a couple of my students will be trying to tackle this for the next few weeks… watch this place for announcements.
I never used Wordpress so we won’t be looking at that plugin. We’ll be developing from scratch.
Our first idea is an admin tab with a radio button for maintenance vs. on-line mode, plus a text window to customize the page.
The fight of the guys with Texpattern internals (especially with the public side callbacks) will allow more or less functionality in this text window.
In any way, we’ll publish the full php source so that anyone is able to further work on this.
Regards.
Mariano Absatz – El Baby
I don’t suffer from insanity. I enjoy every minute of it.
Offline
Re: [request] a maintenance mode for textpattern
hey ‘baby’ that sounds promising! good luck with your students and looking forward to your contributions.
Offline
Re: [request] a maintenance mode for textpattern
sounds great. thanks for tackling this…
Offline
#6 2007-11-07 17:16:22
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: [request] a maintenance mode for textpattern
Great. Just what I was looking for.
Offline
Re: [request] a maintenance mode for textpattern
oh, another enthusiatic yay from me… would be great!
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
Re: [request] a maintenance mode for textpattern
It’s a very good news :) Hope we can try it soon.
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: [request] a maintenance mode for textpattern
coming soon… basic functionality is there, I expect some polishing by the students before posting (the current user interface is kinda PITA, and help is only in Spanish).
I think this will be ready by this weekend.
Mariano Absatz – El Baby
I don’t suffer from insanity. I enjoy every minute of it.
Offline
Re: [request] a maintenance mode for textpattern
baby wrote:
I think this will be ready by this weekend.
awesome! can’t wait :)
Offline
Re: [request] a maintenance mode for textpattern
I have a maintenance plugin for TXP that has no user interface at all (not anything that isn’t already in TXP). A friend of mine needed it for a new website she is setting up. I’m willing to share it, but I don’t want to offend Mariano as he’s already working on an alternate approach.
Offline
Re: [request] a maintenance mode for textpattern
Hi Ruud,
it’s no offense at all… the more, the merrier.
In fact, it’s not actually me building the plugin but three of my students are… they were required (by me) to choose a plugin for txp (if it was something wanted in this forum, it was a plus) and develop it… so, passing the course is enough reward for them :-)
Go ahead and publish… I’ll do the same… and maybe some people prefer your approach and some other my students’… and then, maybe they’re mostly alike and we can later merge.
Regards.
Mariano Absatz – El Baby
I don’t suffer from insanity. I enjoy every minute of it.
Offline
#13 2007-11-13 16:09:51
- Chalito
- Plugin Author
- Registered: 2007-08-22
- Posts: 26
Re: [request] a maintenance mode for textpattern
baby wrote:
In fact, it’s not actually me building the plugin but three of my students are… they were required (by me) to choose a plugin for txp (if it was something wanted in this forum, it was a plus) and develop it… so, passing the course is enough reward for them :-)
Yeah, we’ll get you a Great Dictator hat for xmas or something :)
beats having to do a written exam though.
(sorry for the offtopic, couldn’t resist)
Last edited by Chalito (2007-11-13 16:10:45)
Offline
Re: [request] a maintenance mode for textpattern
Well, quick and dirty… you can download the plugin directly from our subversion repository.
Don’t pay attention to the help, it is not only in Spanish, but also outdated…
Simply load the plugin, once activated, you’ll have a new tab within the Admin tab, named Site Maintenance.
There you’ll see a couple of radio-buttons which allows you to have the site Active (that is, working normally, which is obviously the default), or to put it in Maintenance.
Below the radio buttons there’s an editable area where you can paste a complete HTML page which will be displayed when the site is in maintenance mode. I hardwired a default page, but I recomend you change it to something suitable before puting your site in maintenance mode.
The plugin writes a couple of files under the …./files subdirectory in your textpattern, one for control, the other for the HTML content.
Some polishing to the code still needs to be done (let alone the help), but it shouldn’t crash on you… (I hope).
All feedback is very welcome… in a couple of days I’ll try to have a 1.0 or 0.9 version (depending on the feedback, or lack thereof) and have my students post in the author support forum.
Regards.
Last edited by baby (2007-12-26 21:27:25)
Mariano Absatz – El Baby
I don’t suffer from insanity. I enjoy every minute of it.
Offline
Re: [request] a maintenance mode for textpattern
woot!
though i get this error when pressing go (happens when i choose either active or maintenance radio buttons and then press go)
Fatal error: Call to undefined function: file_put_contents() in /home/username/public_html/textpattern/lib/txplib_misc.php(534) : eval()’d code on line 105
i looked up the function and it looks like php5 is required is that correct? i’m running txp 4.0.5 under php 4.4.7
Offline