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)

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.


All times are GMT. The time now is 08:46 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.02785 seconds
  • Memory Usage 1,746KB
  • 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
  • (6)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete