Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  Download YaBB 2.5.2
You can download the newest version here
This Forum is now READ ONLY. For those who wish to participate in the development of YaBB 2.6 please go to YaBBForumSoftware, otherwise, go to YaBB Forum
  HomeHelpSearchLogin  
 
Pages: 1 2 3 
Send Topic Print
Can't login in maintenance mode (Read 32399 times)
westwegoman
Junior Member
BugKillerz
**
Offline


I Love YaBB 2.5.2!

Posts: 56
Re: Can't login in maintenance mode
Reply #30 - Oct 5th, 2012 at 9:00pm
 
Ok. I must have did something wrong within that line. I now get a Internal server error.

Guess thats why i'm not a programmer. Grin

Edited:
Edited to remove bad code Cheesy
Back to top
 
 
IP Logged
 
Dandello
YaBB Administrator
*****
Offline


YaBB 2.5.2 Rocks!

Posts: 630
The Land of YaBB
Gender: female
Re: Can't login in maintenance mode
Reply #31 - Oct 5th, 2012 at 9:03pm
 
it's a little tricky Code:
            if ( ($iamadmin || $iamgmod ) && $sessionvalid == 0 ) {&UpdateCookie("delete"); require "$sourcedir/LogInOut.pl"; &InMaintenance; };
 



There's an extra set of parentheses in there to bunch the two staff variables together.
Back to top
 

The Administrator.
WWW  
IP Logged
 
westwegoman
Junior Member
BugKillerz
**
Offline


I Love YaBB 2.5.2!

Posts: 56
Re: Can't login in maintenance mode
Reply #32 - Oct 5th, 2012 at 9:07pm
 
Ok. That now works.

I noticed just before you posted that I was missing a parentheses.
Back to top
 
 
IP Logged
 
Dandello
YaBB Administrator
*****
Offline


YaBB 2.5.2 Rocks!

Posts: 630
The Land of YaBB
Gender: female
Re: Can't login in maintenance mode
Reply #33 - Oct 5th, 2012 at 9:15pm
 
Excellent! I'm sure there's a neater way to do the 'if this, that, or the other staffer', but I think we can call this bug sprayed.
Back to top
 

The Administrator.
WWW  
IP Logged
 
westwegoman
Junior Member
BugKillerz
**
Offline


I Love YaBB 2.5.2!

Posts: 56
Re: Can't login in maintenance mode
Reply #34 - Oct 5th, 2012 at 9:17pm
 
Dandello wrote on Oct 5th, 2012 at 9:15pm:
but I think we can call this bug sprayed.

I agree. Smiley
Back to top
 
 
IP Logged
 
Dandello
YaBB Administrator
*****
Offline


YaBB 2.5.2 Rocks!

Posts: 630
The Land of YaBB
Gender: female
Re: Can't login in maintenance mode
Reply #35 - Nov 2nd, 2012 at 4:04pm
 
In the bug fixes this line in YaBB.pl Code:
 if ( ($iamadmin || $iamgmod ) && $sessionvalid == 0 ) {&UpdateCookie("delete"); require "$sourcedir/LogInOut.pl"; &InMaintenance; }; 



is now Code:
 if ( $staff  && $sessionvalid == 0 ) {&UpdateCookie("delete"); require "$sourcedir/LogInOut.pl"; &InMaintenance; }; 



But it needs to be tested to make sure it actually works. This should force mods to be logged out as well when Sessions is invoked in MM.

Thanks
Back to top
 

The Administrator.
WWW  
IP Logged
 
westwegoman
Junior Member
BugKillerz
**
Offline


I Love YaBB 2.5.2!

Posts: 56
Re: Can't login in maintenance mode
Reply #36 - Nov 2nd, 2012 at 4:26pm
 
I tested it with a moderator and a Gmod and both were logged out when placed in MM.

Moderator and Gmod had to log back in when taken out of MM.

Hope this is what you were looking for.

Edited:
As 'admin' I get a logout tab though it does let me log in.
I also noticed that a moderator still shows up in the 'users online' section in MM but at least they cant login.
Back to top
 

