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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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. |
|
#2
| |||
| |||
| does anyone have any ideas at all? |
|
#3
| |||
| |||
| 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) |
|
#4
| |||
| |||
| 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. |
|
#5
| |||
| |||
| Quote:
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
hth |
|
#6
| |||
| |||
| 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:
|
|
#7
| |||
| |||
| 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! |
|
#8
| |||
| |||
| Quote:
|
|
#9
| |||
| |||
| 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. |
| Thread Tools | |
| |
| ||||
| 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 |