![]() |
How do I stop parsing of BB code?
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??????? |
class_bbcode
|
You should be able to use a plugin to achieve what you want.
|
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. |
File class_bbcode.php, around line 1714:
PHP Code:
|
Great! Thanks very much.
|
Wait. Thats not the best method. (modifying code when you dont have to is baaad :))
plugin bbcode_parse_start, PHP Code:
|
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:
;) |
It is unnecessary to use multiple is_member_of calls. You can pass an array of usergroupids.
|
Really? I didn't know. Thanks for pointing that out :) It's not really an "array", though. Rather an expanded list of parameters.
Code:
if(!is_member_of($this->registry->userinfo, X, Y, Z)) |
All times are GMT. The time now is 10:07 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|