There seems to be an issue with the user/* pages like user/login and user/register etc.
They are always displayed using the maintenance-page.tpl.php so they don't have the blocks they should have (even when the site is not in offline mode).
The problem is that as far as I can tell (decent doco seems to be lacking in this area) maintenance mode and it's related MAINTENANCE_MODE constant is not the same thing as the site_offline variable, which is set at admin/settings/site-maintenance.
The MAINTENANCE_MODE constant is only used in relation to the install.php and update.php processes.
Outside of those the MAINTENANCE_MODE constant is not used.
Site maintenance mode, which is what you refer to in your post at http://adaptivethemes.com/how-to-theme-the-user-login-page-in-maintenanc... is related to variable_get('site_offline', 0);
as opposed to MAINTENANCE_MODE.
In addition, the code only checks that arg(0) == user, which also includes user/register and user/password.
This patch addresses these 2 points.
Technically they could be in separate issues if you prefer but thy are both small and related.
Comment | File | Size | Author |
---|---|---|---|
adaptivetheme-maintenance_page.patch | 1.99 KB | rooby |
Comments
Comment #1
rooby CreditAttribution: rooby commentedAlso, I have no idea why this is in here. I couldn't get rid of it.
Powered by Dreditor.
Comment #2
Jeff Burnz CreditAttribution: Jeff Burnz commentedLooking good, I like this patch a lot. Just running through some tests now and all is looking good, I'll probably commit this shortly.
Thanks a lot for revising and improving this, it really did need an overhaul (it was kinda hackish I know) so this is a vast improvement.
Comment #3
XiaN Vizjereij CreditAttribution: XiaN Vizjereij commentedSubscribing and working for me. I always wondered if that was intentional or a bug :D
Comment #4
Jeff Burnz CreditAttribution: Jeff Burnz commentedCommitted to 6.x-3.x CVS
Comment #5
Jeff Burnz CreditAttribution: Jeff Burnz commentednow backporting to 6.x-2.x to get this feature in there for those wanting to stay with the 2.x major version.
Comment #6
rooby CreditAttribution: rooby commentedCool, thanks.
Comment #7
Jeff Burnz CreditAttribution: Jeff Burnz commented