bill110 Posted January 7, 2007 Share Posted January 7, 2007 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 More sharing options...
Jack_mcs Posted January 7, 2007 Share Posted January 7, 2007 Try changing this FILENAME_DEFAULT,cPath=1 to this FILENAME_DEFAULT, 'cPath=1' Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
bill110 Posted January 7, 2007 Author Share Posted January 7, 2007 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 More sharing options...
bill110 Posted January 7, 2007 Author Share Posted January 7, 2007 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 More sharing options...
bill110 Posted January 7, 2007 Author Share Posted January 7, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.