Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 25 Sep 2012, 19:52
DetroitYES's Avatar
DetroitYES DetroitYES is offline
 
Join Date: Mar 2009
Modifying auto generated Blog <title> and og:description tags

I have a blog setup for a client, and they would like both the Forum name and Username removed from the Blog entry's title and facebook meta tags for SEO purposes.

This seems like something I could *probably* do with a plugin... can anyone offer insight on this as far as how and where the titles get generated?

Thanks.
Reply With Quote
  #2  
Old 26 Sep 2012, 22:52
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
It looks like the keywords and description are set in a plugin ousing hook global_state_check (that's part of the blocg product). The code looks like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


So it might work if you were to create your own plugin using that hook, and set the execution order to something > 5 to make sure it runs after the existing plugin. Then do something like:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #3  
Old 16 Oct 2012, 22:35
DetroitYES's Avatar
DetroitYES DetroitYES is offline
 
Join Date: Mar 2009
Okay here is what I ended up with:

hooked at global_state_check, this will pull from the blog text and feed it into the meta description/ og:description


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

hooked at fb_opengraph_array, this will remove the site name from the title when liking on facebook (I thought it was a bit redundant)...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by DetroitYES; 17 Oct 2012 at 17:35.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 05:09.

Layout Options | Width: Wide Color: