Results 1 to 8 of 8

Images Path ...

This is a discussion on Images Path ... within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I may be 1 of the first who signed into this site 2 years ago.. think I got pretty long ...

      
  1. #1
    New Member
    Join Date
    Oct 2002
    Location
    Germany
    Posts
    5
    Rep Power
    0


    Default Images Path ...

    I may be 1 of the first who signed into this site 2 years ago.. think I got pretty long with my site.

    Now, I have to change some images to make my server secure.

    SO ploease how do I change if I have a part like this:

    <td background="http://www.mysite.com/shop/images/pixel_trans.gif" bgcolor="#A4C2F8" bordercolor="#FFFFFF">
    or
    <img border="0" src="http://www.mysite.com/shop/images/infobox/corner_right_left.gif" width="11" height="14" align="left">


    INTO something like
    DIR_WS_IMAGES

    Pleeeeeeeeeeease help me as soon as possible.

    And thank you for this great Forum like always

  2. #2
    Member
    Join Date
    Nov 2002
    Location
    Pennsylvania
    Posts
    93
    Rep Power
    0


    Default

    I am not sure I understand your question.

    do you want to turn the HTML into PHP?
    There\'s something about fireman, day and night they are always fireman!

  3. #3
    Member
    Join Date
    Nov 2002
    Location
    Pennsylvania
    Posts
    93
    Rep Power
    0


    Default

    It looks like you are trying to add a new box

    You should create the new box, by say for example copy the information.php and save it as for example newbox.php

    Then go into column_left.php or column_right.php depending on which side you want to put it on and insert the following code:
    Code:
    include(DIR_WS_BOXES . 'newbox.php');
    afterwards you can change the newbox.php to whatever you like.

    It will create the top of the box for you. This is done through a class and the information is passed on to the class from the following line:
    Code:
      $info_box_contents = array();
      $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);
      new infoBoxHeading($info_box_contents, false, false);
    Hope this helps you.
    There\'s something about fireman, day and night they are always fireman!

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


    Default

    Looks to me like he has hardcoded some images & is getting that - "Page contains not secure items" message in IE. when he goes to SSL.
    If that is the case go to:
    http://wiki.oscommerce.com/WarnSecurity
    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

  5. #5
    New Member
    Join Date
    Oct 2002
    Location
    Germany
    Posts
    5
    Rep Power
    0


    Default

    Hi everybody,

    thank you for your support, I was waiting for the email notification to tell me that somebody replied to my mail .. but I didn't get that email ( or maybe too many spams these days and I accidentally deleted it)

    Anyway, it is as dearest neil said, i added some boxes to my store, and was adding simple HTML code.

    Now that I bought own SSL server, people are getting WARNING notification when they log on and when https is on they get warnings.

    So I had to do what i hate most is change all my URL of images into
    <?php echo tep_image(DIR_WS_IMAGES . 'your_image.gif'); ?>

    I will try to follow step by step the link of neil and hope it will work out.

    Thank you again for the support, and I am glad to be back after 1,5 year of being away.

    Regards,
    Arames

  6. #6
    New Member
    Join Date
    Oct 2002
    Location
    Germany
    Posts
    5
    Rep Power
    0


    Default

    Please anybody help me .....

    I am desperate.

    I finally got a secure server and now want to change the normal path of my images.

    for example i changed in a box called "express.php" the lines I had:
    <img border="0" src="http://www.mysite.com/shop/images/infobox/corner_right_left.gif" width="11" height="14" align="left"><font face="Verdana" size="2"> </font>
    into:


    <?php

    echo tep_image(DIR_WS_IMAGES . 'merch_logo_airborne.gif', Express Shipping, 102, 41);
    }
    ?>


    Ang I get this
    Parse error: parse error, unexpected T_STRING in /homepages/41/d69141694/htdocs/shop/includes/boxes/express.php on line 33

    How can I change the pathe of my images ????

    Please help me !!!!

  7. #7
    New Member
    Join Date
    Oct 2002
    Location
    Germany
    Posts
    5
    Rep Power
    0


    Default

    Please still depseratly waiting for an answer...

    p.s: If anybody can help I will be glad to make a small contribution to his paypal account.

    Regards,
    Arames

  8. #8
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default

    If you change:

    Code:
    <img border="0" src="http://www.mysite.com/shop/images/infobox/corner_right_left.gif" width="11" height="14" align="left"><font face="Verdana" size="2"> </font>
    To:
    Code:
    <img border="0" src="images/infobox/corner_right_left.gif" width="11" height="14" align="left"><font face="Verdana" size="2"> </font>
    and as long as the pic are accesable from both servers then the server will load relative to current server/path ie:

    Non-secure will load as:
    "http://www.mysite.com/shop/images/infobox/corner_right_left.gif"

    Secure will load as:
    "https://www.shariedsecuresite.com/~mysite/shop/images/infobox/corner_right_left.gif"

Similar Threads

  1. Anyone With E-Path?
    By damien101 in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 03-24-2007, 06:33 AM
  2. Path to images wrong after install
    By cwinter in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 12-14-2004, 06:37 AM
  3. change path to images to absolute reference
    By mkraft in forum osCMax v1.7 Installation
    Replies: 5
    Last Post: 04-24-2004, 02:17 AM
  4. Image path, where to change?
    By misterjonl in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 10-08-2003, 08:23 PM
  5. path errors
    By dogfood in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 05-07-2003, 03:43 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
  •