Webmastersite.net
Register Log In

Error of meta keyword after switching

Comments on Error of meta keyword after switching

morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Oct 06, 2005 - 1:10 AM:

Hi,

I switched to 3.2.7 and had error with the meta keywords tags. I have this in my wrapper:-

<IF {TID} contains details.tpl>
<META name=description content="{LINKDESCRIPTION}" >
<META name=keywords content="{CATDESCRIPTION}" >
<OTHERWISE>
<link href="{DIRURL}/templates/styles/{STYLESHEET}.css" rel="stylesheet" type="text/css">
{MAINMETA}
</IF>
<IF {TID} contains displaylinks.tpl>
{CATHEADERINFO}</IF>
<link href="{DIRURL}/templates/styles/{STYLESHEET}.css" rel="stylesheet" type="text/css">
<link rel="alternate" type="application/rss+xml" title="{SITETITLE}" href="{DIRURL}/rssfeed.php">

Now this works fine for me in 3.15 or 16 but this doesnt seem to work in 3.2.7. The html is now displaying:-


<META name=description content="Here is my text to describe the content of the link" >
<META name=keywords content="{CATDESCRIPTION}" >

where {CATDESCRIPTION} is supposed to be meta keywords like:-

<META name=keywords content="keyword1, keyword2, keyword3" >
(My catdescription is stucked with keywords with the commas)

This also applies if i change the details.tpl to viewcomments.tpl. As you can see, the {LINKDESCRIPTION} is working but not the {CATDESCRIPTION}. ANy help?

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 09, 2005 - 12:32 PM:

In end.php below

// let link vars work in wrapper on link details page, for purpose of meta tags
if ($thislink) $totalpage = linkreplacements($totalpage, $thislink);
if ($thelink) $totalpage = linkreplacements($totalpage, $thelink);

add

if ($thiscategory) $totalpage = categoryreplacements($totalpage, $thiscategory);
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.