• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[Suggestion] block external (image) sites

h0us3cat

Member
Hi, i want to block external image sites like imagehack, photobucket etc...
and only allow images trough the attachement system.
for example if somebody posts a link to a imagehack image it replaces the link with [please use the attachement system].
Is this possible?
I want this because these external sites can be slow/dead sometimes.
 
This is a good idea and would also help in dealing with people posting copyrighted images. Having usergroup permissions to allow mods to still post them would be useful.
 
try this: (haven't tested it)

search for

if (!preg_match("#" . preg_quote($forumUrl) . "#", $url)) {
return parent::renderTagUrl($tag, $rendererStates);
}

in my add-on and
replace with

if (!preg_match("#" . preg_quote($forumUrl) . "#", $url)) {
return parent::renderString('pls upload....');
}
 
try this: (haven't tested it)

search for

if (!preg_match("#" . preg_quote($forumUrl) . "#", $url)) {
return parent::renderTagUrl($tag, $rendererStates);
}

in my add-on and
replace with

if (!preg_match("#" . preg_quote($forumUrl) . "#", $url)) {
return parent::renderString('pls upload....');
}

Not realy working, the link in posts work fine.
But in signatures it replaces the links with "pls upload..." but it is still clickable.
I am using this add-on to let users upload signatures.
 
try this: (haven't tested it)

search for

if (!preg_match("#" . preg_quote($forumUrl) . "#", $url)) {
return parent::renderTagUrl($tag, $rendererStates);
}

in my add-on and
replace with

if (!preg_match("#" . preg_quote($forumUrl) . "#", $url)) {
return parent::renderString('pls upload....');
}
Not realy working, the link in posts work fine.
But in signatures it replaces the links with "pls upload..." but it is still clickable.
I am using this add-on to let users upload signatures.

Any idea how i can fix it?
 
It's fair to say that this probably isn't going to be included in the core soon (if at all), due to the lack of members requesting it.

You would be better off posting in the add-on requests forum.
 
Top Bottom