cmbyrne Posted December 15, 2004 Posted December 15, 2004 The title says it all. I've seen it on a few sites and am wondering how it is done. It's just a line separating different sets of links within 1 infobox. Thanks! Christina
Jack_mcs Posted December 15, 2004 Posted December 15, 2004 In the includes/boxes/categories.php file, find $categories_string .= '<br>'; and change it to $categories_string .= '<hr>'; 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
cmbyrne Posted December 15, 2004 Author Posted December 15, 2004 In the includes/boxes/categories.php file, find$categories_string .= '<br>'; and change it to $categories_string .= '<hr>'; Jack <{POST_SNAPBACK}> will that put a line between every category though? go to this site and look at their categories box, they have the dividers separating different sets of links. How do i do that? Christina
Jack_mcs Posted December 15, 2004 Posted December 15, 2004 No, the code change I gave you will put a line between each catageory. It looks like what that site has done is add more links to the categories box separated by hr's. Weekly Articles and Message Board aren't part of the typical categories. 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
cmbyrne Posted December 15, 2004 Author Posted December 15, 2004 No, the code change I gave you will put a line between each catageory. It looks like what that site has done is add more links to the categories box separated by hr's. Weekly Articles and Message Board aren't part of the typical categories. Jack <{POST_SNAPBACK}> I realize that, but how would one go about doing what he did? I actually don't want the line(s) in my category box, but in my information box....
Jack_mcs Posted December 15, 2004 Posted December 15, 2004 Find this code in the categories.php file if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } and add the following right below it else { $categories_string .= '<hr>New Section'; $categories_string .= '<hr>Another New Section'; } You will need to add whatever additional information you want of course. 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
TCwho Posted December 18, 2004 Posted December 18, 2004 Find this code in the categories.php file if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } and add the following right below it else { $categories_string .= '<hr>New Section'; $categories_string .= '<hr>Another New Section'; } You will need to add whatever additional information you want of course. Jack <{POST_SNAPBACK}> COOL! Oh BTW: I actually don't want the line(s) in my category box, but in my information box.... ...??? wouldnt she need to modify her information.php in boxes ???... Drop_Shadow How Did You Hear About Us Email HTML Order Link ---- GMT -5:00
Jack_mcs Posted December 18, 2004 Posted December 18, 2004 To do what the other site did, the changes need to be made to the categories box. To make changes to the information box, it is just a matter of adding links, image or whatever you want right after the existing ones. Just be sure to end the line correctly. The last line entered needs to end is ); while the others end in a period. 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
241 Posted December 18, 2004 Posted December 18, 2004 catalog/includes/boxes/information.php $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<hr><a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' . '<hr><a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<hr><a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>'); No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.