Results 1 to 8 of 8

Create image box?

This is a discussion on Create image box? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi i was searching on google on "how to create new boxs" and i came across this website. From the ...

      
  1. #1
    New Member
    Join Date
    Dec 2006
    Posts
    7
    Rep Power
    0


    Default Re: Images Path ...

    Hi i was searching on google on "how to create new boxs" and i came across this website. From the information above ive found out how to create new boxes. But i dont want another informaton box, i want another box were i can put just images. Please help me.

  2. #2
    osCMax Developer

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


    Default Re: Create image box?

    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    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

  3. #3
    New Member
    Join Date
    Dec 2006
    Posts
    7
    Rep Power
    0


    Default Re: Create image box?

    how do i add an image, is thier a code i have to add, i chnaged the hyperlink to an image url put it hasent put it on.
    Last edited by Foax_19; 12-26-2006 at 07:48 AM.

  4. #4
    osCMax Developer

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


    Default Re: Create image box?

    Post the code you are using. Just add straight html <img src> tags for your images, correctly formatting them to work with php code, and make sure the path to your image is correct.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    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

  5. #5
    New Member
    Join Date
    Dec 2006
    Posts
    7
    Rep Power
    0


    Default Re: Create image box?

    This is the code im using,

    <tr>
    <td><img src="http://jamesranch.net/images/why-grass.jpg"></td>
    </tr>

    but when i put it in the image goes below the box but i want it in the box.
    Last edited by Foax_19; 12-26-2006 at 03:04 PM.

  6. #6
    osCMax Developer

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


    Default Re: Create image box?

    You can't just dump html into the php file and expect it to work. You need to add it correctly into the $info_box_contents array:

    Change this :
    PHP Code:
    $info_box_contents[] = array('align' => 'left',
                                   
    'text'  => '<a href="' tep_href_link
     
    (FILENAME_TESTPAGE1'''NONSSL') . '">' BOX_TEST_LINK1 '</a><br>' .
                                              
    '<a href="' tep_href_link
     
    (FILENAME_TESTPAGE2'''NONSSL') . '">' BOX_TEST_LINK2 '</a><br>' .
                                              
    '<a href="' tep_href_link
     
    (FILENAME_TESTPAGE3'''NONSSL') . '">' BOX_TEST_LINK3 '</a><br>' .
                                              
    '<a href="' tep_href_link
     
    (FILENAME_TESTPAGE4'''NONSSL') . '">' BOX_TEST_LINK4 '</a>' 
    To something like this:

    PHP Code:
     $info_box_contents[] = array('align' => 'left',
                                   
    'text'  => '<img src="url/to/image">'); 
    It shows exactly how add links in the tutorial. Just add your image code in the same way.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    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

  7. #7
    New Member
    Join Date
    Dec 2006
    Posts
    7
    Rep Power
    0


    Default Re: Create image box?

    Thank you for your help, it's worked.
    Last edited by Foax_19; 12-26-2006 at 04:00 PM.

  8. #8
    Member
    Join Date
    Dec 2005
    Posts
    30
    Rep Power
    0


    Default Re: Create image box?

    Quote Originally Posted by michael_s View Post
    PHP Code:
     $info_box_contents[] = array('align' => 'left',
                                   
    'text'  => '<img src="url/to/image">'); 
    It shows exactly how add links in the tutorial. Just add your image code in the same way.
    He already did...

Similar Threads

  1. Create image box in a pre-made template?
    By Foax_19 in forum osCommerce 2.2 Modification Help
    Replies: 5
    Last Post: 12-27-2006, 02:48 PM
  2. Products image missing popup image
    By islander in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 08-10-2005, 01:30 PM
  3. Categories box. How can I create a new one (or two...)??
    By Csc in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 01-15-2005, 03:20 PM
  4. Where to create /tmp for sessions
    By breag in forum osCommerce 2.2 Installation Help
    Replies: 10
    Last Post: 12-15-2002, 09:23 PM
  5. How to create sub-menu?
    By RickeyN in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 11-10-2002, 10:56 PM

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
  •