Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   I'm showing up more then once (http://www.mysidiaadoptables.com/forum/showthread.php?t=2244)

AlkseeyaKC 07-13-2011 09:03 AM

I'm showing up more then once
 
http://neon.planetkalzy.com/

When I'm logged in, It shows I'm logged in twice on the online list. and just today its reading me three times now. Its only doing this to my account. I don't know what could be causing this. O - o; Maybe someone has an Idea? ^_^;

Hall of Famer 07-13-2011 02:42 PM

umm this is interesting, it only happens to your account but not with others? Theres a chance that you opened multiple whos online pages in your webbrowser. I am sure theres a way to fix this, which can be done easily.

SilverDragonTears 07-14-2011 04:27 PM

Does it to me too, but I just never thought to bother with it.

Inf3rnal 07-15-2011 07:16 AM

There is a quick way to produce this. Login using 2 browsers then go to the online list.

You will be there twice.

AlkseeyaKC 07-18-2011 10:54 AM

I get it when I just visit the page sometimes. XD; I have not had it happen for a while. Maybe I had more then one tab open and that caused that some how.

SilverDragonTears 07-20-2011 07:27 PM

It happens to me and others members quite often =/

Inf3rnal 07-21-2011 11:55 AM

Maybe add an if/else statement.

something like:

if username = username
show once?

SilverDragonTears 08-27-2011 10:48 PM

ok it's driving me mad.... .anyone feel like helping with this?

Hall of Famer 08-27-2011 11:36 PM

Well I am offering one possible solution, not sure if it works since I have never encountered this glitch myself on demo site(makes sense though, there is usually only me on demo site).

Go to your inc/functions.php file and find this:

PHP Code:

if($isloggedin != "yes")

{

    
$loggedinname "Visitor";

}



$result runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE `session` = '".$session."'");

$count mysql_num_rows($result);

if(
$count == 0)

{

    
runquery("INSERT INTO ".$GLOBALS['prefix']."online VALUES('$loggedinname', '$session', '$time')");



Replace with:
PHP Code:

$result runquery("SELECT * FROM {$GLOBALS['prefix']}online WHERE `session` = '{$session}'");

$count mysql_num_rows($result);

$result2 runquery("SELECT * FROM {$GLOBALS['prefix']}online WHERE `username` = '{$loggedinname}'");

$count2 mysql_num_rows($result2);

if(
$isloggedin != "yes")

{

    
$loggedinname "Visitor";

}

if(
$count == and $count2 == 0)

{

    
runquery("INSERT INTO {$GLOBALS['prefix']}online VALUES('$loggedinname', '$session', '$time')");



This way it should fix the problem of same user appearing more than once from who's online page. Again I cant tested this myself with only me on demo site, so run it on your active site with members and see if it works. It will not be included in Mys v1.2.3, so Id recommend you to upgrade before fixing this.

SilverDragonTears 08-27-2011 11:45 PM

K I tried it so I'll let you know how it works... about upgrading....

If I'm going to lose all my edits I may not upgrade. I have probably made over 100 if not more edits to my scripts.


All times are GMT -5. The time now is 11:55 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.