May 4, 2011

Replacing post title and body words.... | CyberSEO Pro | Support Forums

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Related Topics sp_topicicon
Replacing post title and body words....
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
August 20, 2011
5:27 pm
Avatar
otherwhirl
Guest
Guests

Hi,
I’ve got a few questions. I have attached a few images and have links to share in an attempt to try and illustrate (and simplify) what it is that i need to do.

Using Login to see this link.
Login to see this link.

1) I want to add my personal text and URLS inside each post how is this done?
You will see i need to also remove the tumblr blog names from the title post fields. i.e.,”curveappeal:” as well as in the body of some post.

Would that be done in the Global Synonym Table? or the Global Modifications Tool field like so: ‘|curveappeal:|www.yadayadayada.com’

2) There are literally dozens and dozens of tumblr feeds content is pulled from. Will i have to literally copy and paste each new one into Global Synonym Table, or is there a way to have it remove all blog titles ending with “:” ?  i.e.,  ‘ twiggymaster666:’ , ‘bigthickfathuge’ , ‘lovethechub’ , ‘deathfatties’  , etc.

3) In the case of a number of posts  which read only “photo” in the title field I will want to replace it with my own unique title. In fact, i am wondering how can I take a generic title like ‘ YadaYadaYada post 19 ‘   , ‘ YadaYadaYada post 20 ‘      ” YadaYadaYada post 21 ‘  ….  etc.    

Thanks!

August 20, 2011
5:56 pm
Avatar
Admin
Forum Posts: 3097
Member Since:
July 2, 2009
sp_userofflinesmall Offline

It seems that these tasks can't be done w/o some coding. Put the following code into your “PHP Code <?php .. ?>” box on the feed options page:

Login to see the code.

August 20, 2011
6:11 pm
Avatar
otherwhirl
Guest
Guests

Excellent! i’ll give it a try.

So will this same code apply to removing content in the body? i.e.,   $wordlist = array (‘word1’, ‘word2’, ‘word3’ ); $post [‘post_body’] = str_replace ( ‘Photo’, $wordlist [rand ( 0, count ( $wordlist ) – 1 )], $post [‘post_body’] ); $post [‘post_body’] = preg_replace ( ‘/^[a-z,0-9]+: /’, ”, $post [‘post_body’]

 

What about questions #2 & 3:

2) There are literally dozens and dozens of tumblr feeds content is pulled from. Will i have to literally copy and paste each new one into “PHP Code <?php .. ?>” box on the feed options page:, or is there a way to have it remove all blog titles ending with “:” ?  i.e.,  ‘ twiggymaster666:’ , ‘bigthickfathuge’ , ‘lovethechub’ , ‘deathfatties’  , etc.

3) In the case of a number of posts  which read only “photo” in the title field I will want to replace it with my own unique title. In fact, i am wondering how can I take a generic title that will generate  a numerical sequence like ‘ YadaYadaYada post 19 ‘   , ‘ YadaYadaYada post 20 ‘      ” YadaYadaYada post 21 ‘  after each new post?

 

admin said:

It seems that these tasks can’t be done w/o some coding. Put the following code into your “PHP Code <?php .. ?>” box on the feed options page:

Login to see the code.

August 20, 2011
6:49 pm
Avatar
Admin
Forum Posts: 3097
Member Since:
July 2, 2009
sp_userofflinesmall Offline

1) No this code will work for the titles only. If you need to replace some word (say “Photo”) in both title and body, you should use the global synonym table to set a simple rewrite rule, e.g.:

>Photo|Picture|Cool Image|Nice Photo|Here is My Pic

2) Yes, you need to put that PHP code into the “PHP Code <?php .. ?>” field on the settings page for every feed you syndicate. Also set it by default for every new feed using the “Alter default settings button”. The flowing code will automatically remove the all the “blah-blah-blah: ” from the post tittles:

Login to see the code.

Login to see the code.

August 20, 2011
7:13 pm
Avatar
otherwhirl
Guest
Guests

Thanks for the quick response Smile

 

Regarding the post body rewrites it appears i'm going to have to do what I hoped to avoid, which is having to enter specific words. If you have a look at the website link that PM'd you will see there are many posts coming from several feeds.Most will have text like so included in the body:

'chaoswriter:' , 'gobigger:' , 'Login to see this link.-bunnies:' , ‘ ilikeprettyclothes:’, etc.  This is because some feeds are actually reblogged by other bloggers. With that said, I will not always know what the name ending with a “:” (colon) will be, as many will be new blog names. 

 

So my question is , is it possible to remove ALL words ending with a “:” (colon)? This way i will not have to copy and past each current and future blog name which enters into my posts. I guess similar to your response to question #2 “Also set it by default for every new feed using the “Alter default settings button”. The flowing code will automatically remove the all the “blah-blah-blah: ” from the post tittles:”

 

It appears the global synonym table will only allow me to replace words that I specifically enter?

 

admin said:

1) No this code will work for the titles only. If you need to replace some word (say “Photo”) in both title and body, you should use the global synonym table to set a simple rewrite rule, e.g.:

>Photo|Picture|Cool Image|Nice Photo|Here is My Pic

2) Yes, you need to put that PHP code into the “PHP Code <?php .. ?>” field on the settings page for every feed you syndicate. Also set it by default for every new feed using the “Alter default settings button”. The flowing code will automatically remove the all the “blah-blah-blah: ” from the post tittles:

Login to see the code.

Login to see the code.

August 20, 2011
8:14 pm
Avatar
Admin
Forum Posts: 3097
Member Since:
July 2, 2009
sp_userofflinesmall Offline

Now I finally got you :) Here is the code which does the trick:

Login to see the code.

August 20, 2011
9:57 pm
Avatar
otherwhirl
Guest
Guests

Wow!

I can’t wait to try this. I’ll forward you a link when its done and give an awesome review on BHW

Thanks again.

admin said:

Now I finally got you :) Here is the code which does the trick:

Login to see the code.

Forum Timezone: Europe/Moscow

Most Users Ever Online: 105

Currently Online:
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 81

Freedom: 61

B8europe: 54

saviulisse67: 45

adultdenim: 44

allgoodies: 38

Member Stats:

Guest Posters: 350

Members: 1927

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1328

Posts: 6627

Administrators: CyberSEO: 3097