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

problem with links on head.tpl
 
Reply
   X-Cart forums > X-Cart 4 > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-26-2002, 01:44 PM
 
egypt13 egypt13 is offline
 

Member
  
Join Date: Sep 2002
Location: Pheonix, AZ
Posts: 23
 

Default problem with links on head.tpl

I added links for "About Us/Contact/Help" on the head.tpl...The links work on all the other pages/catagories/cart/checkout ect. but for some reason they don't work at the home page. Does anyone know why or how to fix it?
__________________
Ian Winscom
BoxedGreens Organic Grocery
http://boxedgreens.com
http://blog.boxedgreens.com

-----------------------------------
X-Cart Version 4.1.9
Reply With Quote
  #2  
Old 09-27-2002, 06:55 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

post your code/template?
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 09-27-2002, 06:58 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

contact link: help.php?section=contactus&mode=update
help link: help.php
about link: help.php?section=about
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #4  
Old 09-27-2002, 06:59 AM
 
Anonymous Anonymous is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 222
 

Default

Code:
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 class=TableTop width=100%> <TR> <TD bgcolor="#6397fc" width="41%">[img]../{#ImagesDir#}/logo.gif[/img]</TD> <TD bgcolor="#6397fc" width="58%" align="right" valign="bottom">[img]http://cddream.com/images/top.gif[/img]</TD> <TD bgcolor="#6397fc" colspan=2 width="0%"></TD> </TR> {if $usertype eq "C"} <TR> <TD class=TableLeft colspan="3"> <TABLE width=100% border=0 cellpadding=0 cellspacing=0> <TR> <FORM method=GET action="search.php" name=s_form> <TD class=TableLeft align=right width=90%> Search by: <SELECT name=search_by> <OPTION value="artist"{if $smarty.get.search_by eq "artist"} selected{/if}>Artist</OPTION> <OPTION value="title"{if $smarty.get.search_by eq "title"} selected{/if}>Title</OPTION> </SELECT> <INPUT type=text size=24 name=substring value="{$smarty.get.substring}"> {include file="buttons/search.tpl"} </TD> </FORM> <TD class=TableLeft align=left rowspan=2 width=240> [img]../{#ImagesDir#}/null.gif[/img] <TABLE width=100% border=0 cellpadding=2 cellspacing=0 class=MenuTitleLine> <TR> <TD align=center nowrap> VIEW CART CHECKOUT </TD> <TD align=center> {if $minicart_total_items > 0}You have {$minicart_total_items} {if $minicart_total_items eq "1"}item{else}items{/if} in your cart{else}Your cart is empty{/if} </TD> </TR> </TABLE> </TD> </TR> <TR> <TD class=TableTop align=right></TD> </TR> </TABLE> </TD> </TR> {/if} </TABLE> <map name="Map"> <area shape="rect" coords="2,2,71,50" href="http://www.CDdream.com/xcart/customer/help.php?section=about"> <area shape="rect" coords="72,2,122,49" href="http://www.CDdream.com/xcart/customer/help.php"> <area shape="rect" coords="125,2,189,49" href="http://www.CDdream.com/xcart/customer/help.php?section=contactus&mode=update"> </map>
Reply With Quote
  #5  
Old 09-27-2002, 04:18 PM
  minorgod's Avatar 
minorgod minorgod is offline
 

X-Adept
  
Join Date: Sep 2002
Location: Arivaca, AZ
Posts: 402
 

Default use absolute urls to everything

This can sometimes be considered bad programming, but it often solves problems if you make your navbar image and link references into absolute URLs (eg. http://www.yourdomain.com/directory/image.gif). This will keep your images and links from breaking if your using a secure server for your store. Hope that helps.
__________________
www.brettbrewer.com
Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more.
Reply With Quote
  #6  
Old 09-27-2002, 06:52 PM
 
Anonymous Anonymous is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 222
 

Default

The Image I am using is absolute...any othe ideas?

Code:
<TD bgcolor="#6397fc" width="58%" align="right" valign="bottom">[img]http://cddream.com/images/top.gif[/img]</TD> б═ б═ <TD bgcolor="#6397fc" colspan=2 width="0%"></TD>
Reply With Quote
  #7  
Old 10-01-2002, 07:54 AM
  minorgod's Avatar 
minorgod minorgod is offline
 

X-Adept
  
Join Date: Sep 2002
Location: Arivaca, AZ
Posts: 402
 

Default oops...

I think I might have mislead you in my last post. The images should probably remain relative references, but you might consider making the actual hrefs absolute addresses to keep the secure store from having broken links or keep it from redirecting to your server's IP address rather than your named web address.

I'm not sure why your images are breaking. You've probably just got the wrong path to your graphics. Look at the original templates that came with X-cart. Put your images in the same place. Reference them the same way. That's about the only advice I can offer. Sorry.
__________________
www.brettbrewer.com
Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more.
Reply With Quote
  #8  
Old 10-01-2002, 09:22 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

If your having problems with your extra images (i did) then the answer is pretty simple.

All you need to do is create a directory inside skin1_images folder and call it say my_images.

drop all your extra images in there and upload the lot to the server.

When you want to use any of the new images you must refer to the as follows ...

[img]../{ #ImagesDir# }/my_images/my_pic.gif[/img]

Because you have prefixed the location with ../{ #ImagesDir# }/ it works on either the normal or secure server as the ="../{ #ImagesDir# }/ gets replaced with the right address.

I tried it and it works fine .

I had hard coded my extra images to all load through my secure server address to start with which worked but would have been much slower then doing it this way.
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > 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 12:35 AM.

   

 
X-Cart forums © 2001-2018