Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2009-03-12 11:35:58

lonelytraveller
Member
From: Firenze, Italy
Registered: 2008-04-04
Posts: 45

Re: rvm_maintenance (v0.5)

Did anyone manage to make this plug-in work with MLP? I’ve installed rvm_maintenance v0.5 on a clean 4.0.8 Txp install and it worked just fine, but it doesn’t work anymore after I installed the new mlp-0.9.11 version. Should I cross-post the question in the MLP new forum?

Last edited by lonelytraveller (2009-03-12 11:36:40)

Offline

#74 2009-03-12 13:32:53

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: rvm_maintenance (v0.5)

Will this work for a site installed in a sub-directory?

I’ve tried, but I can’t seem to get it to work – nothing happens.
It’s entirely possible that I’m doing something wrong – but I’ve followed the instructions fairly carefully.

Running 4.0.8

thx.

Offline

#75 2009-03-12 13:36:49

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: rvm_maintenance (v0.5)

To test if it’s working, you need to be logged out (from TXP admin) or navigate your site using another browser.
Could that be the reason?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#76 2009-03-12 13:58:57

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: rvm_maintenance (v0.5)

I tried that – still no luck.

I’m going to try another install that’s not in a sub-directory

Offline

#77 2009-03-12 15:20:00

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

Re: rvm_maintenance (v0.5)

lonelytraveller, it works fine for me with MLP and 4.0.8. Are you sure you are using the latest version (by graeme)?

Offline

#78 2009-03-12 18:18:20

lonelytraveller
Member
From: Firenze, Italy
Registered: 2008-04-04
Posts: 45

Re: rvm_maintenance (v0.5)

Hi Els, thanks for the fast reply: yes, I’m, using graeme’s latest version: MLP Pack 0.9.11 GP. I’ve installed Textpattern in the root folder, as I always do. I installed rvm_maintenance first (and it seemed to work), then MLP and a couple of other plug-ins. But on another install those same plug-ins do work together with rvm_maintenance. So I thought that buggy MLP could be the reason, ‘cause I’m still having some weird issues: however I just wanted to know if someone else is having the same problem, but if it works for you, then I guess it must be something in my Txp install.

Offline

#79 2009-06-07 18:52:08

MattH
Member
From: Ann Arbor, MI
Registered: 2004-10-17
Posts: 30

Re: rvm_maintenance (v0.5)

The plugin works perfectly for me with my site homepage and section homepages — that is, I see the splash if I’m not logged in, and the page if I am. However, I cannot see individual article pages, no matter if I am logged in or not. Are there any changes I could make to fix this?

[edit— works in Safari, individual pages don’t show in Firefox]

Last edited by MattH (2009-06-07 19:01:56)

Offline

#80 2009-06-13 06:26:04

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: rvm_maintenance (v0.5)

The plugin works fine on 2 sites, as expected.
On an other site, same hosting, last 3215 subversion, don’t work.

Here if I activate the plugin, error screen is correctly displayed, but for all people, logged or not logged.

Offline

#81 2009-07-18 08:18:56

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

Re: rvm_maintenance (v0.5)

Hi Folks.

Is there a way to use rvm_maintenance and give access to public visitors only for a specific section?
I’d trying to use a global $page variable with a conditional test into the plugin without any results.

Help will be much apprecied.
Best regards,


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#82 2009-07-18 11:59:45

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

Re: rvm_maintenance (v0.5)

Try adding this before the if construct ($pretext isn’t extracted yet when the plugin triggers).

global $pretext;

and this inside the if construct:

and $pretext['s'] != 'some-specific-section'

Offline

#83 2009-07-18 13:50:00

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

Re: rvm_maintenance (v0.5)

Ah Ah Ruud!

Nice to read you :))

Nope. I’d tried this without any attempted results:

register_callback('rvm_maintenance_init', 'pretext');
function rvm_maintenance_init()
{
  global $pretext;
  if (txpinterface == 'public' and !gps('txpcleantest') and !is_logged_in() and $pretext['s'] != 'my-specific-section')
  {
    $_GET = $_POST = $_REQUEST = array();
    register_callback('rvm_maintenance', 'pretext_end');
  }
}
function rvm_maintenance()
{
    txp_die('Site maintenance in progress. Please check back later.', 503);
}

Do I made an error?
Cheers,


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#84 2009-07-18 15:24:54

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

Re: rvm_maintenance (v0.5)

Patrick

Unfortunately it’s not as simple as that because the $pretext variables aren’t initialised at the time the function you altered is called.

I had something similar come up with this plugin recently as it wasn’t blocking the rss or atom feeds when my site was in maintenance mode. Let me remind myself of my solution and post again when I’ve reviewed it.

Last edited by net-carver (2009-07-18 16:03:03)


Steve

Offline

Board footer

Powered by FluxBB