osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

UTF bug fix on reviews system

This is a discussion on UTF bug fix on reviews system within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Hello guys, i am not sure exactly if it was a bug or what but in my site the reviews ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 06-21-2008, 01:24 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,979
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post UTF bug fix on reviews system

Hello guys, i am not sure exactly if it was a bug or what but in my site the reviews system (the standard reviews system) was not working correctly with the UTF-8 (greek), maybe it has this problem with other languages too.. The first problem was on the reviews block it was apeearing a box symbol instead of the normal letter in every 15 letters, and the second problem was on the reviews.php admin, it was appearing these symbol boxes in the preview so it damages the whole text..

So the fix that worked to my is these chages :
in the includes/boxes/reviews.php

### find this : ###
$rand_review_text = tep_break_string(tep_output_string_protected($rand _review['reviews_text']), 15, '-
');

### and change with this : ###
$rand_review_text = tep_break_string(tep_output_string_protected($rand _review['reviews_text']), 15, '');

### save and close ###
in the admin/reviews.php

### find this : ###




### and change with this : ###




### save and close ###

I am not very sure what those changes mean, but they are working for me, and it fixes the problem so the text is not changing with symbols..

Christoforos Onoufriadis
See in action : www.turbosim.gr (Greek lang)
sales@turbosim.gr

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

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
Complete Reviews System michael_s New osCommerce Contributions 0 04-28-2008 06:11 PM
Complete Reviews System michael_s New osCommerce Contributions 0 04-22-2008 06:40 AM
Complete Reviews System michael_s New osCommerce Contributions 0 09-28-2007 01:33 AM
Has anyone installed the Complete Reviews System Mod? mjfontec osCMax v2 Customization/Mods 2 03-22-2007 12:04 AM
I need some help with a bug fix (GV/CC + zero balance) Kristina osCMax v1.7 Discussion 1 06-13-2005 02:54 AM


All times are GMT -8. The time now is 06:21 PM.


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