The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Right now on my current version I hacked it so function handle_bbcode_img($bbcode, $dobbimagecode) does not work unless you are a certain user group, to stop trolls.
Now with 3.5 this is gone. I can't update until I find where this code is now. What file is the parsing of the IMG tag in now??????? |
#2
|
|||
|
|||
![]()
class_bbcode
|
#3
|
|||
|
|||
![]()
You should be able to use a plugin to achieve what you want.
|
#4
|
|||
|
|||
![]()
How would I use a plugin to do that? I'm not very technical.
I looked throughout class_bbcode and I can't see a clear cut function that does it. Can someone point me to which function in that file handles the parsing of the IMG tag or explain how to setup a plugin to do what I need. |
#5
|
|||
|
|||
![]()
File class_bbcode.php, around line 1714:
PHP Code:
|
#6
|
|||
|
|||
![]()
Great! Thanks very much.
|
#7
|
|||
|
|||
![]()
Wait. Thats not the best method. (modifying code when you dont have to is baaad
![]() plugin bbcode_parse_start, PHP Code:
|
#8
|
|||
|
|||
![]()
I didn't say that it's a best method. I just pointed at a location. As for your method, which is definitely better, the most error-proof solution would be simply:
PHP Code:
The easiest to use modify code would be: PHP Code:
![]() |
#9
|
|||
|
|||
![]()
It is unnecessary to use multiple is_member_of calls. You can pass an array of usergroupids.
|
#10
|
|||
|
|||
![]()
Really? I didn't know. Thanks for pointing that out
![]() Code:
if(!is_member_of($this->registry->userinfo, X, Y, Z)) { $dobbimagecode = false; } |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|