Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2011, 03:57 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,276
Abronsyth is on a distinguished road
Default Online Users Glitch

This isn't major, but is quite the eye sore. It seems my online.php page is a bit messed up...this is version 1.2.4, the only edit to this portion was changing cash to bits.


As you can see, it's a bit messed up XD Well, here's the online.php, notice anything that I can do to fix this little oops?
Code:
<?php

include("inc/bbcode.php");
include("inc/functions.php");

//***************//
//  START SCRIPT //
//***************//

// Convert the BBCODE to HTML
$article_content = bbconvert($article_content);

// Convert line breaks to <br>
$article_content = nl2br($article_content);

//header("refresh:300");

$article_title = "Who's Online";
$article_content = "<div style='text-align:left;'>This page shows you all online users within the last 5 minutes. After 5 minutes of inactivity they will be marked as offline and will not be shown here</div><br /><hr /><br /><p><span style='color: red; margin-left: 3%;'>Username</span><span style='color: purple; margin-left: 8%;'>Nickname</span><span style='color: green; margin-left: 8%;'>Pets Owned</span><span style='color: blue;margin-left:10%;'>Bits</span><span style='color: orange;margin-left:12%;'>Gender</span><br /><hr /><br /><p>";

$sql3="SELECT ".$GLOBALS['prefix']."online.username, ".$GLOBALS['prefix']."users.money,".$GLOBALS['prefix']."users.nickname ,".$GLOBALS['prefix']."users.gender FROM ".$GLOBALS['prefix']."online, ".$prefix."users WHERE ".$GLOBALS['prefix']."online.username = ".$prefix."users.username AND ".$GLOBALS['prefix']."online.username!='Visitor' ORDER BY ".$GLOBALS['prefix']."online.username";
$result3=runquery($sql3);
$userarray = array();
while($row = mysql_fetch_array($result3))
{
if($row['username'] != "Visitor")
{
$userarray[] = $row['username'];


$article_content = $article_content."<a href='profile.php?user=".$row['username']."' class='onlinelist'><span class='onlinelistt'>".$row['username']."</span><span class='onlinelistn'>".$row['nickname']."</span><span class='onlinelistj'>".getadoptables()."</span><span class='onlinelistp'>".$row['money']."</span><span class='onlinelistg'>".$row['gender']."</span></a><br />";

}
}
$article_content = $article_content."</p></p><br /><hr /><br />";

$result = runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username = 'Visitor'");
$total = mysql_num_rows($result);

$article_content = $article_content."Total Visitors: ".$total;

function getadoptables()
{
global $prefix;
global $userarray;
global $row;
$res = runquery("SELECT COUNT(*) AS cnt FROM ".$GLOBALS['prefix']."owned_adoptables WHERE owner = '".$row['username']."'");
while($adopts = mysql_fetch_array($res))
{
$cnt = $adopts['cnt'];
}
return $cnt;
}

//***************//
//  OUTPUT PAGE  //
//***************//

echo showpage($article_title, $article_content, $date);

?>
Thanks for all!
Iris
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #2  
Old 12-12-2011, 04:14 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 97,154
Tequila is on a distinguished road
Default

It's a CSS error. :3

Just add in codes for the spans listed in your CSS file. :3
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
Reply With Quote
  #3  
Old 12-12-2011, 08:04 PM
Inf3rnal's Avatar
Inf3rnal Inf3rnal is offline
Member
 
Join Date: Mar 2011
Location: Florida
Posts: 108
Gender: Male
Credits: 19,666
Inf3rnal is on a distinguished road
Default

I also does it in most themes. I've fixed this in my site. Basically the tables are code wrong and the data and headings are in separate tables and it gives it that unfortunate look.

I'll post a fix in a bit.
__________________
Finished Mods/Themes:
Admin Notes | Better Messages Buttons | Avatars in Memberlist
Chibiry! Theme | Midnight Rain Theme
Work in Progress:
Redesign of the core functions
Couple more themes
Reply With Quote
  #4  
Old 12-13-2011, 08:20 AM
Alaric Alaric is offline
Mod
 
Join Date: Nov 2011
Posts: 112
Gender: Male
Credits: 312,469
Alaric is on a distinguished road
Default

Same Problem ! :(

Reply With Quote
  #5  
Old 12-13-2011, 12:53 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 332,505
Hall of Famer is on a distinguished road
Default

I see... It looks like only the css of online.php only works in elements theme. There should be an easy way to fix it, I will think of one soon.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #6  
Old 12-13-2011, 05:39 PM
Inf3rnal's Avatar
Inf3rnal Inf3rnal is offline
Member
 
Join Date: Mar 2011
Location: Florida
Posts: 108
Gender: Male
Credits: 19,666
Inf3rnal is on a distinguished road
Default

I've got a quick fix. Replacing the Div's with Tables. I know that tables are bane of the web but for information in table form it's the obvious choice.

I'll post it later tonight or tomorrow morning depending on when I can get some free time.
__________________
Finished Mods/Themes:
Admin Notes | Better Messages Buttons | Avatars in Memberlist
Chibiry! Theme | Midnight Rain Theme
Work in Progress:
Redesign of the core functions
Couple more themes
Reply With Quote
  #7  
Old 12-14-2011, 04:57 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 332,505
Hall of Famer is on a distinguished road
Default

Umm oddly enough, I tried both the Elements and Simple themes on my Mys v1.2.4 demo site, and they worked nicely. Are you using an older version of the script or possibly with a custom theme?
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #8  
Old 12-14-2011, 05:16 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,276
Abronsyth is on a distinguished road
Default

Using Inf3rnal's Midnight Rain theme, on version 1.2.4. It may be he made a small error somewhere in the CSS, I'll go through it again and see what the problem might be...
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #9  
Old 12-14-2011, 08:31 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 332,505
Hall of Famer is on a distinguished road
Default

I see, then I wouldnt call this a glitch myself. It is basically resulted from incompatibility of custom themes and official script.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #10  
Old 12-14-2011, 08:33 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,290
SilverDragonTears is on a distinguished road
Default

This reminds me of the actual online glitch where a user is shown twice and the guest number HAS to be off. If this is inappropriate to bring up here, I apologize. Just thought about it and wondered if anyone had taken a look at it lately.

But on topic... If you just fix the css like Infernal said, it will look normal.
__________________

Check out SilvaTales
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving 'Users Online' from sidebar to footer? Kyttias Questions and Supports 0 02-21-2014 05:46 AM
Online Users Glitch Alaric Questions and Supports 1 04-28-2012 08:24 AM
amount of users currently online Tony Suggestions and Feature Requests 1 02-06-2011 10:20 PM
Event Notices & Users Online Missy Master Addons/Mods Graveyard 6 05-20-2010 07:20 AM
Level up glitch JayGatsby Questions and Supports 3 12-30-2008 09:44 AM


All times are GMT -5. The time now is 04:57 PM.

Currently Active Users: 596 (0 members and 596 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