osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-07-2004, 08:08 PM
New Member
 
Join Date: Oct 2002
Location: Germany
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
arames
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:

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


INTO something like
Quote:
DIR_WS_IMAGES

Pleeeeeeeeeeease help me as soon as possible.

And thank you for this great Forum like always
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 06-08-2004, 07:33 AM
Member
 
Join Date: Nov 2002
Location: Pennsylvania
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
|3ackdraft
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 06-08-2004, 07:45 AM
Member
 
Join Date: Nov 2002
Location: Pennsylvania
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
|3ackdraft
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 06-08-2004, 03:45 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 06-11-2004, 09:57 AM
New Member
 
Join Date: Oct 2002
Location: Germany
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
arames
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
Quote:
<?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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 06-23-2004, 05:11 AM
New Member
 
Join Date: Oct 2002
Location: Germany
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
arames
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:
Quote:
<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:

Quote:

<?php

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


Ang I get this
Quote:
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 !!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 06-24-2004, 01:20 AM
New Member
 
Join Date: Oct 2002
Location: Germany
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
arames
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 06-24-2004, 06:59 AM
jpf's Avatar
jpf jpf is online now
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,580
Thanks: 1
Thanked 84 Times in 71 Posts
Rep Power: 10
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
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"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Anyone With E-Path? damien101 osCMax v2 Customization/Mods 1 03-24-2007 05:33 AM
Path to images wrong after install cwinter osCommerce 2.2 Installation Help 2 12-14-2004 06:37 AM
change path to images to absolute reference mkraft osCMax v1.7 Installation 5 04-24-2004 01:17 AM
Image path, where to change? misterjonl osCommerce 2.2 Modification Help 2 10-08-2003 07:23 PM
path errors dogfood osCommerce 2.2 Installation Help 0 05-07-2003 02:43 PM


All times are GMT -8. The time now is 06:57 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax