Advertisement:

Author Topic: how to block photobucket ?  (Read 660 times)

Offline panoskouf

  • Newbie
  • *
  • Posts: 9
how to block photobucket ?
« on: December 02, 2017, 08:27:36 AM »
1) I would like to block all Photobucket images from showing (other sites are ok)

2) Is there a predefined list of +18 rated sites where I can block somehow? (either make links not working or users not be able to post them)

3)How to hide all links from guests?

thanks in advance  :-*

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,361
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: how to block photobucket ?
« Reply #1 on: December 02, 2017, 09:19:06 AM »
1. Easy way would be to use the word censor.
2. No there isn't a list yet.
3. Try my mod here https://custom.simplemachines.org/mods/index.php?mod=342
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline panoskouf

  • Newbie
  • *
  • Posts: 9
Re: how to block photobucket ?
« Reply #2 on: December 02, 2017, 09:26:35 AM »
1. Easy way would be to use the word censor.
2. No there isn't a list yet.
3. Try my mod here https://custom.simplemachines.org/mods/index.php?mod=342

thank you :)

Offline SusanTN

  • Jr. Member
  • **
  • Posts: 116
    • Susan's Place Transgender Resources
Re: how to block photobucket ?
« Reply #3 on: December 02, 2017, 02:12:31 PM »
Edit the Subs.php from the sources directory

Find the function parse_bbc

Immediately after the global declarations  you will see

Code: [Select]
      // Don't waste cycles
        if ($message === '')
                return '';

After that add
Code: [Select]
        $message = preg_replace("/(\[img.*\].*photobucket.*)(\.jpg)(\[\/img.*\])/i", "", $message);

Problem solved. You can do the same thing for other image hosts.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,361
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: how to block photobucket ?
« Reply #4 on: December 02, 2017, 03:27:32 PM »
Nice tip! I would maybe add some text to say photobucket not allowed so people do not get confused.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline SusanTN

  • Jr. Member
  • **
  • Posts: 116
    • Susan's Place Transgender Resources
Re: how to block photobucket ?
« Reply #5 on: December 03, 2017, 04:12:26 AM »
I ended up with
Code: [Select]
        $message = preg_replace("/(\[url=.*photobucket.*\])(\[\/url.*\])/i", "[Link Removed]", $message);
        $message = preg_replace("/(\[img.*\].*photobucket.*)(\.jpg)(\[\/img.*\])/i", "[Image Removed]", $message);

This is the message I posted to my members...

Quote from: Susan
All photobucket images have been removed from signatures and blocked from displaying in posts (even if you have paid them for the privilege). I will not tolerate spammy images extorting their customers, my poster to pay to display their images on my site.

Posts affected will state [Link Removed] for links, or [Image Removed] for images.

My recommendation is to find another image hosting provider.

Please take note: If your image host displays a large image advertisement when a image is linked to my site, or even when simply not found, they risk all images from that hosting provider being removed or blocked from my site as well.

I am looking at you tinypic...

I then sent photobucket a email message letting them know of my action and my post to you all so you could do the same...

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,361
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: how to block photobucket ?
« Reply #6 on: December 03, 2017, 08:44:57 AM »
I like it! Yeah caused issues for my users as well they used  photobucket to host many images. Then they decieded to charge an extremely high fee if you want to place them on third party sites.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline showngo

  • Jr. Member
  • **
  • Posts: 108
Re: how to block photobucket ?
« Reply #7 on: December 03, 2017, 10:39:33 PM »
Tagged to find later.


GREAT i formation,  im blocking the ransom site too.

Offline panoskouf

  • Newbie
  • *
  • Posts: 9
Re: how to block photobucket ?
« Reply #8 on: December 04, 2017, 03:09:33 PM »
You guys rock, keep up the good work  ;)