X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Title Tags displaying incorrectly (https://forum.x-cart.com/showthread.php?t=33984)

jth 09-17-2007 02:27 AM

Title Tags displaying incorrectly
 
Hi,

I am having a few issues with the way the Title tags are displaying for certain pages.

The only pages that aren't affected are the home page and the individual product pages.

At least one adjustment was made to skin1/customer/home.tpl as follows (this may be causing the problem) - in red:

{* $Id: home.tpl,v 1.88.2.10 2007/06/18 12:38:57 max Exp $ *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{config_load file="$skin_config"}
<html>
<head>
<title>{strip}
{capture name=title}
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{if not %position.first%}&nbsp;::&nbsp;{/if}
{$location[position].0|strip_tags|escape}
{/section}
{else}
{section name=position loop=$location step=-1}
{if not %position.first%}&nbsp;::&nbsp;{/if}
{$location[position].0|strip_tags|escape}
{/section}
{/if}
{/capture}
{assign var=mytitle value=$smarty.capture.title|replace:"Company Name":"Company Name : Pure - Natural - Organic Skin Care"}
{if $config.SEO.page_title_limit <= 0}
{$mytitle}
{else}
{$mytitle|replace:"&nbsp;":" "|truncate:$config.SEO.page_title_limit|replac e:" ":"&nbsp;"}
{/if}
{/strip}</title>
{include file="meta.tpl" }
<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}" />

{literal}
<!--[if IE 7]>
<style type="text/css" media="screen">
#content .colC .inner { width:90%; margin-left:auto; margin-right:auto; }
#sidebar-2 div.module-bdr form {padding-tops:5px}
</style>
<![endif]-->
<!--[if IE 6]>
<style type="text/css" media="screen">
#content .colC .inner { width:90%; margin-left:auto; margin-right:auto; }
#user2 div, #user2 p#pathway_text {clear:both; text-align:right;}
#footer div {clear:both; margin-left:auto; margin-right:auto;}
#user2 ul#mainlevel-top { margin-left:auto;}
</style>
<![endif]-->
<style type="text/css" media="screen">
</style>
{/literal}<link rel="stylesheet" href="{$SkinDir}/tabs2/tabs.css">
<!--[if IE 7]><link rel="stylesheet" href="{$SkinDir}/tabs2/tabs_ie7.css"><![endif]-->
</head>
{if #ShowHorCategories# eq "Y" && $main ne "fast_lane_checkout"}
{if $body_onload eq ""}
{assign var="body_onload" value=" hcCheckCategories(); window.onresize = hcCheckCategories;"}
{else}
{assign var="body_onload" value="`$body_onload` hcCheckCategories(); window.onresize = hcCheckCategories;"}
{/if}
{/if}
<body{$reading_direction_tag}>
{* include file="customer/head.tpl" *}
<div id="page">
<!-- page -->
<div class="inside">
{include file="customer/header.tpl"}
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}
<!-- main area -->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="VertMenuLeftColumn">
{ include file="customer/search.tpl"}
{assign var="menu_position" value="left"}
{if $categories ne "" and $active_modules.Fancy_Categories ne ""}
{include file="customer/categories.tpl" }
{/if}
{include file="customer/categories.tpl" }

{*{include file="customer/main/live_help.tpl"}*}
{if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu eq "Y"}
{include file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if}
{if $active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu eq "Y"}
{include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}
{include file="customer/special.tpl"}
{if $active_modules.Survey && $menu_surveys}
{foreach from=$menu_surveys item=menu_survey}
{include file="modules/Survey/menu_survey.tpl"}
{/foreach}
{/if}
{include file="help.tpl" }
{include file="customer/main/menu_end.tpl"}
<br />
<img src="{$ImagesDir}/spacer.gif" width="161" height="1" alt="" />
</td>
<td valign="top" width="100%" class="MainArea">
<br />
<!-- central space -->
{if $gcheckout_enabled and $main ne "cart" and $main ne "checkout" and $main ne "anonymous_checkout" and $main ne "order_message"}
<div align="right">{include file="modules/Google_Checkout/gcheckout_button.tpl"}</div>
{/if}
{include file="dialog_message.tpl"}
{if $active_modules.Special_Offers ne ""}
{include file="modules/Special_Offers/customer/new_offers_message.tpl"}
{/if}
{include file="customer/home_main.tpl"}
<!-- /central space -->
&nbsp;
</td>
{assign var="menu_position" value="right"}
<td class="VertMenuRightColumn" id="sidebar-2">
<br />
{if (($main eq 'catalog' && $cat ne '') || $main eq 'product' || ($main eq 'comparison' && $mode eq 'compare_table') || ($main eq 'choosing' && $smarty.get.mode eq 'choose')) && $config.Appearance.enabled_printable_version eq 'Y'}
<span class="PrintableRow">
{include file="printable.tpl"}
</span><br />
{/if}
{if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''}
{include file="modules/Feature_Comparison/product_list.tpl" }
{/if}
{if $active_modules.Users_online ne ""}
{include file="modules/Users_online/menu_users_online.tpl" }
{/if}
{include file="customer/menu_cart.tpl" }
{if $login eq "" }
{include file="auth.tpl" }
{else}
{include file="authbox.tpl" }
{/if}
{include file="news.tpl" }
{if $active_modules.XAffiliate ne "" && $config.XAffiliate.partner_register eq 'Y'}
{include file="partner/menu_affiliate.tpl" }
{/if}
{if $active_modules.Interneka ne ""}
{include file="modules/Interneka/menu_interneka.tpl" }
{/if}
{include file="poweredby.tpl" }
{include file="customer/main/menu_end.tpl"}
<br />
<img src="{$ImagesDir}/spacer.gif" width="161" height="1" alt="" />
</td>
</tr>
</table>
{* include file="rectangle_bottom.tpl" *}
{include file="customer/footer.tpl"}

<!-- end inside -->
</div>
<!-- end page -->
</div>
{if $active_modules.Google_Analytics ne "" && $config.Google_Analytics.ganalytics_code ne ""}
{include file="modules/Google_Analytics/ga_code.tpl"}
{/if}
</body>
</html>
{/if}

______________________________

Could someone please advise on how to correct this issue?

thanks!

jth 09-17-2007 06:28 AM

Re: Title Tags displaying incorrectly
 
Sorry more details are required.

On the pages that aren't displaying correctly, the title bar tag looks something like this:

Company Name :: Short Description :: ~~~~ | lbl.gift_certificate | || ~~~~

On the normal pages, the title bar tag looks like this:

Company Name :: Short Description

Thanks,

Jo

balinor 09-17-2007 06:29 AM

Re: Title Tags displaying incorrectly
 
That usually means there is a broken Smarty tag somewhere, most likely NOT the title tag. What pages are displaying this error? Check the templates for those pages.

jth 09-17-2007 06:42 AM

Re: Title Tags displaying incorrectly
 
Hi,

It is happening on all pages except for Home page and product pages.

I've checked the templates, but cannot find anything obviously wrong.

Below are the following template codes (skin1/customer/special.tpl, skin1/customer/menu.tpl and skin1/help/tpl):

skin1/customer/special.tpl:

{if $active_modules.Gift_Certificates ne "" or $active_modules.Gift_Registry ne "" or $active_modules.Special_Offers ne "" or ($active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu ne "Y") or ($active_modules.Feature_Comparison ne "" && $is_fc_display_menu eq 'Y')}
{capture name=menu}
{if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu ne "Y"}
{capture name=bullet}<a href="manufacturers.php" class="VertMenuItems">{$lng.lbl_manufacturers}</a>{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet}
{/if}
{if $active_modules.Gift_Certificates ne ""}
{capture name=bullet}{ include file="modules/Gift_Certificates/gc_menu.tpl" }{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet}
{/if}
{if $active_modules.Gift_Registry ne ""}
{capture name=bullet}{ include file="modules/Gift_Registry/giftreg_menu.tpl" }{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet}
{/if}
{if $active_modules.Feature_Comparison ne "" && $is_fc_display_menu eq 'Y'}
{capture name=bullet}{ include file="modules/Feature_Comparison/customer_menu.tpl" }{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet}
{/if}
{if $active_modules.Survey && $surveys_is_avail}
{capture name=bullet}{include file="modules/Survey/menu_special.tpl"}{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet}
{/if}
{if $active_modules.Special_Offers ne ""}
{capture name=bullet}{ include file="modules/Special_Offers/menu_special.tpl" }{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet}
{/if}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_special menu_content=$smarty.capture.menu }
{/if}

