The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
IMG tag - block a list of domains from being used
I want to be able to add an IF statement or conditional to my [img] vbcode. Members are posting links to images that don't function or shouldn't be linking to. I want to be able to have the board see if they are using an image from my list of blocked urls, if so, the IMG tag displays text or a link instead of embedding the image in the post. If the image url is ok, it displays the image normally.
I have seen a modification to ONLY ALLOW from a list of urls, but I want to ban a lit of urls and change the output from that list. Can someone help me enable this? thanks ----------------------------------------------------------------------- Is there anyway to add the domains to the list of dynamic characters to block from being shown? This would suit me just fine, as images with question marks for example are displayed as simply a link and not embedded on the page. Is it somewhere in the "functions_bbcodeparse.php" file, and how would I add it? Code:
$bbcode = preg_replace('#\[img\]\s*(https?://([^<>*"' . iif(!$vboptions['allowdynimg'], '?&') . ']+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "handle_bbcode_img_match('\\1')", $bbcode); |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|