Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 8 of 8

Thread: Images Path ...

  1. #1
    arames
    Guest


    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
    |3ackdraft
    Guest


    Default

    I am not sure I understand your question.

    do you want to turn the HTML into PHP?

  3. #3
    |3ackdraft
    Guest


    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.

  4. #4
    neil
    Guest


    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

  5. #5
    arames
    Guest


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


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


    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
    Guest


    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, 05: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, 01:17 AM
  4. Image path, where to change?
    By misterjonl in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 10-08-2003, 07:23 PM
  5. path errors
    By dogfood in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 05-07-2003, 02:43 PM

Bookmarks

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
  •