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

Using a table backround image

This is a discussion on Using a table backround image within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hello I have my store mostly working correctly in secure and non-secure mode. My problem is Im using a backround ...

      
  1. #1
    New Member
    Join Date
    Sep 2003
    Posts
    8
    Rep Power
    0


    Default Using a table backround image

    Hello

    I have my store mostly working correctly in secure and non-secure mode.

    My problem is Im using a backround image in one of the tables on my mainpage.tpl. When you switch to secure mode, Non secure warning
    comes up and my backround image is missing making the cart
    content not visible. Do I need to set the full secure path for this image
    on mainpage.tpl? where I placed the image?

    Or is this a config setting?
    All other "standard" images are fine even the flash banner
    I added in the header shows in SSL just not my table backround


    I dont have ssl enabled right now because of this error
    but here is the site:
    http://awesomegiftstogo.com/giftcatalog


    msaek : thanks again for this excellent work

  2. #2
    Lurker
    Join Date
    Sep 2003
    Posts
    2
    Rep Power
    0


    Default

    Use below info when you link or getting your images from mainpage.tpl
    <a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?></a>
    <img src="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>images/your_image.gif" width="25" height="20">

    good luck

  3. #3
    New Member
    Join Date
    Sep 2003
    Posts
    8
    Rep Power
    0


    Default Can I ????

    ok on the above problem

    In dremweaver I added another table to the mainpag.tpl and set a backround img. for it. (to achieve the look the client wanted)
    So.....In ssl mode I get the non secure items warning.

    Can i set up a class for that table in stylesheet.css define the image
    and cure my ssl woes? This is the only img Im using outside osc standard.

    other than a header img
    (which is flash swf embeded with the https: link) correct????

    that @!&# ssl lock is eluding me

    Does this sound like it will fly?? ... anyone?

    wlcmbeck: thanks for that info Ill try that first

  4. #4
    osCMax Developer

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


    Default

    Just use a relative link to the image and you will avoid this problem.

    Intstead of putting a full url in the img src tag or in the stylesheet, just use a relative path.

    example:

    dont use : http://mysite.com/images/image.jpg

    use : images/image.jpg
    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

  5. #5
    New Member
    Join Date
    Sep 2003
    Posts
    8
    Rep Power
    0


    Default

    Ive tried a couple of different ways, but still got the warning in SSL

    So I guess I need to find out which items are secure and which are not.

    Is there a way to find out which items are non-secure?

    So Im not chasing the wrong image

    Thanks

  6. #6
    New Member
    Join Date
    Sep 2003
    Posts
    8
    Rep Power
    0


    Default Now I did it

    after trying all of the "fixes" for SSL in the forums testing and then put it back to orig ive found that the cart
    will not even carry contents over to ssl with yes or no on the secure items warning.
    I dont quite understand what happened I have a plain - jane osCommerce
    store on the same shared server and have no problems

    BTW this works fine on the plain shop, contents carry over and orders complete in SSL mode no probs

    my host had me change this
    Code:
    if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
    in application top.php to cure my original ssl conn problems with the
    plain shop (my first osc shop). If this helps anyone

    Now this shop I tried to add a few foo-fooey backround pics and
    Blam it blew up on me.

    unfortunately its a live store that I was rushed to put up and Im trying my best to get the @#$%! Lock to show up

    Now it wont even remember your cart contents

    I might go with a plain style cart in SSL mode (because I need a copy of the shop in the secure area)to stop all
    these shenanigans
    with secure and non secure items
    eg.. table backround Images

Similar Threads

  1. Products image missing popup image
    By islander in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 08-10-2005, 12:30 PM
  2. table file
    By flexx in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 05-19-2005, 05:15 AM
  3. Backround image wont fill page
    By acrylictribesmen in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 07-06-2004, 03:42 AM
  4. .css cant seem to fix table
    By Gus in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 11-21-2003, 07:32 AM
  5. Add new fields/table to product table
    By Anonymous in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-21-2002, 04:23 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
  •