osCmax v2.5 User Manual
Results 1 to 7 of 7

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 ...

      
  1. #1
    New Member
    Join Date
    Apr 2007
    Location
    Diamond Bar, CA
    Posts
    22
    Rep Power
    0


    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..


  2. #2
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    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 //-->
    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

  3. #3
    New Member
    Join Date
    Apr 2007
    Location
    Diamond Bar, CA
    Posts
    22
    Rep Power
    0


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

    coo thanks alot it worked !

  4. #4
    Member
    Join Date
    Apr 2007
    Posts
    65
    Rep Power
    6


    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

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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 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

  6. #6
    New Member
    Join Date
    Apr 2007
    Posts
    28
    Rep Power
    0


    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,

  7. #7
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    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>
    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

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •