Support Forums

Title tag assistance required please

This is a discussion on Title tag assistance required please within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hi everyone, Im using the hosted version of v4.1.8 68 classifieds. as im trying to amend the title tags for ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 01-24-2010, 11:31 AM   #1
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default Title tag assistance required please

Hi everyone,
Im using the hosted version of v4.1.8 68 classifieds. as im trying to amend the title tags for good SEO, I came accross an old post of mine for changing the title tag (as shown below), which worked at the time but now im on this new version of 68 classifieds it does not seem to work anymore am i missing something ? or does it just not work on this version ?

Many thanks


{if $body=='user/userlogin.tpl'}
<title>Log In to {$sitetitle}</title>
{elseif $body=='home.tpl'}
<title>{$sitetitle} </title>
{elseif $body=='browse.tpl.php'}
<title>new $categoryname new</title>
{elseif $body=='user/userindex.tpl'}
<title>{$sitetitle} - My Account</title>
{elseif $body=='categories/browse.tpl'}
<title> {$sitetitle}</title>
{elseif $body=='viewlisting2.tpl'}
<title>{$title}</title>
{else}
<title> {$sitetitle} </title>
{/if}
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 01-24-2010, 12:23 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,354
Rep Power: 85
seymourjames is a jewel in the rough
Default

There are several posts on this subject. If you positioned the code in the header correctly I do not see why it would not work. I often test not on $body but on $SCRIPT_NAME and page titles. e;g.

{if $SCRIPT_NAME == "/viewlisting.php"}
blabla

{if $SCRIPT_NAME == "/searchresults.php"}
bla bla

{if $title == "Pxxxxxxx"}
bla bla


To make this all work completely for every page in a site requires a lot of work and quite a few smarty assignments. Its a good couple of hundred lines of code. If you email me, I will let you have an example which may be useful to you as a template on what to do.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 01-25-2010, 01:12 AM   #3
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

problem solved !
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 01-25-2010, 03:18 AM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,354
Rep Power: 85
seymourjames is a jewel in the rough
Default

And what was it?
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 01-25-2010, 06:25 AM   #5
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

I needed to include the main file name aswel EG: viewlisting/viewlisting.tpl
well it works anyway
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 01-25-2010, 07:13 AM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,354
Rep Power: 85
seymourjames is a jewel in the rough
Default

Good stuff. Were you working in the root or a subdomain? Sure it is not the template name/viewlisting.tpl ?
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need some assistance with Footer industrialpost Templates, HTML, CSS, and Design Help 7 06-12-2009 08:47 AM
We need your assistance Eric Barnes News & Announcements 6 04-03-2006 04:49 PM


All times are GMT -4. The time now is 08:23 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0