Results 1 to 9 of 9

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 ...

      
  1. #1
    New Member
    Join Date
    May 2004
    Posts
    6
    Rep Power
    0


    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.

  2. #2
    New Member
    Join Date
    May 2004
    Posts
    6
    Rep Power
    0


    Default

    does anyone have any ideas at all?

  3. #3
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    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)

  4. #4
    New Member
    Join Date
    May 2004
    Posts
    6
    Rep Power
    0


    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.

  5. #5
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    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

  6. #6
    New Member
    Join Date
    Oct 2004
    Posts
    16
    Rep Power
    0


    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

  7. #7
    bfr
    bfr is offline
    New Member
    Join Date
    Oct 2004
    Posts
    7
    Rep Power
    0


    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!

  8. #8
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    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).

  9. #9
    New Member
    Join Date
    Aug 2005
    Posts
    9
    Rep Power
    0


    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.

Similar Threads

  1. HTML Emails being sent as plain text or with source showing
    By malcol27 in forum osCMax v1.7 Installation
    Replies: 8
    Last Post: 04-25-2005, 11:31 PM
  2. "Tax" text not showing up in Checkout Confirm or e
    By giyer in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 04-24-2005, 12:45 PM
  3. Reviews
    By RCarlton in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 12-12-2004, 05:18 PM
  4. Reviews text not showing up
    By jazzdrive in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 07-01-2004, 01:20 PM
  5. Product reviews
    By Jood in forum osCMax v1.7 General Mods Discussion
    Replies: 0
    Last Post: 03-27-2004, 05:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •