The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Can somone just tell me where I can find this code
I just want to know where the code is that validates whether a specific forum can use the IMG tags or not. Anyone?
Thanks! |
#2
|
||||
|
||||
IIRC correctly that's all done when outputting the file, so it should be in the includes/bbcodeparse.php file.
|
#3
|
|||
|
|||
Ok that is a good start. Any clue on what functions. I know very little about vB.
Thanks! |
#4
|
||||
|
||||
the whole file bbcodeparse.php is used to parse the bbcode.
actually checking the forumpermissions is done in another file (fetchforumpermissions() or something), but the parsing is done in bbcodeparse.php. And IIRC you want to add [img] tag per usergroup, so you would probably have to add the code in the bbcodeparse.php file. |
#5
|
|||
|
|||
So wait this function:
function handle_bbcode_img($bbcode, $dobbimagecode) That is what makes the IMG tag work. So I set it like user_id != 1 or however then it would not parse when they did it and thus not work. Right?!!!? If so that would be awesome. |
#6
|
|||
|
|||
Also what is the correct PHP to make an IF statement.
I want to say like IF this user group is anything but this one then do this. |
#7
|
||||
|
||||
you'll have to add a usergroup permission and check it using that I think.
I'm not that good with bitfield permissions, but I'll try to get back to you if I have time. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|