

![]() |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| Cheers for this Blaze... I'm going to implement it this weekend... |
| ||||
| Quote:
Last edited by Divisive Cotton; 01-28-2008 at 01:44 AM. |
| |||
| Sorry, there were some {if} statements that needed to be changed to {elseif} statements. Here is the correct code (shown in red): Code: <div id="contentbox" {if $pagename eq "editor"}style="width:100%"{/if}>
<div style="padding: 10px; line-height: 1.2em">
{if $pagename eq "published"}
{if $category eq "Category 1"}
My Custom Published category 1 page description goes here.
{elseif $category eq "Category 2"}
My Custom Published category 2 page description goes here.
{elseif $category eq "Category 3"}
My Custom Published category 3 page description goes here.
{elseif $category eq "Category 4"}
My Custom Published category 4 page description goes here.
{else}
My Default Custom Published page description goes here.
{/if}
{elseif $pagename eq "upcoming"}
{if $category eq "Category 1"}
My Custom Upcoming category 1 page description goes here.
{elseif $category eq "Category 2"}
My Custom Upcoming category 2 page description goes here.
{elseif $category eq "Category 3"}
My Custom Upcoming category 3 page description goes here.
{elseif $category eq "Category 4"}
My Custom Upcoming category 4 page description goes here.
{else}
Your Default Welcome page description.
{/if}
{/if}
</div>
{checkActionsTpl location="tpl_pligg_above_center"}
{include file=$tpl_center.".tpl"}
{checkActionsTpl location="tpl_pligg_below_center"}
</div><!-- contentbox end -->
|
| |||
| Would this affect current links or only future links? Will the current links still be accessible? I mean pligg is already amazing for SEO 40% of my traffic is already Google if I could increase this I'm all for that!Please let me know |
| |||
| Yes, it affects the current pages -- therefore, Google will update the pages to the newer information supplied. It should give you a boost -- worked for me. I use them on the header, footer and sidebars. Hell, I use them all over the place! (Ha!) That is the one thing I like about smarty templates -- the ability to write {if} statements is awesome -- although it does a take a lot of work, but it can be great! |
| |||
| Quote:
For example when I use it for the catégorie "Création de site" I have the default meta description, but when I use it for "Creation de site" everything works like charm. Can someone tell me how to fix this please ? Thanks in advance |
| |||
| Cool hack, thank you! |
| |||
| hi blaze I did what you said but it shows title like good keywords different good keywords and i changed good to my site how ever i was looking to make as the content title I need like this Idol Gives Back - American Idol Helps Others on April 9th how can i do ? |
| |||
| Quote:
<meta name="keywords" content="{$posttitle|substr:3}" /> This should work, but I haven't tested it, so don't hold me to it. Try it out, and if it works, then report back here in case someone else wants to do it this way as well. |
| |||
| I'm curious..kind of a 2 fold post here I have followed this thread from the beginning back in Dec and as stated back then I have a large site with A LOT of categories and sub-categories and to implement this change would only effect about 75 pages. But alas the issue of duplicate content and Google is very real. I just checked on the site using site:mysite.com and I'm a little setback. As I stated early in this thread I have over 4000 pages that had been indexed by Google. Now that Google's omissions include what they consider to be duplicate content the indexed number of pages is running at 4700 pages BUT if you follow results page links at the bottom Google is only showing 300 pages indexed. Question: Would this dup content cause such a drop in indexed pages? Lensroll Networking / Popular Lenses Lensroll Networking / Popular Lenses / Shopping Lensroll Networking / Popular Lenses / Crafts etc, etc. Granted, the mod would address this as these are category pages but what I'm concerned with is "Lensroll Networking". Does the hack strip the site name reference or is the meta title just added to the end? Second side of this post.. Meta example Code: {if $meta_description neq ""}
<meta name="description" content="{$meta_description}" />
{else}
<meta name="description" content="Social networking for Squidoo lens masters to share relevant content. Build links, increase traffic, make money for yourself." />
{/if}
{if $meta_keywords neq ""}
<meta name="keywords" content="{$meta_keywords}" />
{else}
<meta name="keywords" content="" />
{/if}
{if $indexit eq "1" OR $pagename eq "story"}
<meta name="robots" content="index,follow" />
{else}
<meta name="robots" content="noindex,follow" />
{/if}
<meta name="Language" content="{#PLIGG_Visual_Meta_Language#}" />
Maybe a booboo. A small snippet of my robots.txt Code: Disallow: /story/ Disallow: /story/title/ Sidenote: Analytics data reflects around 10,000 visitors a month, 79% coming from the se's using 3500 keywords. The data doesn't really reflect the supposed 300 'truly indexed' pages vs. the actual 4700. It may be time indeed to apply this mod but wanted to get a little feedback before we go ahead with a fairly large change. Sorry if this may not be the right thread for the doubled whammy question. Thanks |
![]() |
| 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 02:58 PM |
| Meta Description Problems | HelloKitty | Questions and Comments | 1 | 11-24-2009 03:04 AM |
| Meta Tagging Categories Properly? | Andromedan | Questions and Comments | 1 | 04-04-2008 03:46 PM |
| Setting default meta description | Biomech | Questions and Comments | 9 | 10-03-2007 01:08 PM |
| Dynamic meta description tag generation fix | creep | Questions and Comments | 2 | 03-17-2007 10:32 AM |