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..
![]()
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 ...
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..
![]()
I modded my information box.
includes/boxes/information.php
Original Code Line
Line 21
----------
Add your image to the /images directoryCode:<!-- 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 //-->
HTH
Neil
www.12website.com
"You can have everything in life that you want if you will just help enough other people get what they want."
Zig Ziglar
coo thanks alot it worked !![]()
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
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 Installation Service - Have our professionals install osCmax on your server - same day service!
osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5
Stay Up To Date with everything osCMax:
Free osCmax Newsletters - Security notices, New Releases, osCMax News
osCmax on Twitter - Up to the minute info as it happens. Know it first.
osCmax Documentation
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,
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>
HTH
Neil
www.12website.com
"You can have everything in life that you want if you will just help enough other people get what they want."
Zig Ziglar
Bookmarks