<span style="font-size:14pt;line-height:100%">How to add V.I.P membership in lavalair script???
Plz put da coding here or just giv a idea</span>
Plz put da coding here or just giv a idea</span>
else if($action=="vipol") { addonline(getuid_sid($sid),"Wheres The V.I.P",""); echo "<card id=\"main\" title=\"Staff Online\">"; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $plus=write your plus;////////////write your plus number like 500 $timeout = 180; $timeon = time()-$timeout; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE plusses>'".$plus."' AND lastact>'".$timeon."'")); $num_items = $noi[0]; //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; if($limit_start<0)$limit_start=0; //changable sql $sql = " SELECT name, plusses, id FROM ibwf_users WHERE plusses>'".plus."' AND lastact>'".$timeon."' LIMIT $limit_start, $items_per_page "; echo " [size="1"]"; $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) { $lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$item[0]</a>"; echo "$lnk - V.I.P "; } echo "[/size]</p>"; echo "<p align=\"center\">"; if($page>1) { $ppage = $page-1; echo "<a href=\"index.php?action=$action&page=$ppage&sid=$sid\">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"index.php?action=$action&page=$npage&sid=$sid\">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo "</p>"; ////// UNTILL HERE >> echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; }
$plus=write your plus;////////////write your plus number like 500 $timeout = 180; $timeon = time()-$timeout; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE plusses>'".$plus."' AND lastact>'".$timeon."'")); echo "Staff Online: <a href=\"index.php?action=vipol&sid=$sid\">".$noi[0]."</a> ";
else if($action=="vipol") { addonline(getuid_sid($sid),"Wheres The V.I.P",""); echo "<card id=\"main\" title=\"Staff Online\">"; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $plus=write your plus;////////////write your plus number like 500 $timeout = 180; $timeon = time()-$timeout; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE plusses>'".$plus."' AND lastact>'".$timeon."'")); $num_items = $noi[0]; //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; if($limit_start<0)$limit_start=0; //changable sql $sql = " SELECT name, plusses, id FROM ibwf_users WHERE plusses>'".plus."' AND lastact>'".$timeon."' LIMIT $limit_start, $items_per_page "; echo " [size="1"]"; $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) { $lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$item[0]</a>"; echo "$lnk - V.I.P "; } echo "[/size]</p>"; echo "<p align=\"center\">"; if($page>1) { $ppage = $page-1; echo "<a href=\"index.php?action=$action&page=$ppage&sid=$sid\">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"index.php?action=$action&page=$npage&sid=$sid\">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo "</p>"; ////// UNTILL HERE >> echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; }
$plus=write your plus;////////////write your plus number like 500 $timeout = 180; $timeon = time()-$timeout; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE plusses>'".$plus."' AND lastact>'".$timeon."'")); echo "Staff Online: <a href=\"index.php?action=vipol&sid=$sid\">".$noi[0]."</a> ";
function ismod($uid) { $perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'")); if($perm[0]=='2') { return true; } } function isadmin($uid) { $admn = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'")); if($admn[0]=='3') { return true; }else{ return false; } } /////////////////////////////////////////get status function getstatus($uid) { $info= mysql_fetch_array(mysql_query("SELECT perm, plusses FROM ibwf_users WHERE id='".$uid."'")); if($info[0]=='3') { return "Admin!"; }else if($info[0]=='2') { return "Moderator!"; else if($info[0]=='1') { return "V.I.P!"; } }
else if($action=="addchr") { echo "<card id=\"main\" title=\"Admin CP\">"; echo "<p align=\"center\">"; echo "[b]Add Room[/b] "; echo "Name:<input name=\"chrnm\" maxlength=\"30\"/> "; echo "Minimum Age:<input name=\"chrage\" format=\"*N\" maxlength=\"3\" size=\"3\"/> "; echo "Minimum Chat Posts:<input name=\"chrpst\" format=\"*N\" maxlength=\"4\" size=\"4\"/> "; echo "Permission:<select name=\"chrprm\">"; echo "<option value=\"0\">Normal</option>"; echo "<option value=\"1\">V.I.P</option>"; echo "<option value=\"2\">Moderators</option>"; echo "<option value=\"3\">Admins</option>"; //////////////////////////////////////////// else if($action=="chubi") { echo "Privileges: <select name=\"perm\" value=\"$perm[0]\">"; echo "<option value=\"0\">Normal</option>"; echo "<option value=\"1\">V.I.P</option>"; echo "<option value=\"2\">Moderator</option>"; echo "<option value=\"3\">Admin</option>"; echo "</select> "; ///////////////////////////////////////////// else if($action=="addgrp") { echo "<card id=\"main\" title=\"Admin CP\">"; echo "<p align=\"center\">"; echo "[b]Add Group[/b] "; echo "Name:<input name=\"ugname\" maxlength=\"30\"/> "; echo "Auto Assign:<select name=\"ugaa\">"; echo "<option value=\"1\">Yes</option>"; echo "<option value=\"0\">No</option>"; echo "</select> "; echo " [size="1"][b]For Auto Assign Only[/b][/size] "; echo "Allow:<select name=\"allus\">"; echo "<option value=\"0\">Normal Users</option>"; echo "<option value=\"1\">V.I.P</option>"; echo "<option value=\"2\">Mods</option>"; echo "<option value=\"3\">Admins</option>"; echo "</select> ";
else if($action=="vipol") { addonline(getuid_sid($sid),"Wheres The V.I.P",""); echo "<card id=\"main\" title=\"V.I.P Online\">"; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $timeout = 180; $timeon = time()-$timeout; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm='1' AND lastact>'".$timeon."'")); $num_items = $noi[0]; //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; if($limit_start<0)$limit_start=0; //changable sql $sql = " SELECT name, plusses, id FROM ibwf_users WHERE perm='1' AND lastact>'".$timeon."' LIMIT $limit_start, $items_per_page "; echo " [size="1"]"; $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) { $lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$item[0]</a>"; $item = $items[1]; echo "$lnk - $item "; } echo "[/size]</p>"; echo "<p align=\"center\">"; if($page>1) { $ppage = $page-1; echo "<a href=\"index.php?action=$action&page=$ppage&sid=$sid\">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"index.php?action=$action&page=$npage&sid=$sid\">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo "</p>"; ////// UNTILL HERE >> echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; }
$timeout = 180; $timeon = time()-$timeout; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm='1' AND lastact>'".$timeon."'")); echo "V.I.P Online: <a href=\"index.php?action=vipol&sid=$sid\">".$noi[0]."</a> ";
////////////////////////////////////////////is mod
function ismod($uid)
{
$perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'"));
if($perm[0]>2)
{
return true;
}
}
/////////////////////////////////////////Is admin?
function isadmin($uid)
{
$admn = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'"));
if($admn[0]>=3)
{
return true;
}else{
return false;
}
}
/////////////////////////////////////////get status
function getstatus($uid)
{
$info= mysql_fetch_array(mysql_query("SELECT perm, plusses FROM ibwf_users WHERE id='".$uid."'"));
if(isbanned($uid))
{
return "BANNED!";
}
if($info[0]=='6')
{
return "Host!";
}else if($info[0]=='5')
{
return "Tech Support!";
}else if($info[0]=='4')
{
return "Site Owner!";
}else if($info[0]=='3')
{
return "Head Administrator!";
}else if($info[0]=='2')
{
return "Administrator!";
}else if($info[0]=='2')
{
return "Moderator!";
}else if($info[0]=='1')
{
return "V.I.P!";
}else{
if($info[1]<10)
{
return "Member";
}else if($info[1]<25)
{
return "Member";
}else if($info[1]<50)
{
return "Member";
Comment