Im trying to increase the length of the online list moods, ive edited the mood set and DB as needed and its writing the full mood to the database just fine, however for some reason its only displaying the first 38 characters, i dont see anywhere in the coding that limits it to this number... Anyone have any ideas please?
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>else if($action=="online")
{
$mmsg = htmlspecialchars(getsetmood(getuid_sid($sid)));
addonline(getuid_sid($sid),"Online List ($mmsg)","index.php?action=online");
echo "<head>";
echo "<title>Online List</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
//echo "<div><img src=\"../images/onlinelist.gif\" alt=\"Online List\"/></div>";
echo popup($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
$num_items = getnumonline(); //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if($page>$num_pages)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
//changable sql
$sql = "SELECT
a.name,a.perm, b.place, b.userid FROM ibwf_users a
INNER JOIN ibwf_online b ON a.id = b.userid
GROUP BY 1,2
LIMIT $limit_start, $items_per_page
";
echo "<p align=\"center\">";
$items = mysql_query($sql);
echo mysql_error();
while ($item = mysql_fetch_array($items))
{
if($item[1]=='0')
{
$tit = "<img src=\"../images/member.gif\" alt=\"*\"/>";
}if($item[1]=='1')
{
$tit = "<img src=\"../images/moderator.gif\" alt=\"*\"/>";
}if($item[1]=='2')
{
$tit = "<img src=\"../images/admin.gif\" alt=\"*\"/>";
} if($item[1]=='3')
{
$tit = "<img src=\"../images/head.gif\" alt=\"*\"/>";
} if($item[1]=='4')
{
$tit = "<img src=\"../images/owner.gif\" alt=\"*\"/>";
} if($item[1]=='5')
{
$tit = "<img src=\"../images/tech.gif\" alt=\"*\"/>";
} if($item[1]=='6')
{
$tit = "<img src=\"../images/host.gif\" alt=\"*\"/>";
}
$sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE name='$item[0]'"));
if($sex[0]=="M"){$usersex = "<img src=\"../images/male.gif\" alt=\"(M)\"/>";}
if($sex[0]=="F"){$usersex = "<img src=\"../images/female.gif\" alt=\"(F)\"/>";}
if($sex[0]==""){$usersex = "";}
$text = parsepm($item[2], $sid);
if($item[1]>'0')
{
$lnk = "<a href=\"index.php?action=viewuser&who=$item[3]&sid=$sid\">$tit$item[0]$tit
$usersex
</a>
";
}else{
$lnk = "<a href=\"index.php?action=viewuser&who=$item[3]&sid=$sid\">$tit$item[0]$tit
$usersex
</a>
";
}
echo "$lnk $text
";
}
//echo "</p>";
//echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"index.php?action=online&page=$ppage& ;sid=$sid\">«Prev</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"index.php?action=online&page=$npage& ;sid=$sid\">Next»</a>";
}
echo "
$page/$num_pages";
if($num_pages>2)
{
echo getjumper($action, $sid,"index");
}
echo "</p>";</div>
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>function getsetmood($uid)
{
$getdata = mysql_fetch_array(mysql_query("SELECT setmood FROM ibwf_users WHERE id='".$uid."'"));
return $getdata[0];
$text = getsmilies($text);
}</div>
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>else if($action=="online")
{
$mmsg = htmlspecialchars(getsetmood(getuid_sid($sid)));
addonline(getuid_sid($sid),"Online List ($mmsg)","index.php?action=online");
echo "<head>";
echo "<title>Online List</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
//echo "<div><img src=\"../images/onlinelist.gif\" alt=\"Online List\"/></div>";
echo popup($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
$num_items = getnumonline(); //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if($page>$num_pages)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
//changable sql
$sql = "SELECT
a.name,a.perm, b.place, b.userid FROM ibwf_users a
INNER JOIN ibwf_online b ON a.id = b.userid
GROUP BY 1,2
LIMIT $limit_start, $items_per_page
";
echo "<p align=\"center\">";
$items = mysql_query($sql);
echo mysql_error();
while ($item = mysql_fetch_array($items))
{
if($item[1]=='0')
{
$tit = "<img src=\"../images/member.gif\" alt=\"*\"/>";
}if($item[1]=='1')
{
$tit = "<img src=\"../images/moderator.gif\" alt=\"*\"/>";
}if($item[1]=='2')
{
$tit = "<img src=\"../images/admin.gif\" alt=\"*\"/>";
} if($item[1]=='3')
{
$tit = "<img src=\"../images/head.gif\" alt=\"*\"/>";
} if($item[1]=='4')
{
$tit = "<img src=\"../images/owner.gif\" alt=\"*\"/>";
} if($item[1]=='5')
{
$tit = "<img src=\"../images/tech.gif\" alt=\"*\"/>";
} if($item[1]=='6')
{
$tit = "<img src=\"../images/host.gif\" alt=\"*\"/>";
}
$sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE name='$item[0]'"));
if($sex[0]=="M"){$usersex = "<img src=\"../images/male.gif\" alt=\"(M)\"/>";}
if($sex[0]=="F"){$usersex = "<img src=\"../images/female.gif\" alt=\"(F)\"/>";}
if($sex[0]==""){$usersex = "";}
$text = parsepm($item[2], $sid);
if($item[1]>'0')
{
$lnk = "<a href=\"index.php?action=viewuser&who=$item[3]&sid=$sid\">$tit$item[0]$tit
$usersex
</a>
";
}else{
$lnk = "<a href=\"index.php?action=viewuser&who=$item[3]&sid=$sid\">$tit$item[0]$tit
$usersex
</a>
";
}
echo "$lnk $text
";
}
//echo "</p>";
//echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"index.php?action=online&page=$ppage& ;sid=$sid\">«Prev</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"index.php?action=online&page=$npage& ;sid=$sid\">Next»</a>";
}
echo "
$page/$num_pages";
if($num_pages>2)
{
echo getjumper($action, $sid,"index");
}
echo "</p>";</div>
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>function getsetmood($uid)
{
$getdata = mysql_fetch_array(mysql_query("SELECT setmood FROM ibwf_users WHERE id='".$uid."'"));
return $getdata[0];
$text = getsmilies($text);
}</div>
Comment