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

Discussion in 'Add-on Requests [Archive]' started by h0us3cat, Jul 19, 2011.

  1. h0us3cat

    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.
     
    Crazy-Achmet likes this.
  2. ragtek

    ragtek Guest

    Are you interested in a add-on for this?
     
  3. RobParker

    RobParker Well-Known Member

    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.
     
  4. h0us3cat

    h0us3cat Member

    yes a add-on or default option in xenforo.
    if it works i am happy :)
    and if it is possible of course.
     
  5. h0us3cat

    h0us3cat Member

  6. h0us3cat

    h0us3cat Member

    I guess nobody is interested? :(
     
  7. ragtek

    ragtek Guest

  8. h0us3cat

    h0us3cat Member

  9. ragtek

    ragtek Guest

    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. h0us3cat

    h0us3cat Member

    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. h0us3cat

    h0us3cat Member

    Any idea how i can fix it?
     
  12. h0us3cat

    h0us3cat Member

    bump (again) sorry :(
     
  13. Brogan

    Brogan XenForo Moderator Staff Member

    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.
     
  14. h0us3cat

    h0us3cat Member

    Can a mod move this to add-on requests?
     
  15. Brogan

    Brogan XenForo Moderator Staff Member

    Done.
     
  16. h0us3cat

    h0us3cat Member

  17. h0us3cat

    h0us3cat Member

  18. h0us3cat

    h0us3cat Member

  19. h0us3cat

    h0us3cat Member

    realy nobody?
     

Share This Page