Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do you add solid line b/n links in infoboxes?


cmbyrne

Recommended Posts

Posted

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

Posted
In the includes/boxes/categories.php file, find
$categories_string .= '<br>';

and change it to

$categories_string .= '<hr>';

 

Jack

 

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

Posted

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

Posted
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

 

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....

Posted

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

Posted
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

 

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 ???...

Posted

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

Posted

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! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...