View Full Version : Censor or replace specific URL by forum?
tim330i
02-24-2016, 11:29 PM
I'm looking for a way to block a specific URL by forum. The story is that Imgur has blacklisted my site. Their issues is that my member have used it to host pictures of their items in our classifieds, which is against their TOS. As a result any Imgur images don't work on my site, and there is a lot of other locations and threads that are based on Imgur content. Apparently that is not a problem with Imgur.
Anyways Imgur policies aside how would I go about blocking their URL in my classifieds?
Thanks,
Tim
MarkFL
02-25-2016, 01:52 AM
What does every such link begin and end with, and what would you like it replaced with? Also, what version of vB are you running?
blind-eddie
02-25-2016, 02:56 AM
In your acp/vboptions/Censorship Options, third section down, Censored Words.
Add imgur to the box.
Save
Remember to do as instructions say:
You will need to Rebuild the Post Cache after making changes to update existing posts.
Any links or image links with imgur will no longer function nor will any added after this.
MarkFL
02-25-2016, 03:15 AM
I seriously considered recommending the censorship feature, but I thought perhaps the OP just wanted the links to be removed in specific forums only, and not sitewide. :)
blind-eddie
02-25-2016, 03:23 AM
oops, I did not see that part.
MarkFL
02-25-2016, 03:27 AM
oops, I did not see that part.
Well, I wasn't sure one way or the other, and hopefully the OP can clarify. :)
sHORTYWZ
02-25-2016, 04:31 PM
I'm in the same boat as the OP. Looking to censor IMGUR in just a specific set of forums.
Edit: Not quite the same boat as OP, didn't notice was the VB3 forum. I'm on 4.2.2. Looking to disallow any text containing imgur.com period from a set of forums.
MarkFL
02-25-2016, 04:33 PM
I'm in the same boat as the OP. Looking to censor IMGUR in just a specific set of forums.
Well, I'll ask you the same questions:
What does every such link begin and end with, and what would you like it replaced with? Also, what version of vB are you running?
tim330i
02-25-2016, 05:14 PM
I only need to do this for a specific sub-set of forums. I'm trying to still allow my users to use Imgur in all locations other then our classifieds. The use of Imgur images in the classifieds is how I got blacklisted.
Sample image links -
http://i.imgur.com/k4yzRKP.jpg?1
http://i.imgur.com/2ry6lF2.jpg
http://i.imgur.com/l6eZYOj.jpg
http://i.imgur.com/3SFlgoU.png
In an ideal world I would have images from Imgur.com be hyper linked [URL] instead of embedded as images [IMG] but I will take all out censoring for the time being if that is easier.
Thanks for the help,
Tim
sHORTYWZ
02-25-2016, 05:23 PM
To update, I found this mod for VB4 that worked in my situation. Not sure if there is a VB3 version of this.
https://vborg.vbsupport.ru/showthread.php?t=293490
MarkFL
02-25-2016, 05:38 PM
I only need to do this for a specific sub-set of forums. I'm trying to still allow my users to use Imgur in all locations other then our classifieds. The use of Imgur images in the classifieds is how I got blacklisted.
Sample image links -
http://i.imgur.com/k4yzRKP.jpg?1
http://i.imgur.com/2ry6lF2.jpg
http://i.imgur.com/l6eZYOj.jpg
http://i.imgur.com/3SFlgoU.png
In an ideal world I would have images from Imgur.com be hyper linked instead of embedded as images but I will take all out censoring for the time being if that is easier.
Thanks for the help,
Tim
So, you have images embedded such as:
[IMG]http://i.imgur.com/3SFlgoU.png
And you would want this changed to:
[URL]http://i.imgur.com/3SFlgoU.png
And only in certain forums?
tim330i
02-25-2016, 05:56 PM
Yes, that would be ideal.
MarkFL
02-25-2016, 06:07 PM
Yes, that would be ideal.
Okay, tonight I will look into creating a vB 3.8.x product you can install to do that. It won't change what's in your database, only what is shown when viewing the posts. It will allow you to select the forums in which it is active, and to turn off the product in the settings if needed.
Before I begin work on this, I need you to verify that you are using vB 3.8.x...I don't want to create the product only to find out you are using another version and it doesn't work. ;)
tim330i
02-25-2016, 06:12 PM
Thanks Mark! Direct from my site footer -
Powered by vBulletin? Version 3.8.7
Tim
MarkFL
02-25-2016, 06:17 PM
Thanks Mark! Direct from my site footer -
Powered by vBulletin? Version 3.8.7
Tim
Okay, that should work...my vB 3 dev site is vB 3.8.9, and so I will post back once I have something for you to try. :D
MarkFL
02-26-2016, 01:35 AM
Okay, here is a simple mod that does what you asked. Download the attached .XML file, import it, go the the settings and enable the product and select the forum(s) in which you want it to be active, save the settings and let me know if it works for you.
Also, if you wish for any additional features or changes, feel free to let me know.
Note: It should work for vB 4.x as well. :)
blind-eddie
02-26-2016, 02:22 AM
You are a good person Mark. I have seen you make an addon with just an idea a few times for free I might add, I hope your donation box gets filled, its well deserved.
Stratis
02-26-2016, 02:30 PM
You are a good person Mark. I have seen you make an addon with just an idea a few times for free I might add, I hope your donation box gets filled, its well deserved.
Sorry for been out of thread.
But you are wrong about Mark. His is not a good person but much much more. Even if you want to donate him for his work, does not accept it. God bless him, and hope he has all the best in his life. :)
Elixar
02-27-2016, 04:53 AM
I'll echo the gents above me. :D
MarkFL
02-28-2016, 07:12 PM
Thanks, everyone! :)
Now of course it would be nice to hear from the OP, to see whether this addresses the stated issue satisfactorily.
tim330i
02-29-2016, 11:45 PM
Thanks Mark! For some reason I stopped getting notifications from this thread so I didn't see your reply until now. I've got it installed and it seems to be doing what I want. I haven't seen any negative issues, but will report back after it has been running for a few days.
I've submitted a request to Imgur to unblock me, fingers crossed this works.
Tim
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.