PDA

View Full Version : Select usergroups get [IMG] use


kau
09-15-2004, 10:00 PM
In the handle_bbcode_img function of bbcode_parse add this:

IF ($post['usergroupid'] != WHATEVER)
....
....
....
}

Johnny
09-16-2004, 11:41 AM
what?

can you please provide some better directions

What does WHATEVER mean?
where is handle_bbcode_img located?

Colin F
09-16-2004, 12:29 PM
:)

First off, great that you got it, kau!

Johnny: find the function handle_bbcode_img() in the includes/bbcodeparse.php file and surround the while code (between function handle_bbcode_img(XXX) { and } with the code he posted above:

if ($bbuserinfo[usergroupid != 5)
{


}

Like this, any users in the usergroup 5 won't be able to use the image code at all.

Johnny
09-16-2004, 05:22 PM
thankyou colin,

that is what suppose to be on the first post a complete instruction on what to open and where to add the code.

but nice mod kau, this will come handy.

kau
09-16-2004, 09:12 PM
Thanks Colin your hint led me to the answer!

kall
09-16-2004, 09:45 PM
Not to be a rule nazi.. but...


Only licensed vBulletin users may release and/or download hacks. Please make sure you either attach the hack in a file, or within [code] / [php] vB Code tags. vBulletin Lite hacks cannot be distributed.

snyx
09-17-2004, 03:08 AM
Not to be a rule nazi.. but...
shutup, it's not even 30 characters long.

thanks, I shall use this to my advantage kau.

Kruppa
03-01-2005, 03:01 PM
I created a tag called xxx (in the hopes I could apply this hack to it) and I was wondering if there was a way to do the same with that code has with the default https://vborg.vbsupport.ru/ tag. Anyone have any ideas?