The Arcive of vBulletin Modifications Site. |
|
Help Lost Details »»
|
|||||||||||||||||||||||||
I implemented a small hack but want to change the code so that super mods and mods can access it
the start of the hack goes like so ====================================== <? require("global.php"); if ($bbuserinfo[usergroupid] !="6") { show_nopermission(); exit; } ====================================== I think it's here i change the code can somebody help me to insert usergroups 5,6,42,44 to access it thanx 4 any help ![]() Sorry should have posted this in support Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Here's a cleaned-up (no offense) version that allows those specific ugids:
PHP Code:
|
|
#3
|
|||
|
|||
|
Thanx filburt1 for the prompt reply
|
|
#4
|
|||
|
|||
|
no didnt work m8 here is the whole code it will work with 1 but i'd like it to work with all these usergroups
============== <? require("./global.php"); if (in_array($bbuserinfo['usergroupid'], array(5, 6, 7, 42, 44))) { show_nopermission(); } if (!isSet($threadid)) { header("Location: index.php"); exit; } if ($action == "change") { $threadintro = addslashes($threadintro); if ($changeall) { $DB_site->query("UPDATE thread SET threadintro = '$threadintro'"); } else { $DB_site->query("UPDATE thread SET threadintro = '$threadintro' WHERE threadid = '$threadid'"); } eval("standardredirect(\"".gettemplate("redirect_t hreadintro")."\",\"showthread. php?s=".$session[sessionhash]."&threadid=\$threadid\");"); exit; } $current = $DB_site->fetch_array($DB_site->query("SELECT threadintro FROM thread WHERE threadid = '$threadid'")); eval("dooutput(\"".gettemplate("threadintro")."\") ;"); ?> |
|
#5
|
||||
|
||||
|
It should be:
PHP Code:
|
|
#6
|
|||
|
|||
|
That seems to have worked thank you Boofo & thanx
very speedy service
|
|
#7
|
||||
|
||||
|
You're very welcome.
|
|
#8
|
|||
|
|||
|
What did I do wrong?
|
|
#9
|
|||
|
|||
|
exclamation mark before in array
|
![]() |
|
|