The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Limit Allow Dynamic URL for [IMG] Tags
Is there a way to limit users from being able to post Dynamic URLs in IMG tags unless they are in a certain group? I know I would need to edit the following in includes/functions_bbcodeparse.php:
PHP Code:
Could someone tell me if changing this line to the following would allow only that particular usergroup to post dynamic URLs: PHP Code:
|
#2
|
|||
|
|||
Allright... my idea didn't work. I have tried about every combo possible (that I can think of) in here and it still will not limiting it to just the one particular group. Either it lets everone or no one still.
|
#3
|
|||
|
|||
Your problem is that you're looking at $bbuserinfo (which is the VIEWER's info) instead of $post (which is the POSTER's info). So rather than checking the viewer's usergroupid, you should be checking the poster's usergroupid.
Above that line a few lines, add $post to the global variable line. Then try $post['usergroupid'] and see if that works. Cheers |
#4
|
|||
|
|||
Thanks to vbmechanic for pointing me in the right direction. I had to make a few changes, but it is now working. If you want to allow only the administrator group (in this case group 6) to be able to post dynamic urls, just do the following:
Open includes/functions_bbcodeparse.php and find: PHP Code:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|