vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Censor or replace specific URL by forum? (https://vborg.vbsupport.ru/showthread.php?t=321925)

tim330i 02-24-2016 11:29 PM

Censor or replace specific URL by forum?
 
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

Quote:

Originally Posted by blind-eddie (Post 2565567)
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

Quote:

Originally Posted by sHORTYWZ (Post 2565598)
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 -

PHP Code:

http://i.imgur.com/k4yzRKP.jpg?1 

PHP Code:

http://i.imgur.com/2ry6lF2.jpg 

PHP Code:

http://i.imgur.com/l6eZYOj.jpg 

PHP Code:

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

Quote:

Originally Posted by tim330i (Post 2565603)
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 -

PHP Code:

http://i.imgur.com/k4yzRKP.jpg?1 

PHP Code:

http://i.imgur.com/2ry6lF2.jpg 

PHP Code:

http://i.imgur.com/l6eZYOj.jpg 

PHP Code:

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

So, you have images embedded such as:

PHP Code:

[IMG]http://i.imgur.com/3SFlgoU.png[/IMG] 

And you would want this changed to:

PHP Code:

[URL]http://i.imgur.com/3SFlgoU.png[/URL] 

And only in certain forums?

tim330i 02-25-2016 05:56 PM

Yes, that would be ideal.

MarkFL 02-25-2016 06:07 PM

Quote:

Originally Posted by tim330i (Post 2565607)
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 -

Quote:

Powered by vBulletin? Version 3.8.7
Tim

MarkFL 02-25-2016 06:17 PM

Quote:

Originally Posted by tim330i (Post 2565609)
Thanks Mark! Direct from my site footer -

Quote:

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

1 Attachment(s)
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

Quote:

Originally Posted by blind-eddie (Post 2565627)
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


All times are GMT. The time now is 08:38 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01754 seconds
  • Memory Usage 1,770KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete