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); |
#2
|
|||
|
|||
Can anyone assist me?
|
#3
|
|||
|
|||
did you have any luck with this?
|
#4
|
|||
|
|||
One way of doing this would be to add a replacement variable of the banned site's urls to something else.
|
#5
|
|||
|
|||
where/how would I do this?
a lot of my users use some smilies from smiliecentral.com, however it adds a huge banner ad to the bottom of their posts. It uses some sort of spyware toolbar so that the ads don't show up to them, only the poeple who don't have the toolbar installed. So I would like to block the ads while still eltting the smilies through (ads & smilies are on different subdomains so it should be easy enough) |
#6
|
|||
|
|||
Under style options, add a replacement variable replacing lamedomain.com dontusethissite.com or something.
|
#7
|
|||
|
|||
hmm, that didn't seem to work. From reading the instruction that only affects whats in the templates, not post content itself...
I was sort of able to do it by Going to the general vB Options and Sensorship Options and sensoring the domain that the ads use, but it replaces it all with a big sting of asterix's so its not much of an improvement Would be nice to be able to search for a certain regex string and delete it completely or replace it with just a single character |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|