YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Pages: 1 2 
Topic Tools
 
Admin only registration mode still displays Register button (Read 5,336 times)
 Aug 16th, 2012 at 2:44pm
There are no actions to perform.  

JonB 
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 3,614
Land of the Blazing Sun!


None
Admin only registration mode still displays Register button
Version 2.5 AE - Cosmetic Error

If a Forum is in admin-only registration mode, although the YaBB tab menu does not display 'Register', the login form still displays the Register button (although it is not functional). Its deceptive even to the Admin - I was testing my theory on cookies when I uncovered this, I was 'why can I not register!?'.  It says 'Register right there", LOL

I think we knew about this before, and there may have been a reason that the button was still displayed, although it is disabled.  I'm really unsure.  I know the login area was reworked -- I think at 2.3.1

I  know - blah, blah, blah -  Wink


Cool
 
I find your lack of faith disturbing.
 
IP Logged  
 Reply #1 - Aug 16th, 2012 at 3:02pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online
Posts: 1,853
Earth


YaBB 2.5
Re: Admin only registration mode still displays Register button
Oh Goodie - more to do on a day when I can't get out due to the weather. (Unlike you East Coast people, North-Westerners know better than to brave 3 digit temperatures outside when they have AC.)
 
WWW  
IP Logged  
 Reply #2 - Aug 16th, 2012 at 3:33pm
There are no actions to perform.  

batchman 
Support Team
****
Offline
Posts: 371
Orlando, FL


None
Re: Admin only registration mode still displays Register button
Hey! Some of us don't "choose" to go out, it is chosen for us, unless we no longer want to have a job.

Somebody remind me, why the heck did I ever move to Florida?!?

I hate summertime!
 
 
IP Logged  
 Reply #3 - Aug 16th, 2012 at 4:59pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online
Posts: 1,853
Earth


YaBB 2.5
Re: Admin only registration mode still displays Register button
And now you know why I refuse to move to Florida.

and for a fix to this issue: See Derek Barnstorm's post.

« Last Edit: Aug 16th, 2012 at 6:46pm by Dandello »  
WWW  
IP Logged  
 Reply #4 - Aug 16th, 2012 at 5:05pm
There are no actions to perform.  

xnoddyx 
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Online
Posts: 1,552
UK:Scotland/livingston


