Aziz Posted February 17, 2004 Posted February 17, 2004 I need to put buttons for categories instead of the ordinary category list.. The problem is I have the link to the categrroy, but the dynamic Oscid(session id) is the problem... is their anyway I can reterieve the link from the category list and then apply it to the href in the buttons.. Thanks Alo, --------------------------------
♥yesudo Posted February 17, 2004 Posted February 17, 2004 think this is what you are asking about: right link on the catagory and choose properties - link should be on there. Your online success is Paramount.
user99999999 Posted February 17, 2004 Posted February 17, 2004 Hi, You should use the tep_href_link() this will add the session ID when needed and also tep_image_button will use the path and urls from your config. Do not hardcode session ID's as they are unique for each visitor. <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=1') . '">' . tep_image_button('category1.gif', 'category 1') . '</a>'; ?>
Aziz Posted February 19, 2004 Author Posted February 19, 2004 Hi, You should use the tep_href_link() this will add the session ID when needed and also tep_image_button will use the path and urls from your config. Do not hardcode session ID's as they are unique for each visitor. <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=1') . '">' . tep_image_button('category1.gif', 'category 1') . '</a>'; ?> Man.... If everybody was as smart as you.. There would be no need for this forum :rolleyes: Thanks Alot man... It worked, no I have to work on the next step... (onmouseover thingis) Salam, --------------------------------
user99999999 Posted February 19, 2004 Posted February 19, 2004 Thanks, But I didnt make that function. You know what im sayin... B)
Aziz Posted March 12, 2004 Author Posted March 12, 2004 Thanks, But I didnt make that function. You know what im sayin... B) Wow.... You might be asking me... Why did it take so long for me to reply... no my mother didnt die... (i just had too many mideters :) ) One more question using that function can I use The Onmouseover and OnMouseout actions? Thank You for answering, Aziz Free Image Hosting --------------------------------
Recommended Posts
Archived
This topic is now archived and is closed to further replies.