codefumbler Posted February 8, 2003 Share Posted February 8, 2003 Hi I am fairly new to OSC and I am looking for advice . I am making a new box for column_left.php. I have based it on information.php and it will basically contain links to separate pages. The existing way of creating links utilises variables and an array for file names as follows: <a href="' . tep_href_link(FILENAME_SHIPPING, '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a> I have worked out where these variables are defined. Should I hardwire my links in my new box or would it be better to retain the same approach for future flexibilty and define new variables etc.? Any ideas? Thanks Link to comment Share on other sites More sharing options...
Guest Posted February 8, 2003 Share Posted February 8, 2003 You can do it either way, but you will have more flexibility if you keep to form. (If you ever have to change hosts, you only have to change the configure file...:-)) Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2003 Share Posted February 9, 2003 Hi, you should use the tep_href_link function wherever possible, as hardcoded links will not have oscid's appended if cookies are disabled (as i have have just discovered, oops). On a related note, could some kind sole please let me know the correct syntax to convert the following link to use the tep_href_link function: <a href="http://www.consoleplus.co.uk/catalog/default.php?cPath=98" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image20','','images/tabs/top_1_on.jpg',1)"><img src="images/tabs/top_1_off.jpg" alt="Classic Consoles" name="Image20" width="113" height="18" border="0"></a> As I have to go through and alter a load of these hardcoded links from my site :oops: once i can see how the link is constructed i will be fine, i have searched the forums for usage of the function but havn;t been able to find much. Many thanks in advance Matt www.consoleplus.co.uk Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.