PDA

View Full Version : Disable Custom BB Codes in vBadvanced News


04screamer
10-23-2004, 08:41 PM
I have a custom bb code to wrap images in posts. How can I keep the images using this from displaying in vBadvanced?

vBadvanced
http://www.modernengineuity.com/img/CMPS.jpg

Post
http://www.modernengineuity.com/img/post.jpg

04screamer
10-24-2004, 11:21 PM
Well, can someone at least tell me how the vBa CMPS admin options control the display of the vbcode or which file to look in to modify this fuction so I'll have an idea where to start? Any help would be appreciated.

Our Sponsors
 

Brian
10-24-2004, 11:24 PM
forum/includes/functions_bbcodeparse.php is the file you would want.

04screamer
10-24-2004, 11:34 PM
OK. Thanks. I'll take a look at it. Any ideas off the top of your head?

Our Sponsors
 

Brian
10-25-2004, 12:07 AM
Never really messed with the bbcode functions so I'm not really sure what would need to be done.

04screamer
10-25-2004, 12:24 AM
I haven't either. Here is the img code function from functions_bbcodeparse.php.

// ###################### Start bbcodeparseimgcode #######################
function handle_bbcode_img($bbcode, $dobbimagecode)
{
global $vboptions, $bbuserinfo;

if($dobbimagecode AND ($bbuserinfo['userid'] == 0 OR $bbuserinfo['showimages']))
{
// do xxx
$bbcode = preg_replace('#\[img\]\s*(https?://([^<>*"' . iif(!$vboptions['allowdynimg'], '?&') . ']+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "handle_bbcode_img_match('\\1')", $bbcode);
}
$bbcode = preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "handle_bbcode_url('\\1', '', 'url')", $bbcode);

return $bbcode;
}

The custom bbcode I'm using is [img2]

memobug
10-25-2004, 01:14 AM
>I have a custom bb code to wrap images in posts. How can I keep the images using this from displaying in vBadvanced?

How do you want it to look? No image at all for images nested between those tags?

Regards,

Matt

04screamer
10-25-2004, 05:09 AM
>I have a custom bb code to wrap images in posts. How can I keep the images using this from displaying in vBadvanced?

How do you want it to look? No image at all for images nested between those tags?

Regards,

Matt

Exactly.