Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HTML problem


Guest

Recommended Posts

Hi,

 

Sorry for the title but only this way you would read this message. :blush:

 

i have a huge html problem. I have contacted several persons and they all don't know how to fix it.

 

So this is your change to show and prove that you are the best!!

 

When i place in product description a html code he appears like this

 

_b_this product is excelent for the kids_b/_

 

when it should be like this

 

<b>this product is excelent for the kids</b>

 

I can't place any html tags in product description and i want to place links and videos!!!

 

:(

 

Can you help me?

 

Thank you

Link to comment
Share on other sites

I can't place any html tags in product description and i want to place links and videos!!!

why? if you add html like <b>name</b> in the description should work.

Link to comment
Share on other sites

Hi,

 

Sorry for the title but only this way you would read this message.  :blush:

 

i have a huge html problem. I have contacted several persons and they all don't know how to fix it.

 

So this is your change to show and prove that you are the best!!

 

When i place in product description a html code he appears like this

 

_b_this product is excelent for the kids_b/_

 

when it should be like this

 

<b>this product is excelent for the kids</b>

 

I can't place any html tags in product description and i want to place links and videos!!!

 

:(

 

Can you help me?

 

Thank you

Well please send Me the whole page.

Basically there is an html function that is used when you want to send HTML file code without the browser executing it.

If that function is called then all the html tags are converted and all this happens.

Please check did you call that function.

 

Hope this solves your problem else you can drop me a line.

 

Satish Mantri

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

You must have modified somthing to use this functiuon

 

tep_sanitize_string()

 

Maybe you uploaded database.php from the store into admin as the function is different. The store does not allow html but the admin does.

 

catalog/admin/includes/functions/database.php

 

  function tep_db_prepare_input($string) {
   if (is_string($string)) {
     return trim(stripslashes($string));
   } elseif (is_array($string)) {
     reset($string);
     while (list($key, $value) = each($string)) {
       $string[$key] = tep_db_prepare_input($value);
     }
     return $string;
   } else {
     return $string;
   }
 }

 

 

catalog/includes/functions/database.php

 

function tep_db_prepare_input($string) {
   if (is_string($string)) {
     return trim(tep_sanitize_string(stripslashes($string)));
   } elseif (is_array($string)) {
     reset($string);
     while (list($key, $value) = each($string)) {
       $string[$key] = tep_db_prepare_input($value);
     }
     return $string;
   } else {
     return $string;
   }
 }

Link to comment
Share on other sites

Does your store have the HTMLArea (or other WYSIWYG editor) enhancement installed in admin (i.e. if you edit a product in admin, does it display a grey control bar with loads of Microsoft Word type formating buttons. If so, you can still enter HTML directly, by switching it off via the button with the <> symbol

Link to comment
Share on other sites

Thanks guys! I apreciate all your help.

 

I must say that Dave (user99999999) solved my problem! i copied the code he placed here and all is working now.

 

Thanks a lot Dave! :lol: Man how i am thankfull.

 

This is going to give a new life to my store...

 

:thumbsup:

 

And it was so easy to solve...

 

P.S: many thanks to all the users that send me messages especially satish and enigma1.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...