donato Posted October 18, 2002 Share Posted October 18, 2002 hello all. I am hoping to get a response from this, it is quite urgent... as the tilte says, I only have one Manufacturer, and instead of displaying a link to the Manufacturers page in text, I want to make it as a clickable image that directs you to the page... I searched everywhere for an answer to this, and did notice several people asking the same thing but never a response?? :shock: can anyone please help?? thx in advance Link to comment Share on other sites More sharing options...
mattice Posted October 18, 2002 Share Posted October 18, 2002 just edit the manufacturers information box in /catalog/includes/boxes/ Rip out the text bit and move the <a href . tep_ bla </a> around the image. "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
donato Posted October 18, 2002 Author Share Posted October 18, 2002 sorry matice can u provide a working example, kinda new to php can't find the line tep_ bla line... i apologize for being so arrogant...but i tried... thx! Link to comment Share on other sites More sharing options...
donato Posted October 18, 2002 Author Share Posted October 18, 2002 Ok figured it out...thanks again goes to Mattice for leading me in the right direction ! open the catalogincludesboxesmanufacturers.php look for this code: // Display a list $manufacturers_list = ''; while ($manufacturers_values = tep_db_fetch_array($manufacturers_query)) { $manufacturers_list .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers_values['manufacturers_id'], 'NONSSL') . '">' . substr($manufacturers_values['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '</a><br>'; CHANGE THE ABOVE CODE TO THIS: // Display a list $manufacturers_list = ''; while ($manufacturers_values = tep_db_fetch_array($manufacturers_query)) { $manufacturers_list .= '<div align="center"><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers_values['manufacturers_id'], 'NONSSL') . '">' . '<img src="/catalog/images/boxes/NAME_OF_YOUR_IMAGE.gif" width="112" height="132" border="0"></a><br>'; You will now have an image of your choice centered in the Manufactuerer's box. Link to comment Share on other sites More sharing options...
mattice Posted October 19, 2002 Share Posted October 19, 2002 You figured it out but it will only work with a single manufacturer. So don't try this if you have more.... :) "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
donato Posted October 19, 2002 Author Share Posted October 19, 2002 sorry, Mattice this is true... :lol: Link to comment Share on other sites More sharing options...
Guest Posted June 10, 2003 Share Posted June 10, 2003 Hi, Thanks for the info, I was searching for a topic regarding placing an images inside several boxes I had created and your code snipit was big help. I created a new file inside /includes/boxes/ and then added the line as you suggested and hey presto I had my own custom boxes with images and links! Thanks again, Taz Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.