Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-11-26 22:27:24

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,456
Website GitHub

Re: rvm_maintenance (v0.5)

ruud wrote:

I’d say doing it as a plugin is even a bit more efficient because during times when the plugin is not in use… the code is not even loaded ;)

Fair point, well made. Plugin’s fine by me, it’s ace.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#14 2007-11-27 03:44:20

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: rvm_maintenance (v0.5)

ruud – so if I understand this correctly. Is this the best solution for checking if the visitor is logged in on the backend? As in, could your code be adapted into a plugin to show an “edit” link for articles on the main site if you are logged in?

Offline

#15 2007-11-27 03:53:30

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: rvm_maintenance (v0.5)

variaas wrote:

ruud – so if I understand this correctly. Is this the best solution for checking if the visitor is logged in on the backend? As in, could your code be adapted into a plugin to show an “edit” link for articles on the main site if you are logged in?

rss_article_edit already does this.

Offline

#16 2007-11-27 10:18:26

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: rvm_maintenance (v0.5)

As iBlastoff points out, rss_article_edit does something similar.

My method leads to a plugin like rvm_edit_link that offers both article and comment edit links ;)
It has the advantage that no configuration is needed, but only works if you’ve been logged in on the admin side in the same browser session. Rob Sable’s approach, which allows you to set/remove the cookie manually is probably more user friendly.

Offline

#17 2007-11-27 23:27:09

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: rvm_maintenance (v0.5)

Thanks guys! So it looks like the only limitation to this (and rss_edit_link) is if I logout of TXP’s backend, the cookie will still reside in the browser and the edit link will appear. Is there a way to register the logout event to remove the cookie?

Offline

#18 2007-11-28 08:08:15

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: rvm_maintenance (v0.5)

Nope.

Offline

#19 2007-12-02 17:57:33

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: rvm_maintenance (v0.5)

Ruud

your plugin worked well whilst I upgraded my plugins site from 4.0.3 to 4.0.5. Thank you!


Steve

Offline

#20 2007-12-02 18:33:41

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: rvm_maintenance (v0.5)

Yes, it is very nice to be able to just turn it off and on! Thank you.

The only down side is that it won’t be displayed in my active plugins list (rsx_plugins_list) when not in maintenance mode… ;)

Offline

#21 2007-12-19 16:47:03

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: rvm_maintenance (v0.5)

Nice plugin Ruud.
Anyone else having trouble making it work with one browser or another?
I can’t get it to work in FireFox. I suspect its a cookie setting or some plugin, but I can’t figure it out?
I’m accepting cookies from all sites.

Matthew


Offline

#22 2007-12-19 16:57:50

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: rvm_maintenance (v0.5)

Matthew

working fine for me in Firefox. You need to take a quick visit to the admin side — and login — to get the revelation cookie.


Steve

Offline

#23 2007-12-19 17:04:18

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: rvm_maintenance (v0.5)

Matthew

I had to clear the cache to be allowed to see the site.

Offline

#24 2007-12-19 20:13:11

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: rvm_maintenance (v0.5)

Hmm. Can’t figure it out. Still now working. I see the cookie in the list too? Weird.


Offline

Board footer

Powered by FluxBB