Question Disable single bbcode in vbShout?

Status
Not open for further replies.

TheVirus

New member
I'm trying to disable Youtube embeds in the CB, but I can't figure out where, or if, that's possible. I know PHP fairly well but don't know the vBulletin system at all. I'm looking in shoutbox.php and see that it loads the permissions for bbcodes, but I don't know where it loads that from

Code:
$permissions = fetch_bitfield_definitions('nocache|allowedbbcodesfull');

I don't know where that exists, so my research ends there. Any ideas?
 
Have you tried turning off all permissions in the instance management under bbcode permissions?
 
Yeah, but then no one can do much of anything in terms of 'fun'. I added in my own little hack.

shoutbox.php line 671 (inside the dbtech_vbshout_save case and before the $shout->save(); )
Code:
//Test to see if [youtube] is in the message.
if (strstr($this->registry->GPC['message'], "[youtube]")) {
	//Found it.
	break;
}
 
Status
Not open for further replies.

Legacy vBShout

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
3,179
Customer rating
5.00 star(s) 1 ratings
Back
Top