______________________________

skin1/customer/menu.tpl:

{if $usertype eq "C"}
{include file="customer/menu.tpl"}
{else}
<table cellspacing="1" width="100%" class="VertMenuBorder">
<tr>
<td class="VertMenuTitle">
<table cellspacing="0" cellpadding="0" width="100%"><tr>
<td>{$link_begin}<img src="{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}" class="VertMenuTitleIcon" alt="{$menu_title|escape}" />{$link_end}</td>
<td width="100%">{if $link_href}<a href="{$link_href}">{/if}<font class="VertMenuTitle">{$menu_title}</font>{if $link_href}</a>{/if}</td>
</tr></table>
</td>
</tr>
<tr>
<td class="VertMenuBox">
<table cellpadding="{$cellpadding|default:"5"}" cellspacing="0" width="100%">
<tr><td>{$menu_content}<br/></td></tr>
</table>
</td></tr>
</table>
{/if}

________________________________


skin1/help/tpl:


{* $Id: help.tpl,v 1.20 2005/11/17 06:55:36 max Exp $ *}
{capture name=menu}
{capture name=bullet}<a href="help.php?section=contactus&amp;mode=update" class="VertMenuItems">{$lng.lbl_contact_us}</a>{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet}
{capture name=bullet}<a href="help.php?section=business" class="VertMenuItems">{$lng.lbl_privacy_statement} </a>{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet}
{capture name=bullet}<a href="help.php?section=conditions" class="VertMenuItems">{$lng.lbl_terms_n_conditions }</a>{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet}
{include file="pages_menu.tpl"}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_help.gif" menu_title=$lng.lbl_help menu_content=$smarty.capture.menu}

________________________________


Thanks for your help!

Jo

ITVV 09-26-2007 07:28 AM

Re: Title Tags displaying incorrectly
 
Hi,

I also have this exact issue and am just about to go live for the very first time!!

Did you sort this problem out?

Would appreciate any help on this matter.

My version is 4.1.7.

Thanks all

Nick

joannet 09-26-2007 07:37 AM

Re: Title Tags displaying incorrectly
 
Hi Nick,

Went through all associated templates but couldn't find the issue.

Contacted Paul from luminointernet.co.uk and he sorted it out in a flash.

Highly recommend you contact him. He will fix it usually straight away - amazing service, talent and expertise in all things x-cart.

Best of luck,

Jo

ITVV 09-26-2007 07:39 AM

Re: Title Tags displaying incorrectly
 
Quote:

Originally Posted by joannet
Hi Nick,

Went through all associated templates but couldn't find the issue.

Contacted Paul from luminointernet.co.uk and he sorted it out in a flash.

Highly recommend you contact him. He will fix it usually straight away - amazing service, talent and expertise in all things x-cart.

Best of luck,

Jo


Many thanks Jo

Nick


All times are GMT -8. The time now is 01:16 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.