Mysidia Adoptables Support Forum  

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

Notices

Online status glitch with friendlist Issue Tools
issueid=12 04-05-2012 08:19 AM
Administrator, Lead Coder
Online status glitch with friendlist
Users on friendlist always appear as online, while they appear as offline when they actually are online

So you see the problem already, the online/offline checker is malfunctioning and does its job completely the opposite to what it is supposed to. To fix it, simply go to functions_users.php at around line 16-20(it is line 18 for me, but can differ for you guys/gals), change the code is_object($row) to !is_object($row). This will reverse the online/offline checker's action, and thus resolving this tiny glitch. Note it is fixed in Mys v1.3.1 already.
Issue Details
Project The Bug Tracker
Category Unknown
Status Fixed
Priority 10 - Lowest
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)

04-05-2012 10:59 AM
Member
 
I couldn't find this in mine. I copied all the surrounding code around it and pasted it here.
The following is on lines 12-24

function usernametouid($name){
$stmt = $GLOBALS['adopts']->query("SELECT * FROM {$GLOBALS['prefix']}users WHERE username='{$name}'");
$row = $stmt->fetch(PDO::FETCH_ASSOC);
return $row['uid'];
}

function getonlinestatus($name) {
$stmt = $GLOBALS['adopts']->query("SELECT * FROM {$GLOBALS['prefix']}online WHERE username='{$name}'");
$row = $stmt->fetch(PDO::FETCH_ASSOC);

if(is_array($row)) $onlinestatus = "<img src='templates/icons/user_offline.gif'>";
else $onlinestatus = "<img src='templates/icons/user_online.gif'>";
return $onlinestatus;
Reply
04-06-2012 08:29 AM
Administrator, Lead Coder
 
Oh my goodness, sorry about that I changed arrays to objects in my scripts. In your case, just change if(is_array($row)) to if(!is_array($row)) and it should work flawlessly.
Reply
Reply

Issue Tools
Subscribe to this issue

All times are GMT -5. The time now is 04:46 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