osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

conflicting Text Characters html and php

This is a discussion on conflicting Text Characters html and php within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I hope someone can help here. I remember reading some where about certain Text Characters have to be changed in ...


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

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-10-2004, 11:41 AM
New Member
 
Join Date: Oct 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
anthon
Default conflicting Text Characters html and php

I hope someone can help here. I remember reading some where about certain Text Characters have to be changed in php.
I have implanted a section of text ( html ) and had no problems.
Adding to the text the "alt" tags for my images I recieved an error message afterwards.
here is part of the text
"
define('TEXT_MAIN','<BODY BGCOLOR=#008080 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (volle blad1.jpg) -->
<TABLE WIDTH=370 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD>
<A HREF="http://j.com/shop/index.php/cPath/35" TARGET="_self">
<IMG SRC="images/volle-blad1_01.gif" WIDTH=90 HEIGHT=109 ALT="antenne,sirio antenne,president antenne,solarcon,wilson,wilson 1000 trunk lip,k40,k30 magneet antenne,lemm at 1063 antenne,at 550 winchester."></TD>
<TD>
<A HREF="http://j.com/shop/index.php/cPath/32" TARGET="_self">
<IMG SRC="images/volle-blad1_02.gif" WIDTH=90 HEIGHT=109 ALT="cb,cb's,president,cb alan,cb premier,cb 2010,cb major,harry,herbert,lincoln,wilson,george,J.F.K."> </TD>
<TD>
<A HREF="http://j.com/shop/index.php/cPath/42" TARGET="_self">
<IMG SRC="images/volle-blad1_03.gif" WIDTH=90 HEIGHT=109 ALT="mist lampen,dag lamp 24 volt,breedte palen,opstapring,achteruit rij camera,verstralers,12 of 24 volt,air duster,7 aderig kabel,lucht spiraal."></TD>
<TD>

It was only after I added the alt tags that I recived the errors, so I think it has to do with conflicting Characters from html to php.
Was it comma's or slashes that have to change?
I hope you can tell me which Characters I can not use in php?
I hope you don't mind me removing the correct url. Last time I had the forum questions showing up in google when I did a search for the site. I would rather wait till the site is finished before it shows up.
( the site name is joost. if you care to look and see if you notice the problem. )
Thanks for your help, I have lerned a lot from this site the past two months,
anthon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 11-11-2004, 03:38 AM
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

Coding your images in that way will cause problems when you switch to https - the browser sees them as insecure items.

If all images are referenced in the following way, there should be no issues - if images are in the images directory.


<?php
echo tep_image(DIR_WS_IMAGES . 'my_image.gif', 'my ALT text', '100', '150');
?>




All images which are also hyperlinks should be referenced in the following way


<?php
echo '<a href="' . tep_href_link('your_directory/your_page.php') . '">' . tep_image(DIR_WS_IMAGES . your_image.gif) . '</a>';
?>
__________________
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!
  #3  
Old 11-11-2004, 06:25 AM
New Member
 
Join Date: Oct 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
anthon
Default found the problem

Thanks for your advice. My site is already secured and I so far have no problems with my images and https://
The problem I had I did find the solution to. It was in the word "cb's "
forot to place the slash \ before the ' in cb. Now everything is working fine.
thanks again,
anthon
I will change the codes soon, just happy I got the site showing again. Sorry but I had to lock the site until it is finished( in a few days ) believe it or not orders were all ready coming in ad we weren't ready for them yet!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-11-2004, 03:24 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

Anthon,
You might want to check your site from another machine - a friends or a library - & see if they get the message in https: - Displaying secure & non secure items. That usually happens when the images are coded
<IMG SRC="images.........
__________________
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 11-11-2004, 10:35 PM
New Member
 
Join Date: Oct 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
anthon
Default

I'll do that, and let you know what happens . Did you get the warning?thanks,
anthon





I did look at the income site before the store and got the message,you're right. But if I go or even logg in dirrect to the shop,I don't have those problems.
I'll go check why this is happening. I was sure the images were secured as well.
The front site is in html and the images are in the dir. So I'll give it a try and see if it works for my front site as wel.

The front site is normally secure, you enter with http, it is only when you go to the shop to buy that it changes in https://with out any conficts.
anthony
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
Admin orders - Display more characters in Model# field?? JonCloud420 osCMax v2 Features Discussion 1 10-19-2006 08:06 PM
Text Greeting, Text Main switch rashunda osCommerce 2.2 Modification Help 2 08-02-2005 10:00 PM
HTML Emails being sent as plain text or with source showing malcol27 osCMax v1.7 Installation 8 04-25-2005 10:31 PM
Trim the last 3 characters from a string? seank123 osCommerce 2.2 Modification Help 0 09-06-2004 05:14 AM
HTML? West osCommerce 2.2 Modification Help 0 05-05-2003 03:28 PM


All times are GMT -8. The time now is 07:02 PM.


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