osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Reviews text not showing up

This is a discussion on Reviews text not showing up within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hey, having some problems pinpointing the problem here. The site show that first couple of lines of a review, but ...


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-30-2004, 09:44 PM
New Member
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jazzdrive
Default Reviews text not showing up

Hey, having some problems pinpointing the problem here. The site show that first couple of lines of a review, but when I click on it to see the whole thing, it just displays "A" and then nothing else. I doesn't even display the rating right.

Anyone know how, or where, to fix this?

Thanks a lot.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 07-04-2004, 01:19 PM
New Member
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jazzdrive
Default

does anyone have any ideas at all?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 07-05-2004, 04:33 AM
Member
 
Join Date: Jan 2004
Location: Netherlands
Posts: 71
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
paulM
Default

Do you have an url?

Do you happen to know if it only happens with a specific template?

Did you move the reviews box to the left? (if so it could be an old osC bug, but I assume this bug has already been solved in MAX)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 07-08-2004, 06:18 PM
New Member
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jazzdrive
Default

actually I did move the reviews box to the left. And here is the Url,

http://beginningspublishing.com/cata...p;reviews_id=2

Thanks for your help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 07-12-2004, 12:53 AM
Member
 
Join Date: Jan 2004
Location: Netherlands
Posts: 71
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
paulM
Default

Quote:
Originally Posted by jazzdrive
actually I did move the reviews box to the left.
Hi jazzdrive,

The problem indeed seems to be a "normal" osC problem/error. In includes/boxes/reviews.php reviews there is a variable being used called $review which also is used in another file (product_reviews_info.tpl.php ?). This results in an error if the reviews box code is activated before the content code, which happens when you move the reviews to the left.

includes/boxes/reviews.php there are three instances of $review, you can rename those three to $review_text or $review_box for example

this is the piece of boxes/reviews.php code where it happens:
Code:
// display random review box
    $review_query = tep_db_query("select substring(reviews_text, 1, 60) as reviews_text from " . TABLE_REVIEWS_DESCRIPTION . " where reviews_id = '" . (int)$random_product['reviews_id'] . "' and languages_id = '" . (int)$languages_id . "'");
    $review = tep_db_fetch_array($review_query);

    $review = tep_break_string(tep_output_string_protected($review['reviews_text']), 15, '-<br>');

    $boxContent = '<div align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></div><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . $review . ' ..</a><br><div align="center">' . tep_image(DIR_WS_IMAGES . 'stars_' . $random_product['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $random_product['reviews_rating'])) . '</div>';
  } elseif (isset($HTTP_GET_VARS['products_id'])) {
// display 'write a review' box
I don't use oscdox myself so I'm not 100% sure about this, so please confirm if it helps or not

hth
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 10-30-2004, 08:25 AM
New Member
 
Join Date: Oct 2004
Posts: 16
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
eyeofhorus
Default Reviews text not showing up

This fix worked for me! Only I found 4 instances of $review to fix. Also note that it is really quirky because it worked when I was logged in as a customer, so I thought that had something to do with it.

Quote:
Originally Posted by paulM
Quote:
Originally Posted by jazzdrive
actually I did move the reviews box to the left.
Hi jazzdrive,

The problem indeed seems to be a "normal" osC problem/error. In includes/boxes/reviews.php reviews there is a variable being used called $review which also is used in another file (product_reviews_info.tpl.php ?). This results in an error if the reviews box code is activated before the content code, which happens when you move the reviews to the left.

includes/boxes/reviews.php there are three instances of $review, you can rename those three to $review_text or $review_box for example

this is the piece of boxes/reviews.php code where it happens:
Code:
// display random review box
    $review_query = tep_db_query("select substring(reviews_text, 1, 60) as reviews_text from " . TABLE_REVIEWS_DESCRIPTION . " where reviews_id = '" . (int)$random_product['reviews_id'] . "' and languages_id = '" . (int)$languages_id . "'");
    $review = tep_db_fetch_array($review_query);

    $review = tep_break_string(tep_output_string_protected($review['reviews_text']), 15, '-<br>');

    $boxContent = '<div align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></div><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . $review . ' ..</a><br><div align="center">' . tep_image(DIR_WS_IMAGES . 'stars_' . $random_product['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $random_product['reviews_rating'])) . '</div>';
  } elseif (isset($HTTP_GET_VARS['products_id'])) {
// display 'write a review' box
I don't use oscdox myself so I'm not 100% sure about this, so please confirm if it helps or not

hth
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 01-18-2005, 04:15 PM
bfr bfr is offline
New Member
 
Join Date: Oct 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bfr
Default

Had this very annoying problem too, and this solution worked(my reviews
box was NOT moved to right from left, but i guess it was because of the template i used)!

Thank you very, VERY much!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 01-30-2005, 11:35 AM
Member
 
Join Date: Jan 2004
Location: Netherlands
Posts: 71
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
paulM
Default

Quote:
Originally Posted by bfr
my reviews
box was NOT moved to right from left, but i guess it was because of the template i used
that's correct. Moving to the left is not the real problem of course, it's that the reviews box is loaded before the content is (which often means it's at the left side, dependig on the layout).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 09-08-2005, 07:40 AM
New Member
 
Join Date: Aug 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
newzen
Default

HELP ME PLEASE, i have the same problem, Paul M is right, this correct the review text but image and start still not displaying, some one now why? FOR PRODUCT_REVIEW_INFO NO PARAMETERS PASS FROM REVIEW BOX AT CATALOG/INCLUDES/BOXES.
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
HTML Emails being sent as plain text or with source showing malcol27 osCMax v1.7 Installation 8 04-25-2005 10:31 PM
"Tax" text not showing up in Checkout Confirm or e giyer osCMax v1.7 Installation 1 04-24-2005 11:45 AM
Reviews RCarlton osCommerce 2.2 Modification Help 3 12-12-2004 05:18 PM
Reviews text not showing up jazzdrive osCMax v1.7 Discussion 0 07-01-2004 12:20 PM
Product reviews Jood osCMax v1.7 General Mods Discussion 0 03-27-2004 05:54 AM


All times are GMT -8. The time now is 08:52 AM.


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