Guests cannot click adoptables
|
03-29-2012 01:47 AM
|
 |
Administrator, Lead Coder
|
|
Guests cannot click adoptables
Guests cannot click adoptables, even if they havent done that already...
It seems that the new script is somewhat hostile to guests, several privileges have been removed from unregistered users. Though most are supposed to be the way they are, this one is not and clearly a glitch. I've fixed this bug and it will not appear in Mys v1.3.1 and other future releases.
|
|
Issue Details
|
Category Unknown
Status Fixed
Priority 4
Affected Version Mys v1.3.0
Fixed Version Mys v1.3.1
Users able to reproduce bug
0
Users unable to reproduce bug
0
Assigned Users
Hall of Famer
Tags
(none)
|
|
03-29-2012 01:50 AM
|
 |
Administrator, Lead Coder
|
|
|
So here is the solution for Mys v1.3.0 users. Go to line 52 from your levelup.php and find this:
PHP Code:
if($userstatus['canlevel'] == "no"){
Replace the line with the following codes:
PHP Code:
if($isloggedin == "yes" and $userstatus['canlevel'] == "no"){
If you need any explanation for this, well, the problem is in the variable $userstatus['canlevel']. For users it evaluates to 'yes' or 'no', but for guests it's simply an empty string that returns neither 'yes' nor 'no'.
|
03-29-2012 09:35 AM
|
 |
Member
|
|
|
49. $userstatus = getuserstatus($loggedinname);
50.
51. if(!is_object($voters) and $userstatus['canlevel'] == "yes"){
52.
53. // The number of results is still zero, so we did not vote on this adoptable yet today...
54.
55. // Now we see if the adoptable is frozen by its owner. If it is, we do not level...
That's what I see on mine. I didn't know about the problem till i saw this, but in case I went to the wrong .php it's the one under the public_html directory.
|
03-29-2012 09:40 AM
|
 |
Administrator, Lead Coder
|
|
|
Oh my goodness, looks like my levelup.php file is a bit different. But anyway, look at this line:
PHP Code:
if(!is_object($voters) and $userstatus['canlevel'] == "yes"){
Replace with:
PHP Code:
if($isloggedin == "yes" and $userstatus['canlevel'] == "no"){ $article_content .= "It appears that you have been banned from leveling up adoptables. Please contact an administrator for assistance."; } elseif(!is_object($voters)){
And you should be fine.
|
03-29-2012 12:10 PM
|
 |
Member
|
|
|
Thank you ^,^ I was worried for a bit there that I went to the wrong directory or area.
|
All times are GMT -5. The time now is 08:35 AM.
Currently Active Users: 4539 (0 members and 4539 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members,
jolob.