vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Mass remove external links (https://vborg.vbsupport.ru/showthread.php?t=254263)

Xtrigit 11-26-2010 01:52 PM

Mass remove external links
 
Is there a way I could mass delete external hyperlinks from posts?

Thanks

Danielgsc 06-20-2011 11:28 AM

Anybody? I'm interesting too. Mass delete or delete the links from a subforum...

gobears20 11-13-2014 05:15 PM

Anybody know of a way to do this?

kh99 11-13-2014 06:18 PM

I think you'd have to write php to do that. Someone more clever than I am might figure out how to do it with an sql statement, but I couldn't.

If you wanted to make certain forums so that urls couldn't be displayed, you might be able to do that by changing how the [url] bbcode is processed, and that owuld hide the existing ones as well as future ones. But that requires some programming as well.

Dave 11-13-2014 06:56 PM

Quote:

Originally Posted by kh99 (Post 2522575)
I think you'd have to write php to do that. Someone more clever than I am might figure out how to do it with an sql statement, but I couldn't.

If you wanted to make certain forums so that urls couldn't be displayed, you might be able to do that by changing how the [url] bbcode is processed, and that owuld hide the existing ones as well as future ones. But that requires some programming as well.

It may be possible in a complicated SQL query which makes use of a regex, but even that exceeds my skills. I indeed think it's easier to do this in a PHP script which just iterates through all posts which contains the URL tag or links, then check on the domain and ignore whitelisted ones and finally remove the links.

gobears20 11-13-2014 09:30 PM

Yeah apparently I have some bad links in posts but I have so many there is no way to track all posts down. I would probably either need to remove the links or rename the links to something else.

ozzy47 11-13-2014 11:29 PM

Yeah it is not something that can easily be done. If you really want this, you should hire someone. But make sure you do a full backup before anyone starts working on this. :)

gobears20 11-14-2014 12:00 AM

I hear that ozzy47, don't want to crash and burn like that :)

Do you know of anybody that does work like that company or a well known person?

ozzy47 11-14-2014 12:01 AM

Best bet would be to post in the paid request forum, https://vborg.vbsupport.ru/forumdisplay.php?f=30

Make sure you read the sticky threads in there before hiring anyone. :)

gobears20 11-14-2014 12:23 AM

Thanks:)

Hire at your own risk ;)

Here is what happen to me. I have a forum with over 4 million posts and AdSense says that some of my links are going to inappropriate sites. I have three days to get it corrected. Well I have no idea what links are good and what are bad because I have links to all kinds of sites from my posters. So I am stuck with either removing the adsense ads or creating a query that will either rename any links or delete the links. Not really the way to start off your morning seeing that at 6am this morning :) Its hard to watch every single posts on my site and to where its linking to.


All times are GMT. The time now is 04:59 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.01128 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)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