osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Use a gif image instead of text in boxes

This is a discussion on Use a gif image instead of text in boxes within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Can anyone point me to info on how to use a gif image in place of text in various boxes? ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-01-2004, 01:09 PM
Lurker
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rocket_rob
Default Use a gif image instead of text in boxes

Can anyone point me to info on how to use a gif image in place of text in various boxes? For example, can I design my own navigation buttons to use under the "category" box that will replace the standard text? Can I also add a separate hover button there too? Thanks for any help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 02-03-2004, 04:56 AM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

in includes/boxes/categories.php look for where it shows:

$tree[$counter]['name']

replace this with

tep_image(DIR_WS_IMAGES . 'navigation/' . $tree[$counter]['name'] . '.gif')

and make sure you create a directory in images/ called "navigation" and in that place gif images named the same as your category names.

Actually a safer way would be to use

tep_image(DIR_WS_IMAGES . 'navigation/' . $counter . '.gif')

..and just name your images after the category numbers. This would avoid problems with spaces and other characters in the category names.


jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
image headers in info boxes? Dragonmom osCMax v2 Customization/Mods 4 12-20-2006 08:13 AM
Attributes as text boxes? webman osCMax v2 Customization/Mods 9 12-04-2005 09:03 AM
Change text colour for hyperlinks in boxes ChocolateTeapot osCommerce 2.2 Modification Help 1 04-25-2005 11:05 AM
Trying to put a image in php (/boxes/categories.php) JBright osCommerce 2.2 Modification Help 0 06-06-2003 10:48 AM
[b]Image around Boxes ?!?!?[/b] iluminate osCommerce 2.2 Modification Help 1 11-20-2002 04:44 PM


All times are GMT -8. The time now is 08:40 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax