Hi. any1 say how I can add at lavalair wml at only nicknames staff a bbcode ex:
admin moderator
at page chat.php and online list???
tnks at advance
if like my post click:
Started on the old forum in March 2008 · view the original in the archive · old links redirect here
Hi. any1 say how I can add at lavalair wml at only nicknames staff a bbcode ex:
admin moderator
at page chat.php and online list???
tnks at advance
if like my post click:
in chat.php find
echo "<a href=\"chat.php?action=say2&sid=$sid&who=$chat[0]&rid=$rid&rpw=$rpw\">$optlink</a> - ";
copy and replace
$item = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$chat[0]."'"));
if($item[0]=='0')
{
$f1 = "";
$f2 = "";
}if($item[1]=='1')
{
$f1 = "[i]";
$f2 = "[/i]";
}if($item[1]=='2')
{
$f1 = "[b]";
$f2 = "[/b]";
}
echo "$f1 <a href=\"chat.php?action=say2&sid=$sid&who=$chat[0]&rid=$rid&rpw=$rpw\">$optlink</a> - $f2";
in index.php copy and replace
else if($action=="online")
{
addonline(getuid_sid($sid),"Online List","index.php?action=online");
echo "<card id=\"main\" title=\"ONLINE\">";
//echo "<p align=\"center\"><img src=\"../images/onlinelist.gif\" alt=\"Online List\"/></p>";
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')
{
$f1 = "";
$f2 = "";
}if($item[1]=='1')
{
$f1 = "[i]";
$f2 = "[/i]";
}if($item[1]=='2')
{
$f1 = "[b]";
$f2 = "[/b]";
}
$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 = "";}
$lnk = "$usersex<a href=\"index.php?action=viewuser&who=$item[3]&sid=$sid\">$item[0]</a>";
echo "$f1 $lnk$ $f2 - $item[2]
";
}
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>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p>";
echo "</card>";
}