• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • 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

#1
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.
 

RobParker

Well-known member
#3
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.
 
R

ragtek

Guest
#9
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....');
}
 
#10
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.
 
#11
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?
 

Brogan

XenForo moderator
Staff member
#13
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.