MM_Login.jpg (34 KB | 372 )
MM_Login.jpg
 
IP Logged
 
Dandello
YaBB Administrator
*****
Offline


YaBB 2.5.2 Rocks!

Posts: 630
The Land of YaBB
Gender: female
Re: Can't login in maintenance mode
Reply #37 - Nov 2nd, 2012 at 6:01pm
 
That's pretty much what I was looking for - to avoid that Sessions/MM/login collision. Most forums shouldn't be in MM long enough for this to be a worry. (If they are, then the admin has more to worry about than Gmods having to login when it's over.) But I was trying to get moderators covered like Gmods on the sessions thing - since moderators have the Sessions question. So it looks like this is working.

Edited:
We may have more tweaks as time goes on - but the main function appears to work, Admins can log in and out properly and we're avoiding that Sessions/MM collision.
Back to top
 

The Administrator.
WWW  
IP Logged
 
xnoddyx
BugKillerz
***
Offline


I Love YaBB 2.5.2!

Posts: 237
Gender: male
Re: Can't login in maintenance mode
Reply #38 - Nov 2nd, 2012 at 8:01pm
 
on the pc you have the probs on did you try a full Browser's Cache Clear as this is starting to sound like a Cache prob what makes me think this is
Quote:
If I open a different browser, I can take the forum out of maintenance mode and then switch back to the origional browser and everything is good to go.


see http://www.wikihow.com/Clear-Your-Browser's-Cache#Internet_Explorer_8

hope this helps if not then its not a Cache prob on the pc but in YaBB
Back to top
 
xnoddyx  
IP Logged
 
westwegoman
Junior Member
BugKillerz
**
Offline


I Love YaBB 2.5.2!

Posts: 56
Re: Can't login in maintenance mode
Reply #39 - Nov 2nd, 2012 at 8:10pm
 
xnoddyx wrote on Nov 2nd, 2012 at 8:01pm:
on the pc you have the probs on did you try a full Browser's Cache Clear as this is starting to sound like a Cache prob

I tried that but didn't work.

The fix that Dandello came up with, seems to have solved it.
Back to top
 
 
IP Logged
 
xnoddyx
BugKillerz
***
Offline


I Love YaBB 2.5.2!

Posts: 237
Gender: male
Re: Can't login in maintenance mode
Reply #40 - Nov 2nd, 2012 at 8:42pm
 
cool it was just to check that it wasent a Browser's Cache prob with something more  Wink
Back to top
 
xnoddyx  
IP Logged
 
Dandello
YaBB Administrator
*****
Offline


YaBB 2.5.2 Rocks!

Posts: 630
The Land of YaBB
Gender: female
Re: Can't login in maintenance mode
Reply #41 - Nov 2nd, 2012 at 11:05pm
 
Westwegoman did a lot of testing on this one - it was/is a YaBB issue which was made worse when we added the sessions checker to the login script - to keep people from directly accessing the login when they were already logged in.  Shocked

It's also a Cookie issue. Clearing your browser cookies helps, but it's a pain to do in some browsers.
Back to top
 

The Administrator.
WWW  
IP Logged
 
xnoddyx
BugKillerz
***
Offline


I Love YaBB 2.5.2!

Posts: 237
Gender: male
Re: Can't login in maintenance mode
Reply #42 - Nov 2nd, 2012 at 11:57pm
 
Dandello wrote on Nov 2nd, 2012 at 11:05pm:
It's also a Cookie issue. Clearing your browser cookies helps, but it's a pain to do in some browsers.

that's why i give this link http://www.wikihow.com/Clear-Your-Browser's-Cache  Wink
Back to top
 
xnoddyx  
IP Logged
 
Lady Lo
Global Moderator
*****
Offline


I Love YaBB 2.5.2!

Posts: 6
Re: Can't login in maintenance mode
Reply #43 - Feb 21st, 2013 at 9:49pm
 
notify test
Back to top
 
 
IP Logged
 
Pages: 1 2 3 
Send Topic Print