Artisteer - Web Design Generator

SEO Friendly Page Titles for Pligg

Mar 17th, 2008 | By juipodev | Category: Pligg Hacks
Share |

Create SEO Friendly Titles on your Pligg pages

You must have noticed on your default Pligg installation whatever page you open, the title tags stay the same “Pligg Beta 9 ” (or the name of your site when you change it). This is not very Search Engine Friendly because the “page title tag element is still one of the most important factors for ranking highly in the search engines” so having the same title tag on every page would do you no good.

So here is a really simple hack that anyone can do and I have been using on all my Pligg sites and in free pligg templates offered here. This little hack will display Story titles on story pages, category names as titles on category pages and for all other pages whatever you name them in your Admin Panel (under » Admin » Modify Language) in PLIGG_Visual names. It will also reverse page titles putting your site name AFTER the page name which is also better for Search Engines. Here are some examples of this below.

Original Pligg Story Title
BuzzSEOjr.com | Most Important SEO Tips

SEO Friendly Pligg Story Title
Most Important SEO Tips | BuzzSEOjr.com

Now your most important keywords are at the front of the page title. Very SEARCH ENGINE FRIENDLY title don’t you think?

Here’s how to do it:

First open templates/templateName/pligg.tpl and FIND

<title>{if isset($pretitle)}{$pretitle}{/if}{#PLIGG_Visual_Name#}{if isset($posttitle)}{$posttitle}{/if}</title>

REPLACE WITH

{if $pagename eq "story" || $pagename eq "topusers" || $pagename eq "cloud" || $pagename eq "upcoming" || $pagename eq "live" || $pagename eq "submit"}
<title>{$posttitle|substr:3} | {#PLIGG_Visual_Name#}</title>
{elseif $pagename eq "search"}
<title>{$posttitle|substr:3} search results | {#PLIGG_Visual_Name#}</title>
{else}
<title>{#PLIGG_Visual_Name#} | {$pretitle|substr:22} {$posttitle|substr:3 }</title>
{/if}

That will take care of your main title tags. Now this Hack should take care of your h2 header tag on search page and it is optional.

Open templates/templateName/search_centre.tpl and FIND

{if isset($templatelite.get.search)}
<h2>{#PLIGG_Visual_Search_SearchResults#} {$templatelite.get.search|sanitize:2|stripslashes}</h2>
{/if}
{if isset($templatelite.get.q)}
<h2>{#PLIGG_Visual_Search_SearchResults#} {$templatelite.get.q|sanitize:2|stripslashes}</h2>
{/if}

REPLACE WITH

{if isset($templatelite.get.search)}
<h2>{#PLIGG_Visual_Search_SearchResults#} {$templatelite.get.search|sanitize:2|stripslashes} search results</h2>
{/if}
{if isset($templatelite.get.q)}
<h2>{#PLIGG_Visual_Search_SearchResults#} {$templatelite.get.q|sanitize:2|stripslashes} Search Results</h2>
{/if}

There is one more thing to do, go to your Admin Panel / Modify Language and filter for “Search results for”, remove both pieces of text by editing and deleting the text then clicking save leaving blank text fields.

Thats it, you’re done. You just created SEO Optimized Page Titles on your Pligg site.

Enjoy.

Tags: , , ,

Share |

4 comments
Leave a comment »

  1. I did it, it doen’s work for me: http://az.bgtip.co.uk/ :???:

  2. It worked! Thanks a lot!!!

  3. thanks a lot.. that’s what i need for my website http://www.dealsoff.com google has been saying lots of duplicate content because of title.

  4. Yes this will fix your titles and display different titles on pages. You should also read http://juipo.com/code-hacks/pligg-hacks/pligg-duplicate-content-fix/ for a true fix on dupe content.

Leave Comment

You must be logged in to post a comment.

Next?

RSS-Feed Subscribe to RSS-Feed
Subscribe via Email Subscribe via E-Mail

Add to Technorati Favorites

More from this category