View Full Version : Fairly simple question...
Leo Wyatt
07-16-2003, 10:33 AM
I'm installing a hack, and somewhere in the file it says
// ###################### Start usergroupchooser #######################
Then a bunch of code below
[mods can edit users hack by Xenon is what Im adding]
What do I do with the code below? Do I have to run it as a query? Or what?
Thanks and excuse my newbie-ness ;)
Xenon
07-16-2003, 03:16 PM
this line you posted above belongs to the code you have to add to your file.
ok, it's just a comment, but it's belonging to the code you have to add :)
Leo Wyatt
07-16-2003, 05:29 PM
Yeah, I know it's a comment - but I mean where do I add the code below it? And well...the other codes under the other comments, too :p
I think you just add the code directly below it as specified in the hack's instructions. You just open the php file, add code as instructed, save, adn reupload the file.
Leo Wyatt
07-16-2003, 06:51 PM
Ah - I see...all in user.php...Okay - thanks Rose, I'll try it.
Xenon
07-16-2003, 08:07 PM
/me hugs rose for making my work ^^
*relaxing*
:D I got a hug!!
* Rose hugs stefan
Leo Wyatt - getting it? :D If not, just post back and someone'll be sure to help. :) And do share the url to your board when it's available. ;)
Leo Wyatt
07-17-2003, 12:07 PM
Yep - it worked. Thanks again :D Oh and it's already open if ya wanna see it :)
http://www.reality-boards.net/forum :D
okay okay - maybe I do have ONE questions for you, Xenon - what do I need to add to make it so that I can specify the mods that can edit users? [like if i don't want ALL of them to be able to edit it]
Xenon
07-17-2003, 12:43 PM
well as i stated in the supportthread already, all you have to do is to make some kind of permission selcting by using if clauses:
if ($bbuserinfo['userid'] == 5)
{
$canedit['....'] = 1;
...
} else {
$canedit['...'] = 0;
Leo Wyatt
07-17-2003, 03:24 PM
Thanks again both of ya. I got the hack all set :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.