Page Index Toggle Pages: 1
Topic Tools
Normal Topic Incorrect Error Messages (Read 972 times)
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,247
Location: Earth

YaBB 2.6.0
Re: Incorrect Error Messages
Reply #1 - Nov 6th, 2012 at 9:31pm
Post Tools
This Topic was moved here from YaBB 2 - Bugs [Need Verification] [move by] Dandello.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Incorrect Error Messages
Aug 26th, 2012 at 6:11pm
Post Tools
Looks like the same error message for personal messages was used for the UseCP page when it was added. Going directly to 'action=mycenter' if you are not logged in says:

Quote:
Personal Messaging is only for members

But that obviously makes little sense because you may not have been trying to view them - you could have been trying to view the profile settings or favourites.

In Sources/MyCenter.pl find:

Code (Perl)
Select All
sub mycenter {
    if ($iamguest) { &fatal_error('im_members_only'); } 



And change to:

Code (Perl)
Select All
sub mycenter {
    if ($iamguest) { &fatal_error('members_only'); } 


Also, if you try to access the register (action=register) page while logged you get the correct message (You cannot register while logged in.), but if you try to view 'action=register2' you receive the message 'You cannot register unless you agree to the registration agreement.'.

To display the same correct error for both, in Sources/Register.pl find:

Code (Perl)
Select All
if (!$iamguest) { &fatal_error("no_registration_logged_in"); } 


Remove it and add it after:

Code (Perl)
Select All
if ($action eq 'detailedversion') { return 1; } 

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top