martinstan Posted June 7, 2007 Posted June 7, 2007 Hi I've noticed that many sites include a general horizontal menu in the site header. I've tried 'googling' and searching the contributions but haven't managed to figure out how it's done yet. Could someone point me in the right direction please on how to achieve this? I've just picked a few example sites at random http://www.softforest.com/ http://www.silkorigins.com/ This is quite a good example: http://www.4seasongreenhouse.com/ This one has image maps http://www.innoconcepts.com/ Thanks in advance Martin Quote
Jack_mcs Posted June 7, 2007 Posted June 7, 2007 The Easy Menu or Cool Menu contributions will do that for you. Or you can use an html editor to create the code and copy to your shop, though you will have to edit the links to pages so they are oscommerce friendly. Jack Quote 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
martinstan Posted June 7, 2007 Author Posted June 7, 2007 Thanks for that Jack. I'll check out the contributions that you've suggested and try out the HTML route too. I think it's the 'oscommerce friendly' links that I'll have trouble with, but that's helped. Cheers martin Quote
Jack_mcs Posted June 7, 2007 Posted June 7, 2007 You can post here if you have a problem with them but if you look in the includes/header.php file, you can get an example of the link syntax by the one used on the logo. Jack Quote 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
martinstan Posted June 7, 2007 Author Posted June 7, 2007 Hi Jack I really appreciate your help. Can I just run my understanding of this by you in it's simplest form. Is this the example that you're referring to?: <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?> and then for instance if if create a new page called 'page1.php' I could add a piece of code like this: <?php echo '<a href="' . tep_href_link(FILENAME_PAGE1) . '">' . tep_image(DIR_WS_IMAGES . 'page1.gif', 'page1') . '</a>'; ?> and then in filenames.php add this: define('FILENAME_PAGE1', 'page1.php'); Would that work assuming I had a page1.gif image?? Thanks Martin Quote
Jack_mcs Posted June 8, 2007 Posted June 8, 2007 Yes, that is pretty much it. If the file you are calling, page1.php includes a text file, like most such files do, you will need to create on in the english directory too. Jack Quote 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
kade119 Posted June 13, 2007 Posted June 13, 2007 so Jack, to add the horizontal menu , I would have to add syntax in the header.php? Quote
Jack_mcs Posted June 14, 2007 Posted June 14, 2007 Yes. An example is given if you use EasyMenu. Jack Quote 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
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.