Meta Description

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-20-2007, 05:20 AM
Constant Pligger
Pligg Version: Pligg 9.9
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Ottawa, Ontario
Posts: 146
I've been looking around to make every single story page in Pligg have it's own meta description. So I got this idea, I went to the meta.tpl file:

I replaced:
<meta name="description" content="Blah Blah Blah" />

With:
<meta name="description" content="{$story_content}" />

Problem is, it appears blank when the page load (in page source/info). But it's quite an easy way to make every description distinct if only it worked. Maybe someone can let the meta.tpl file accept $stuff.
Reply With Quote
  #2 (permalink)  
Old 12-20-2007, 05:30 AM
graphicsguru's Avatar
Pligg Donor
Pligg Version: 9.9.5
 
Join Date: Aug 2006
Location: USA
Posts: 399
Not sure if this what your looking for of if it will help its a great mod

http://forums.pligg.com/general-help...ge-google.html
Reply With Quote
  #3 (permalink)  
Old 12-20-2007, 05:58 AM
Constant Pligger
Pligg Version: Pligg 9.9
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Ottawa, Ontario
Posts: 146
No in 9.8.2, the title already changes no?

My Modified to my tastes 9.8.2:
<title>{if isset($pretitle)}{$pretitle}{/if}{#PLIGG_Visual_Name#}{if isset($posttitle)} - {$navbar_where.text1}{/if}{if $pagename eq "story"} - {/if}{$navbar_where.text2}</title>

The link suggested:
{if $pagename eq "story"}
<title>{$posttitle|substr:3}</title>
{else}
<title>{$pretitle}{#PLIGG_Visual_Name#}{$posttit le }</title>
{/if}


What I meant was changing the description, so that in the Google search results, the description is right, not the title of your website repeated.
Reply With Quote
  #4 (permalink)  
Old 12-20-2007, 07:11 AM
Pligg Donor
Pligg Version: 9.9.5
 
Join Date: Sep 2007
Posts: 192
What version of Pligg are you using? In 9.82 this is already handled automatically. The STORY pages have their own unique meta description and keyword tags -- yet the CATEGORY pages do not. It pulls the description from the story content itself and it also pulls the keywords according to the tags that have been set for it.

Here's the code that goes into your meta.tpl file:

Code:
{if $meta_description neq ""}
	<meta name="description" content="{$meta_description}" />
{else}
	<meta name="description" content="Your generic meta description here." />
{/if}

{if $meta_keywords neq ""}
	<meta name="keywords" content="{$meta_keywords}" />
{else}
	<meta name="keywords" content="your, generic, keywords, here" />
{/if}
The problem we run into is not having control over the title and meta tags for CATEGORY pages (IE: http://yourdomain.com/category/CategoryOne). This really sucks and it is very difficult to get ranked for any of the category pages. I have been trying to play with unique titles for the category pages as well but can't get my code work, as shown here in this post.

Last edited by blaze; 12-20-2007 at 07:17 AM.
Reply With Quote
  #5 (permalink)  
Old 12-20-2007, 08:10 AM
Divisive Cotton's Avatar
Pligg Donor
 
Join Date: Sep 2007
Posts: 196
Quote:
Originally Posted by blaze View Post
What version of Pligg are you using? In 9.82 this is already handled automatically. The STORY pages have their own unique meta description and keyword tags -- yet the CATEGORY pages do not. It pulls the description from the story content itself and it also pulls the keywords according to the tags that have been set for it.

Here's the code that goes into your meta.tpl file:

Code:
{if $meta_description neq ""}
	<meta name="description" content="{$meta_description}" />
{else}
	<meta name="description" content="Your generic meta description here." />
{/if}

{if $meta_keywords neq ""}
	<meta name="keywords" content="{$meta_keywords}" />
{else}
	<meta name="keywords" content="your, generic, keywords, here" />
{/if}
The problem we run into is not having control over the title and meta tags for CATEGORY pages (IE: http://yourdomain.com/category/CategoryOne). This really sucks and it is very difficult to get ranked for any of the category pages. I have been trying to play with unique titles for the category pages as well but can't get my code work, as shown here in this post.
I was about to put a post up about this today - it would be great to have control of the meta description for categories...

In terms of SEO the separate category pages should be a real killer.
Reply With Quote
  #6 (permalink)  
Old 12-21-2007, 08:31 PM
Pligg Donor
Pligg Version: 9.9.5
 
Join Date: Sep 2007
Posts: 192
Quote:
Originally Posted by Divisive Cotton View Post
I was about to put a post up about this today - it would be great to have control of the meta description for categories...

In terms of SEO the separate category pages should be a real killer.
Well, since I couldn't really find a solution, I decided to just create "static" pages for my categories. I don't have many categories, so it wasn't too bad. I just have to update them about once every 2-3 days, so it looks good to Google. Took me about 3 minutes per category, as I had to make some adjustments to avoid the duplicate content penalty -- but otherwise, it seems to work. I modified the meta and titles, so all is good for now. But it would be great if we had more control over this in the backend.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in Story Meta Description ffarhann Questions and Comments 3 01-26-2010 03:58 PM
Meta Description Problems HelloKitty Questions and Comments 1 11-24-2009 04:04 AM
Set Character Limit for Meta Description Tags? blaze Questions and Comments 2 04-08-2009 02:09 AM
Setting default meta description Biomech Questions and Comments 9 10-03-2007 02:08 PM
Dynamic meta description tag generation fix creep Questions and Comments 2 03-17-2007 11:32 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development