Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

head.tpl issue

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-01-2006, 07:42 AM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default head.tpl issue

i'm attempting to edit my template. i have the basics down but i can't get rid of this huge annoying space. http://www.naanishoppe.com

the following is fine minus some additional customization...

{* $Id: head.tpl,v 1.58 2006/03/17 08:50:44 svowl Exp $ *}
<table style="WIDTH: 100%; BORDER-COLLAPSE: collapse HEIGHT: 400px">
<tbody>{if $main ne "fast_lane_checkout"}
<tr><td class="HeadLine" height="22" colspan="3"><div>
{if $usertype eq "C"}
{ include

file="customer/search.tpl" }
{/if}</div>


<table style="WIDTH: 100%; BORDER-COLLAPSE: collapse">
<tbody><tr><td style="BACKGROUND: url(../images/backgroundimage1.jpg) left top"><DIV><img alt=""

src="{$ImagesDir}/naanilogo1.gif" border="0" /><img alt="" src="{$ImagesDir}/naanilogo2.gif" border="0" /><img alt=""

src="{$ImagesDir}/naanilogo3.gif" border="0" /></DIV>

<table style="WIDTH: 100%; BORDER-COLLAPSE: collapse">
<tbody><tr><td><img alt="" src="{$ImagesDir}/save5percent.gif" border="0" /></td></tr></tbody></table>

<td style="WIDTH: 250px">
<div><img alt="" src="{$ImagesDir}/xlogo2.gif" width="250px" border="0" /></div>
<div><img alt="" src="{$ImagesDir}/xlogo1.gif" width="250px" border="0" /></div></td></tr>
</tbody></table></td></tr></tbody></table>


-----This is where it starts getting ugly. None of this data appears on the homepage so I'm not sure what parts of it are mandatory or are creating the excessive white space

<td class="HeadLine" align="right">
{if ($usertype eq "C" || $usertype eq "B") && $all_languages_cnt gt 1}
<form action="home.php"

method="get" name="sl_form">
<input type="hidden" name="redirect" value="{$smarty.server.PHP_SELF}?

{$smarty.server.QUERY_STRING|amp}" />
<table cellpadding="0" cellspacing="0">
<tr>
<td style="padding-right: 5px;"><b>

{$lng.lbl_select_language}:</b></td>
<td><select name="sl" onchange="javascript: this.form.submit();">
{section name=ai

loop=$all_languages}
<option value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected="selected"{/if}

>{$all_languages[ai].language}</option>
{/section}
</select></td>


</tr>
</table>
</form>
{else}
&nbsp;
{/if}
</td>
</tr>
{else}
{* Fast Lane Checkout page *}
<tr>
<td colspan="2" class="HeadLine">
<form action="{$xcart_web_dir}/include/login.php" method="post" name="toploginform">
<input type="hidden" name="mode"

value="logout" />
<input type="hidden" name="redirect" value="{$redirect}" />
<table cellpadding="0" cellspacing="0" width="100%">
<tr>


<td class="FLCAuthPreBox">
{if $active_modules.SnS_connector and $sns_collector_path_url ne '' &&

$config.SnS_connector.sns_display_button eq 'Y'}
<img src="{$ImagesDir}/rarrow.gif" alt="" valign="middle" /><b>{include

file="modules/SnS_connector/button.tpl" text_link="Y"}</b>
{else}
<img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" />
{/if}


</td>
{if $login ne ""}
<td align="right" nowrap="nowrap"><b>{$userinfo.firstname} {$userinfo.lastname}</b> {$lng.txt_logged_in}</td>


