Jump to content

StreamMan

Members
  • Content count

    16
  • Joined

  • Last visited

  • Days Won

    1

StreamMan last won the day on December 27 2010

StreamMan had the most liked content!

1 Follower

Profile Information

  • Real Name
    stream
  1. StreamMan

    Article Manager v1.0

    Would this work with "KissMT Dynamic SEO Meta & Canonical Header Tags"? Also if not would it hurt if I have both installed? Thank you.
  2. Andy, Thank you for the help. It's working great.
  3. @Andy I've got it working the way Pronux explane. (Well working some what) It was showing the reviews, but not the text that says like " no reviews has been left" Also I think it did not have a button to leave a review. I've search around and found a much easier way for me to get it to work. This has nothing to do with Pronux add on. Open catalog/product_info.php about line 187 add the following just below the </div> : <!--tabs--> <script> $(document).ready(function() { $("#tabs").tabs(); }); </script> <div id="tabs"> <ul> <li><a href="#fragment-1"><span>Description</span></a></li> <li><a href="#fragment-2"><span>Reviews</span></a></li> <li><a href="#fragment-3"><span>Three</span></a></li> </ul> <div id="fragment-1"> <?php echo stripslashes($product_info['products_description']); ?> </div> <div id="fragment-2"> <?php require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_REVIEWS); $reviews_query_raw = "select r.reviews_id, left(rd.reviews_text, 100) as reviews_text, r.reviews_rating, r.date_added, r.customers_name from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd where r.products_id = '" . (int)$product_info['products_id'] . "' and r.reviews_id = rd.reviews_id and rd.languages_id = '" . (int)$languages_id . "' and r.reviews_status = 1 order by r.reviews_id desc"; $reviews_split = new splitPageResults($reviews_query_raw, MAX_DISPLAY_NEW_REVIEWS); if ($reviews_split->number_of_rows > 0) { if ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3')) { ?> <div class="contentText"> <p style="float: right;"><?php echo TEXT_RESULT_PAGE . ' ' . $reviews_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info'))); ?></p> <p><?php echo $reviews_split->display_count(TEXT_DISPLAY_NUMBER_OF_REVIEWS); ?></p> </div> <br /> <?php } $reviews_query = tep_db_query($reviews_split->sql_query); while ($reviews = tep_db_fetch_array($reviews_query)) { ?> <div> <span style="float: right;"><?php echo sprintf(TEXT_REVIEW_DATE_ADDED, tep_date_long($reviews['date_added'])); ?></span> <h2><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $product_info['products_id'] . '&reviews_id=' . $reviews['reviews_id']) . '">' . sprintf(TEXT_REVIEW_BY, tep_output_string_protected($reviews['customers_name'])) . '</a>'; ?></h2> </div> <div class="contentText"> <?php echo tep_break_string(tep_output_string_protected($reviews['reviews_text']), 60, '-<br />') . ((strlen($reviews['reviews_text']) >= 100) ? '..' : '') . '<br /><br /><i>' . sprintf(TEXT_REVIEW_RATING, tep_image(DIR_WS_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])), sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])) . '</i>'; ?> </div> <?php } } else { ?> <div class="contentText"> <?php echo TEXT_NO_REVIEWS; ?> </div> <?php } if (($reviews_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3'))) { ?> <div class="contentText"> <p style="float: right;"><?php echo TEXT_RESULT_PAGE . ' ' . $reviews_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info'))); ?></p> <p><?php echo $reviews_split->display_count(TEXT_DISPLAY_NUMBER_OF_REVIEWS); ?></p> </div> <?php } ?> <br /> <div class="buttonSet"> <span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_WRITE_REVIEW, 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, tep_get_all_get_params()), 'primary'); ?></span> <?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params())); ?> </div> </div> </div> </div> <div id="fragment-3"> test 3 </div> </div> <!--/tabs--> I've could not find out how to make it where it would show the numbers of reviews, I would like to get this working my self. If you have problems with these codes please let me know, I will do my best to help. -Stream
  4. StreamMan

    [Contribution] Products Specifications

    Thank you, Can you also provide me witch program would you recommend to compare the file?
  5. Is there anyway where we could get this mod to work with osc 2.3?
  6. StreamMan

    [Contribution] Products Specifications

    Thank you for the quick replay, Do you have a screen shot of the looks of this? Also what program would you recommend using to compare the files? Thank you for your help/time.
  7. StreamMan

    [Contribution] Products Specifications

    Does or can this work with v2.3.1? Also does anyone have a screen shot or a live site? Thank you.
  8. I've got it working the way I want. Thank you for all your time and help.
  9. Pronux, Thanks to you It's working. I've been trying to make it where it would also say "no reviews have been made" and when there is not reviews it would have a button or something telling users if they would like to leave a review. I'm going to keep messing with it to see if I could get it or not. Thank you for all your help!
  10. Is there anyway where I could just show the product_reviews.php page? As I won't need it anymore and I could take the photo, product name, etc... out of the page.
  11. I'm using (osCommerce 2.3.1) When you say I have to generate the reviews for the specific product, Do I write this code in the product_into.php? Could I just copy this code to the product_info.php? I've got it from line 71 in product_reviews.php <?php } $reviews_query_raw = "select r.reviews_id, left(rd.reviews_text, 100) as reviews_text, r.reviews_rating, r.date_added, r.customers_name from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd where r.products_id = '" . (int)$product_info['products_id'] . "' and r.reviews_id = rd.reviews_id and rd.languages_id = '" . (int)$languages_id . "' and r.reviews_status = 1 order by r.reviews_id desc"; $reviews_split = new splitPageResults($reviews_query_raw, MAX_DISPLAY_NEW_REVIEWS); if ($reviews_split->number_of_rows > 0) { if ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3')) { ?> then put in product_info.php $TMS->tab[2]['content'] = $reviews_split; I'm new in coding website, So please bare with me. Thank you for your quick reply and help. This would be great when I get this working.
  12. @Bennett I've tested the shipping details you have in the html code and it's working for me. I have it in the tab2 myAdmin I've added this table Then added your code to the table. in the product_info.php -Stream
  13. I love this add on, I can't wait until you get it where we can add the info in the tab's in are admin. I have a question, Can you lead me in the right direction in showing reviews of the product in a tab? Do I need to add the review field in the product_description, Is so how should I wright it? Thank you very much for your time and help.
×