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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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.. ![]() |
|
#2
| ||||
| ||||
| 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 //-->
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 //-->
|
|
#3
| |||
| |||
| coo thanks alot it worked ! |
|
#4
| |||
| |||
| 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 |
|
#5
| ||||
| ||||
| 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
|
| The Following User Says Thank You to michael_s For This Useful Post: | ||
justedee (08-23-2007) | ||
|
#6
| |||
| |||
| 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, |
|
#7
| ||||
| ||||
| 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> |
| Thread Tools | |
| |
| ||||
| 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 |