![]() |
How do this with wordpress? Mass replace post content and links
Hello i bought a bbw blog thats filled with pirate download links like this
http://pimpandhost.com/images/141000-original.html and text like this (links are not clickable on blog) I would like to completely delete this box on about 1200 post [downloads_box title="Big Big Babes 29"] http://depositfiles.com/files/wcqsj715h http://depositfiles.com/files/lyfqkq95c http://depositfiles.com/files/v58orlv23 or http://www.wupload.com/file/78468061...AABU.part1.rar http://www.wupload.com/file/78730349...AABU.part2.rar http://www.wupload.com/file/78771182...AABU.part3.rar [/downloads_box] The issue with search and replace plugin i see so far is i cant do this: Search for: http://pimpandhost.com/images/*any query string* and Replace with: aebn link or something. Is there a way to do this in mysql or should i just delete the 1200+ post? The blog has 3900 + post of course the latest 1200 are pirate link post but I for some reason i think this kid would have made more money with all sponsor content, but looks like when the fetishhits rss feed stopped he started pirating lol. Anyways any help with this would be appreciated thanks. |
bumppppp
|
just search and replace the domain names in mysql and then send to your own domain that just refreshes all the 404's etc to your own landing page or to aebn if they catch your refreshes.
|
Quote:
|
|
fuck it ill just delete this shit
|
Quote:
|
Quote:
|
regex could be something like
Code:
$html = '[downloads_box title="big boobs"]http://www.domain.com/files/files.avi.html[/downloads_box]'; |
It looks like a shortcode plugin or function "downloads_box", could you just deactivate/delete the plugin? Then add this to your functions.php file somewhere to empty the info.
Code:
function my_downloads_box( $atts, $content = null ) { |
Quote:
|
you guys are past awesomeness :upsidedow
|
if you want to remove it completely from the db, here is the code i use/used
Code:
Code:
remove_shortcode_from_db('downloads_box'); |
Quote:
Code:
$post->post_content = str_replace('word1', 'word2', $post->post_content); Code:
$post->post_title = str_replace('bad_word', '', $post->post_title); |
Quote:
|
Quote:
|
Here some queries that can be useful
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl'; After that you will need to fix URLs of the WordPress posts and pages, which translated from post slug, and stored in database wp_posts table as guid field. The URL values in this field are stored as absolute URLs instead of relative URLs, so it needs to be changed with the following SQL query: UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com'); If you have linked internally within blog posts or pages with absolute URLs, these links will point to wrong locations after you move the blog location. Use the following SQL commands to fix all internal links to own blog in all WordPress posts and pages: UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com'); UPDATE `wp_postmeta` SET `meta_value` = replace(meta_value, '212-555-1212', '212-444-1212') WHERE `meta_key` LIKE 'DeptPhone' |
All times are GMT -7. The time now is 08:38 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123