YaBB 2.5
Re: Admin only registration mode still displays Register button
Dandello wrote on Aug 16th, 2012 at 4:59pm:
Register button, it will say 'Registrations are closed or by Admin only.' (Another tweak would be to put in the Admin's email - or maybe not.)

maybe make this a Broadcast message to Admin's ?

Edited:
this just reminded me of a bug to post
« Last Edit: Aug 16th, 2012 at 5:07pm by xnoddyx »  
YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
WWW xnoddyx xnoddyx1  
IP Logged  
 Reply #5 - Aug 16th, 2012 at 5:14pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online
Posts: 1,853
Earth


YaBB 2.5
Re: Admin only registration mode still displays Register button
We could also give the admin a choice of messages - one for 'This board is Closed' and one for 'Registration is by Admin only' and use the YaBB email function to hide the Admin's email. (I would also recommend the Admin get a disposable email account if doing this.)

On the todo list.
 
WWW  
IP Logged  
 Reply #6 - Aug 16th, 2012 at 5:26pm
There are no actions to perform.  

xnoddyx 
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Online
Posts: 1,552
UK:Scotland/livingston


YaBB 2.5
Re: Admin only registration mode still displays Register button
out of curiosity how meny items are on the todo list now?
 
YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
WWW xnoddyx xnoddyx1  
IP Logged  
 Reply #7 - Aug 16th, 2012 at 5:31pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online
Posts: 1,853
Earth


YaBB 2.5
Re: Admin only registration mode still displays Register button
Off the top of my head - I've lost count.  Tongue
At least 5. And a couple are just brain-boggling.
 
WWW  
IP Logged  
 Reply #8 - Aug 16th, 2012 at 6:08pm
There are no actions to perform.  

Derek Barnstorm 
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline
Posts: 1,269
United Kingdom


YaBB 2.5
Re: Admin only registration mode still displays Register button
There was already a fix for this on the dev board:

http://www.dev.yabbworld.com/cgi-bin/forum/YaBB.pl?num=1294562849

Anyway, I think it makes more sense to hide the buttons rather than display text which could end up looking ugly. By the way, you shouldn't be hardcoding text - YaBB is translated into different languages. Wink

Find:

Code (Perl)Select All
    if ($maintenance || !$regtype) { $dbutton = ' disabled="disabled"'; } 


Replace:

Code (Perl)Select All
    if ($maintenance) { $hide_passbutton = " visibility: hidden;"; }
    if ($maintenance || !$regtype) { $hide_regbutton = " visibility: hidden;"; } 


Find:

Code (Perl)Select All
                        <input type="button" value="$maintxt{'97'}"$dbutton style="width: 160px;" onclick="location.href='$scripturl?action=register'" tabindex="6" class="button" /> 


Replace:

Code (Perl)Select All
                        <input type="button" value="$maintxt{'97'}" style="width: 160px;$hide_regbutton" onclick="location.href='$scripturl?action=register'" tabindex="6" class="button" /> 


Find:

Code (Perl)Select All
                        <input type="button" value="$loginout_txt{'315'}"$dbutton style="width: 160px;" onclick="location.href='$scripturl?action=reminder'" tabindex="5" class="button" /> 


Replace:

Code (Perl)Select All
                        <input type="button" value="$loginout_txt{'315'}" style="width: 160px;$hide_passbutton" onclick="location.href='$scripturl?action=reminder'" tabindex="5" class="button" /> 

« Last Edit: Aug 16th, 2012 at 8:23pm by Derek Barnstorm »  
 
IP Logged  
 Reply #9 - Aug 16th, 2012 at 6:40pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online
Posts: 1,853
Earth


YaBB 2.5
Re: Admin only registration mode still displays Register button
Thanks for reminding me of that. (I'd also forgotten there was a fix elsewhere.) And you're right, hard-coding the text is not a good idea.
« Last Edit: Aug 16th, 2012 at 6:42pm by Dandello »  
WWW  
IP Logged  
 Reply #10 - Aug 16th, 2012 at 8:23pm
There are no actions to perform.  

Derek Barnstorm 
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline
Posts: 1,269
United Kingdom


YaBB 2.5
Re: Admin only registration mode still displays Register button
The following highlighted lines should be removed from YaBB.pl too - otherwise users can still access the password reminder page:

Code (Perl)Select All
    if ($maintenance) {
        if    ($action eq 'login2')    { require "$sourcedir/LogInOut.pl"; &Login2; }
        # Allow password reminders in case admins forgets their admin password
        elsif ($action eq 'reminder')  { require "$sourcedir/LogInOut.pl"; &Reminder; }
        elsif ($action eq 'validate')  { require "$sourcedir/Decoder.pl"; &convert; }
        elsif ($action eq 'reminder2') { require "$sourcedir/LogInOut.pl"; &Reminder2; }
        elsif ($action eq 'resetpass') { require "$sourcedir/LogInOut.pl"; &Reminder3; }

        if (!$iamadmin) { require "$sourcedir/LogInOut.pl"; &InMaintenance; }
    } 

 
 
IP Logged  
 Reply #11 - Aug 16th, 2012 at 8:39pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online
Posts: 1,853
Earth


YaBB 2.5
Re: Admin only registration mode still displays Register button
Derek, has anyone told you recently that you're a genius?   Grin
 
WWW  
IP Logged  
 Reply #12 - Aug 16th, 2012 at 10:08pm
There are no actions to perform.  

xnoddyx 
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Online
Posts: 1,552
UK:Scotland/livingston


YaBB 2.5
Re: Admin only registration mode still displays Register button
Dandello wrote on Aug 16th, 2012 at 5:31pm:
Off the top of my head - I've lost count.  Tongue
At least 5. And a couple are just brain-boggling.

5 is not that bad is it or is that deep code?
ooo like that i think its always good to give the brain-boggling a time out and then come back to it as if you dont it will only drive you mad lol

Dandello wrote on Aug 16th, 2012 at 8:39pm:
Derek, has anyone told you recently that you're a genius?   Grin

and +1 me on that  Grin

 
YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
WWW xnoddyx xnoddyx1  
IP Logged  
 Reply #13 - Aug 22nd, 2012 at 6:14pm
There are no actions to perform.  

Derek Barnstorm 
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline
Posts: 1,269
United Kingdom


YaBB 2.5
Re: Admin only registration mode still displays Register button
I've been thinking about this, and seeing as the password reminder was originally left there in case an administrator forgot their password - and I can see that issue coming up at some point in the future - then maybe it would be best to leave the 'Forgot Password' button visible when the forum is in maintenance mode, but do a check when clicked to only allow admins to change their password and throw an error to anyone else. I don't know what you guys and girls think of that?
« Last Edit: Aug 22nd, 2012 at 6:24pm by Derek Barnstorm »  
 
IP Logged  
 Reply #14 - Aug 22nd, 2012 at 7:02pm
There are no actions to perform.  

xnoddyx 
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Online
Posts: 1,552
UK:Scotland/livingston


YaBB 2.5
Re: Admin only registration mode still displays Register button
Derek Barnstorm wrote on Aug 22nd, 2012 at 6:14pm:
I've been thinking about this, and seeing as the password reminder was originally left there in case an administrator forgot their password - and I can see that issue coming up at some point in the future - then maybe it would be best to leave the 'Forgot Password' button visible when the forum is in maintenance mode, but do a check when clicked to only allow admins to change their password and throw an error to anyone else. I don't know what you guys and girls think of that?

i like the sound of that but was also thinking about whatever it is happens when the password gets corrupted so the admin needs to ftp into the server to fix this.
can some kind of check be made to check for password corrupted and then set a new password for the admin and email it or a url link emailed to reset it?
 
YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
WWW xnoddyx xnoddyx1  
IP Logged  
Pages: 1 2 
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.