PDA

View Full Version : Meta Tags broken


munt
06-04-2006, 10:44 PM
my meta tags arnt showing the category name or description i added when adding cats in the admin page, its just showing the default meta tags i added in admin

site: {url no longer in service}

here are my current tags


<head>
{* Document/Browser title *}
<title>{if empty ($TITLE)}{$smarty.const.DIRECTORY_TITLE|escape|tri m}{/if}{$smarty.capture.title|strip|trim}</title>
{* Document character set *}
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
{* CSS Style file *}
<link rel="stylesheet" type="text/css" href="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/style/main.css" />
{* Custom META tags *}
{if $smarty.const.ENABLE_META_TAGS}
{if !empty($MetaKeywords)}
<meta http-equiv="keywords" content="{$MetaKeywords|strip|escape|trim}" />
{/if}
{if !empty($MetaDescription)}
<meta name="description" content="{$MetaDescription|strip|escape|trim}" />
{/if}
{if !empty($MetaAuthor)}
<meta name="author" content="{$MetaAuthor|strip|escape|trim}" />
{/if}
{if !empty($MetaCopyright)}
<meta name="copyright" content="{$MetaCopyright|strip|escape|trim}" />
{/if}
{if !empty($MetaRobots)}
<meta name="robots" content="{$MetaRobots|strip|escape|trim}" />
{/if}
{/if}
{* Please keep this line for better version tracking *}
<meta name="generator" content="PHP Link Directory {$smarty.const.CURRENT_VERSION}" />
{* Live Bookmarks *}
{if $smarty.const.ENABLE_RSS and (!empty($search) or $category.ID gt 0 or $list) and count($links) gt 0}
<link rel="alternate" type="application/rss+xml" title="{$in_page_title|escape|trim}" href="{$smarty.const.SITE_URL}rss.php?{if !empty($search)}search={$search|@urlencode}{elseif $p}p={$p}{elseif $list}list={$list}{else}c={$category.ID}{/if}" />
{/if}
{* JavaScript libraries *}
{* SmartyFormtool for manipulating forms with JavaScript *}
{formtool_init src="javascripts/formtool/formtool.js"}
{* OverLIB library for popups and tooltips *}
<script type="text/javascript" language="javascript" src="javascripts/overlib/overlib.js"></script>
</head>

can anyone help me fix them...

Boby
06-04-2006, 11:28 PM
I just checked these:

{url no longer in service}
Keywords: Gaming directory, ps3 directory, xbox directory, nintendo directory, gaming link, gaming websites
Description: website offering a web directory listing quality console gaming related websites and resources by most relevant categories.
{url no longer in service}
Keywords: gaming, genre
Description: Gaming websites catigorized by genre.
{url no longer in service}
Keywords: xbox 360, xbox 360 websites
Description: Websites relating to the microsoft xbox 360 console.
This means the META tags option works as it should. phpLD shows the default META tags ONLY if a category or a link (detail page) has not keywords/description assigned, else (like in your case) it shows the keywords and description assigned for the current categery or link.

From what I've seen now on your page it works good.

Boby