osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

how would i put an Image in the left or right columns

This is a discussion on how would i put an Image in the left or right columns within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Using.. oscmax 2.0 standard template How would I put an image or image/link in the left or right column? Here ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 04-18-2007, 09:12 AM
New Member
 
Join Date: Apr 2007
Location: Diamond Bar, CA
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
intensea is on a distinguished road
Default how would i put an Image in the left or right columns

Using..
oscmax 2.0
standard template


How would I put an image or image/link in the left or right column?

Here a picture of what im talking about..

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 04-20-2007, 05:22 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
Smile Re: how would i put an Image in the left or right columns

I modded my information box.
includes/boxes/information.php

Original Code Line
Line 21
----------
Code:
<!-- information bof //-->
<?php

  $boxContent = '<a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INFORMATION_SHIPPING . '</a><br>' .
                '<a href="' . tep_href_link(FILENAME_PRIVACY) . '"> ' . BOX_INFORMATION_PRIVACY . '</a><br>' .
                '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
                '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '"> ' . BOX_INFORMATION_CONTACT . '</a><br>'.
                '<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGES, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>' .
                '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '"> ' . BOX_INFORMATION_GV . '</a><br>' . //ICW ORDER TOTAL CREDIT CLASS/GV
                '<a href="' . tep_href_link(FILENAME_SITEMAP) . '">' . BOX_INFORMATION_SITEMAP . '</a>';


include (bts_select('boxes', $box_base_name)); // BTS 1.5

?>
<!-- information eof //-->
Add your image to the /images directory
Change my links / targets to suit.
Change to:
---------------
Code:
<!-- information bof //-->
<!-- ensure your image in not wider than the box :) //-->
<?php

  $boxContent = 
    '<a href="http://www.12website.com" target="_blank">' . tep_image(DIR_WS_IMAGES . 'your_image.gif', '12website.com Advanced Websites') . '</a><br><br>' .
  '<a href="http://www.google.com" target="_blank">Google</a><br><br>' .
  '<a href="http://www.12website.com.au" target="_blank">Advanced Web Design</a><br><br>' . 
  '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '</a><br>';


include (bts_select('boxes', $box_base_name)); // BTS 1.5

?>
<!-- information eof //-->
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to neil For This Useful Post:
michael_s (04-25-2007), typhus (01-11-2008)
  #3  
Old 04-25-2007, 09:24 AM
New Member
 
Join Date: Apr 2007
Location: Diamond Bar, CA
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
intensea is on a distinguished road
Default Re: how would i put an Image in the left or right columns

coo thanks alot it worked !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 08-23-2007, 05:28 AM
Member
 
Join Date: Apr 2007
Posts: 65
Thanks: 18
Thanked 1 Time in 1 Post
Rep Power: 2
justedee is on a distinguished road
Default Re: how would i put an Image in the left or right columns

Please forgive my stupidity, I've new at programming.
But if you replace:
$boxContent = '<a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INFORMATION_SHIPPING . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_PRIVACY) . '"> ' . BOX_INFORMATION_PRIVACY . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '"> ' . BOX_INFORMATION_CONTACT . '</a><br>'.
'<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGE S, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '"> ' . BOX_INFORMATION_GV . '</a><br>' . //ICW ORDER TOTAL CREDIT CLASS/GV
'<a href="' . tep_href_link(FILENAME_SITEMAP) . '">' . BOX_INFORMATION_SITEMAP . '</a>';


include (bts_select('boxes', $box_base_name)); // BTS 1.5

Won't all the boxes go away?

Should I just add:

'<a href="http://www.12website.com" target="_blank">' . tep_image(DIR_WS_IMAGES . 'your_image.gif', '12website.com Advanced Websites') . '</a><br><br>' .
'<a href="http://www.google.com" target="_blank">Google</a><br><br>' .
'<a href="http://www.12website.com.au" target="_blank">Advanced Web Design</a><br><br>' .
'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '</a><br>';



I mean I still want the shipping info and such.
Again I've very new at this.
~eDee
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 08-23-2007, 09:12 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: how would i put an Image in the left or right columns

That is just an example, you are still required to engage the gray matter and customize it to your needs

So if you want to keep your other links, of course, you would keep them. Just add the new line of code that references your image.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to michael_s For This Useful Post:
justedee (08-23-2007)
  #6  
Old 04-16-2008, 06:39 PM
New Member
 
Join Date: Apr 2007
Posts: 24
Thanks: 9
Thanked 0 Times in 0 Posts
Rep Power: 0
flutterby is on a distinguished road
Default Re: how would i put an Image in the left or right columns

I have used this method to put a Paypal logo and link after my "Site Map" link in the information box as you see some of the code below. But can someone please tell me how to center the logo in the box?



'<a href="' . tep_href_link(FILENAME_SITEMAP) . '">' . BOX_INFORMATION_SITEMAP . '</a><br><br>'.
'<a href="https://www.paypal.com" target="_blank">' . tep_image(DIR_WS_IMAGES . 'paypal_boxes.gif', 'secure payments paypal') . '</a>';


Thanks,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 04-16-2008, 09:56 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
Smile Re: how would i put an Image in the left or right columns

Try this. Basically put it all in a centred div.
Code:
<div align="center">
'<a href="' . tep_href_link(FILENAME_SITEMAP) . '">' . BOX_INFORMATION_SITEMAP . '</a><br>
  <br>
  '.
'<a href="https://www.paypal.com" target="_blank">' . tep_image(DIR_WS_IMAGES . 'paypal_boxes.gif', 'secure payments paypal') . '</a>'; 
</div>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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
BTS Columns Question php4ever osCommerce 2.2 Discussion 8 08-11-2007 09:23 AM
Product Listing in Columns michael_s New osCommerce Contributions 0 04-06-2007 06:12 PM
controlling text width in right/left columns. lhotch osCMax v1.7 Discussion 3 09-29-2004 01:38 PM
background image in left column - how to in mAX? starchild osCMax v1.7 Discussion 2 09-10-2003 08:55 PM
Background colour in columns only adder667 osCommerce 2.2 Modification Help 4 04-14-2003 01:02 AM


All times are GMT -8. The time now is 09:14 AM.


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