Add Perms
Started on the old forum in March 2008 · view the original in the archive · old links redirect here
you use a lavalair wml script or wapdesire????
if like my post click:
its already posted search and btw is very simple even i learned u have to add new filds in core.php such as is boss, is big boss just like is admin is mod
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
you use a lavalair wml script or wapdesire????
d procedure would b d same regardless of which
oh u r use lavalair? i the see u r the very frustrating now External image (may be gone) confusing too? External image (may be gone)
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
in core.php keep addin this to ur choice
if($ginfo[2]==3) {
if(isowner($uid))
{
return true;
}else{
return false;
}
}
if($ginfo[2]==2)
{
if(isadmin($uid))
{
return true;
}else{
return false;
}
}
then
if($rperm[1]==1) { return ismod(getuid_sid($sid)); } if($rperm[1]==2) { return isadmin(getuid_sid($sid)); } if($rperm[1]==3) { return isowner(getuid_sid($sid)); }
if(getuage_sid($sid)<$rperm[0])
{
return false;
}
if($uperm[1]<$rperm[2])
{
return false;
}
return true;
}
then
return "Banned!"; } if($info[0]=='2') { return "<img src="images/.gif" alt="Admin!"/>"; }else if($info[0]=='1') { return "<img src="images/.gif" alt="Mod!"/>"; }else if($info[0]=='3') { return "<img src="images/.gif" alt="Owner!"/>"; }else{
and keep on adding
/////////////////////////////////////////Is big boss
function isowner($uid) { $admn = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'")); if($admn[0]=='3') { return true; }else{ return false; } }
and
/////////////////////////////////////////Is boss
function isowner($uid) { $admn = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'")); if($admn[0]=='4') { return true; }else{ return false; } }
got the idea?
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
search for the option in ownercp where u add a user as admin or normal etc. enter ur new field there with the perm number hehehehehehehehehehehehehehehehehehehe
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
is it possible to add a junior mod?
depends what you mean by junior mod ? but probably its possible the same way as posted above
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!