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

Help needed with adding Images on "mainpage.php"

This is a discussion on Help needed with adding Images on "mainpage.php" within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; Hi, Can somebody please help me with the (default) path for images to be displayed on the 'mainpage'. I have ...

      
  1. #1
    New Member
    Join Date
    Jun 2009
    Posts
    7
    Rep Power
    0


    Question Help needed with adding Images on "mainpage.php"

    Hi,

    Can somebody please help me with the (default) path for images to be displayed on the 'mainpage'.

    I have edited the file "../catalog/includes/languages/english/mainpage.php" to display images.

    I have uploaded the "pic.png" into the folder ".../catalog/includes/languages/english/images"

    and used the following path: <img src="./images/pic.png"> in the "mainpage.php" file - NO IMAGE DISPLAYED

    using the path: <img src="images/pic.png"> - NO IMAGE DISPLAYED

    Do I need to use an "absolute path"? Or is there some code that forces this page to read from another directory?

    Some advice for a newbie please

  2. #2
    osCMax Developer

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


    Default Re: Help needed with adding Images on "mainpage.php"

    Your problem is you have uploaded the image to the wrong dir.

    Upload to /catalog/images

    then use this relative path: images/pic.png
    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

  3. #3
    New Member
    Join Date
    Jun 2009
    Posts
    7
    Rep Power
    0


    Default Re: Help needed with adding Images on "mainpage.php"

    Thanks, Michael.

    It seems that this dir "/catalog/images" is the "catch all" for all images used in the cart and not the "images" directories in each of the subs for /catalog/includes... etc such as 'boxes' as it is in osCommerce.

    Can you confirm or provide a little insight into this?

  4. #4
    osCMax Developer

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


    Default Re: Help needed with adding Images on "mainpage.php"

    Images are handled the same in osCMax as in osCommerce. All images always go in the catalog/images dir. But if you want to put them somewhere else, just make sure the path is right. Only the buttons are stored in /catalog/includes/languages/english/images/buttons/

    Using your first example of uploading images to: /catalog/includes/languages/english/images/pic.png

    You would then use this path in mainpage:
    includes/languages/english/images/pic.png

    Really straightforward, your problem was that you were uploading it to /catalog/includes/languages/english/images/pic.png

    Then making the path point to
    /catalog/images/pic.png
    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

Similar Threads

  1. Error language text in admin "orders" section, help needed!
    By ptt81 in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 03-29-2009, 05:41 PM
  2. Adding "Live Chat" feature into OscMax?
    By minuteman1970 in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 08-26-2008, 12:30 PM
  3. Adding a link next to "My Account | Cart Contents"
    By jb321 in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 11-02-2004, 04:40 AM
  4. Adding "Next page" links to bottom of new pages?
    By afguns in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 03-31-2004, 05:30 PM
  5. Adding an image in the "Whats New Here" page?
    By MonkeyBoy in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 12-18-2003, 07:48 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
  •