Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Projects > The Bug Tracker > Bug

Notices

Guests cannot click adoptables Issue Tools
issueid=8 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
Project The Bug Tracker
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'.
Reply
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.
Reply
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.
Reply
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.
Reply
Reply

Issue Tools
Subscribe to this issue

All times are GMT -5. The time now is 05:06 AM.

Currently Active Users: 451 (0 members and 451 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636