<td class="FLCAuthBox">
{if $js_enabled}
{include file="buttons/button.tpl" button_title=$lng.lbl_logoff href="javascript:

document.toploginform.submit();" js_to_href="Y"}
{else}
{include file="buttons/logout_menu.tpl"}
{/if}
</td>
{/if}
</tr>
</table>
</form>
</td>
</tr>
{/if}
<tr>
<td colspan="2" class="HeadThinLine"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td>
</tr>
{********

Remove this line to display how much products there are online ****
<tr>
{insert name="productsonline" assign="_productsonline"}


<td colspan="2" class="NumberOfArticles" align="right">
{if $config.Appearance.show_in_stock eq "Y"}
{insert name="itemsonline"

assign="_itemsonline"}
{$lng.lbl_products_and_items_online|substitute:"X" :$_productsonline:"Y":$_itemsonline}
{else}
{$lng.lbl_products_online|substitute:"X":$_product sonline}
{/if}
&nbsp;
</td>
</tr>
**** Remove this line to display how much products

there are online ********}
{if $main ne "fast_lane_checkout"}
<tr>
<td colspan="2" valign="middle" height="32">
<table

cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="HeadTopPad"><img src="{$ImagesDir}/spacer.gif" alt=""

/></td>
{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'}
<td class="PrintableRow"

align="right">{include file="printable.tpl"}</td>
{/if}
</tr>
</table>
</td>
</tr>
{else}
{* Fast Lane Checkout page *}
<tr>
<td

colspan="2" class="FLCTopPad"><img src="{$ImagesDir}/spacer.gif" alt="" /></td>
</tr>
{/if}</tr></td></tbody>
</table>
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #2  
Old 12-01-2006, 11:11 AM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Default Re: head.tpl issue

Hi neaisha

Two things also need addressing. First your logo is poor, i can only assume that one of 3 things has happened here, either you have made the logo bigger after saving it as a .gif or you have used photoshop and used the 'transparant' background which can sometimes cause this or, you have not resized the substring to your image size 235x65.
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
Reply With Quote
  #3  
Old 12-01-2006, 12:01 PM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: head.tpl issue

the images are just place holders as i did not intend to be editing to this extent so disregard...

my question has to do with the dead space that appears after the search menu/table and right above the greeting.

i can't figure out how to get rid of it but maybe it's in the forum somewhere
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #4  
Old 12-02-2006, 06:30 AM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: head.tpl issue

Hi, this is absolutely killing me. Can someone point me to a post that will explain the contents of the head.tpl file?

I cleaned up my original code (to the best of my ability) and am still having trouble with the following as I *think* they are creating an annoying dead space on the page but I can't figure out how to get rid of it.

<td class="HeadLine" align="right">
{if ($usertype eq "C" || $usertype eq "B") && $all_languages_cnt gt 1}
<form action="home.php" method="get" name="sl_form">
<input type="hidden" name="redirect" value="{$smarty.server.PHP_SELF}?{$smarty.server.Q UERY_STRING|amp}" />
<table cellpadding="0" cellspacing="0">
<tr>
<td style="padding-right: 5px;"><b>{$lng.lbl_select_language}:</b></td>
<td><select name="sl" onchange="javascript: this.form.submit();">
{section name=ai loop=$all_languages}
<option value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected="selected"{/if}>{$all_languages[ai].language}</option>
{/section}
</select></td>
</tr>
</table>
</form>
{else}
&nbsp;
{/if}
</td>
</tr>
{else}
{* Fast Lane Checkout page *}
<tr>
<td colspan="2" class="HeadLine">
<form action="{$xcart_web_dir}/include/login.php" method="post" name="toploginform">
<input type="hidden" name="mode" value="logout" />
<input type="hidden" name="redirect" value="{$redirect}" />
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="FLCAuthPreBox">
{if $active_modules.SnS_connector and $sns_collector_path_url ne '' && $config.SnS_connector.sns_display_button eq 'Y'}
<img src="{$ImagesDir}/rarrow.gif" alt="" valign="middle" /><b>{include file="modules/SnS_connector/button.tpl" text_link="Y"}</b>
{else}
<img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" />
{/if}
</td>
{if $login ne ""}
<td align="right" nowrap="nowrap"><b>{$userinfo.firstname} {$userinfo.lastname}</b> {$lng.txt_logged_in}</td>
<td class="FLCAuthBox">
{if $js_enabled}
{include file="buttons/button.tpl" button_title=$lng.lbl_logoff href="javascript: document.toploginform.submit();" js_to_href="Y"}
{else}
{include file="buttons/logout_menu.tpl"}
{/if}
</td>
{/if}
</tr>
</table>
</form>
</td>
</tr>
{/if}
<tr>
<td colspan="2" class="HeadThinLine"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td>
</tr>
{******** Remove this line to display how much products there are online ****
<tr>
{insert name="productsonline" assign="_productsonline"}
<td colspan="2" class="NumberOfArticles" align="right">
{if $config.Appearance.show_in_stock eq "Y"}
{insert name="itemsonline" assign="_itemsonline"}
{$lng.lbl_products_and_items_online|substitute:"X" :$_productsonline:"Y":$_itemsonline}
{else}
{$lng.lbl_products_online|substitute:"X":$_product sonline}
{/if}
&nbsp;
</td>
</tr>
**** Remove this line to display how much products there are online ********}
{if $main ne "fast_lane_checkout"}
<tr>
<td colspan="2" valign="middle" height="32">
<table style="BACKGROUND: #ffffff; width=100%;">
<tr>
<td class="HeadTopPad"><img src="{$ImagesDir}/spacer.gif" alt="" /></td>
{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'}
<td class="PrintableRow" align="right">{include file="printable.tpl"}</td>
{/if}
</tr>
</table>
</td>
</tr>
{else}
{* Fast Lane Checkout page *}
<tr>
<td colspan="2" class="FLCTopPad"><img src="{$ImagesDir}/spacer.gif" alt="" /></td>
</tr>
{/if}
</table>
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #5  
Old 12-02-2006, 09:22 AM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Default Re: head.tpl issue

Just a pointer, but that dead space is not being caused by a 'shadow image' is it.
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
Reply With Quote
  #6  
Old 12-02-2006, 09:38 AM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: head.tpl issue

uhm...not sure what you mean by that? what are you suggesting i do?

in the original skin the space is there too...just not as big. normally it's taken up by whitespace, site name and then visitor greeting.

somehow, some way, i've made it bigger but what's weird is, if you go on the product pages, it's displayed just fine. so maybe i should start there and work my way back.

i really wish i hadn't started this...now i have no choice but to continue editing and i do NOT like what i'm coming up with
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #7  
Old 12-02-2006, 10:13 AM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Default Re: head.tpl issue

Hi

I do not understand what you mean by 'if you go on the product pages, it's displayed just fine' as its seems the same to be.

Are we talking about the space here http://www.naanishoppe.com/home.php?cat=275 where it says 'printable version'
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
Reply With Quote
  #8  
Old 12-02-2006, 11:26 AM
 
andreas04031 andreas04031 is offline
 

Advanced Member
  
Join Date: Jun 2004
Location: Dallas, TX
Posts: 64
 

Default Re: head.tpl issue

I don't know if this will change it but when I look at your source code... in one table is a closing td tag missing

------code start------
<table style="BACKGROUND: #ffffff; width=800px;">
<tr>
<td>
</tr>
</table>
-----------code end -------

some like that can mess up pretty badly.
It's in line 685 but that can be different depending on the customer testimonials content.
It is right above the <!-- central space --> comment. You might check that out
Don't know if it helps, Andy
__________________
X-Cart version 3.5.9 (online)
X-Cart Version 4.0.19 (online)
X-Cart Version 4.1.3 (in dev)
PHP 4.4.4
MySQL 4.1.21
Reply With Quote
  #9  
Old 12-02-2006, 11:28 AM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: head.tpl issue

nope...i actually clicked on a specific link so it's obviously screwed in some places, ok in others.

here's an example of what i'm aiming for with regard to the spacing... http://www.naanishoppe.com/home.php?cat=314
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #10  
Old 12-02-2006, 11:34 AM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: head.tpl issue

ooooooook, i set it back to 1 for displaying products in multiple columns and that fixed most of the problem. gotta read changelog to see if this was an existing bug on 4.1.0. otherwise, i screwed something up or forgot to change a file.

now only problem is, the product descriptions aren't showing.

thanks for your help and if anyone has any clue with regard to the column display of products, would appreciate it.
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:19 PM.

   

 
X-Cart forums © 2001-2020