Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with code


bill110

Recommended Posts

I am trying to use an image map to link to categories.

I can get it to link to FILENAME_DEFAULT but it will not carry the sid.

I cannot get it to link to a specific category at all. I get parse error.

Here is the code that gets parse error.

<img src="images/mine/Header_logo.gif" width="487" height="132" border="0" usemap="#Head"> 
<map name="Head">
 <area shape="circle" coords="48,97,13" href="<?php tep_href_link(FILENAME_DEFAULT,cPath=1) ?>" target="_top">
</map>

Here is the code that links to FILENAME_DEFAULT without sid

<img src="images/mine/Header_logo.gif" width="487" height="132" border="0" usemap="#Head"> 
<map name="Head">
 <area shape="circle" coords="48,97,13" href="<?php tep_href_link(FILENAME_DEFAULT) ?>" target="_top">
</map>

Any help or ideas will be greatly appreciated

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

That just takes me to DEFAULT without the cPath or the sid.

Ive tried double quotes, single and double quotes, adding the path outside of the function like this

  <area shape="circle" coords="48,97,13" href="<?php tep_href_link(FILENAME_DEFAULT) ?>?cPath=1" target="_top">

will get me there but without the sid and the address has a / between the index.php and the ?cPath=

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Finally got it to work with this code

<img src="images/mine/Header_logo.gif" width="487" height="132" border="0" usemap="#Head"> 
<map name="Head">
 <area shape="circle" coords="48,97,13" href="index.php?cpath=1<?php echo "&" . $SID ?>" target="_top">
</map>

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

code should be:

<img src="images/mine/Header_logo.gif" width="487" height="132" border="0" usemap="#Head"> 
<map name="Head">
 <area shape="circle" coords="48,97,13" href="index.php?cPath=1<?php echo "&" . $SID ?>" target="_top">
</map>

The p in cPath was not capitalized

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...