Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Reviews help please

    I am trying to install DGReviews. It is a rather old one but worked until 1.3.9h

    I know the language file behaves and the problem I am having is this one with it appearing on the page correctly. I add the code it says to add to the tpl_product_info.php but no matter where I add it I get the results in the image below....the reviews show with the write a review button but the footer shies away from where it needs to be.

    It--the footer also after removing all review codes has a space between it and the bottom of page.

    Could it be the actual dgreviews.php that messes it up or what am I doing wrong.

    Code:
    <?php 
    // dgReviews v 1.01
    //Modified to work with version v1.3.6  of the dgcart
    // This is a quick down and dirty mod to add product reviews onto the product info page
    // by MichaelDuvall.com
    ?>
        <!-- bof: dgReviews-->
    <div>
    <?php
    //change this constant to change the title for the customer reviews
      $review_title = 'Customer Reviews';
      
     $review_status = " and r.status = '1'";
      /* This is where you change the parameter value to output 1000 charaters or equivelent */
      $reviews_query_raw = "select r.reviews_id, left(rd.reviews_text, 1000) 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)$_GET['products_id'] . "'
                            and r.reviews_id = rd.reviews_id
                            and rd.languages_id = '" . (int)$_SESSION['languages_id'] . "'" .
                            $review_status . "
                            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')) {
    ?>
      <?php 
      if ($reviews->fields['count'] > 0) {
      echo '<div align="left">';
      echo DG_CUSTOMER_REVIEWS_TITLE; 
      echo '</div>';
      echo '<div align="left">';
      echo  '<hr>';
      echo '</div>';
      }
      ?>
      
      <div><?php echo $reviews_split->display_count(TEXT_DISPLAY_NUMBER_OF_REVIEWS); ?></div>
    <br/>
      <div align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $reviews_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'main_page'))); ?></div>
        
     <?php
        }
    
        $reviews = $db->Execute($reviews_split->sql_query);
    
        while (!$reviews->EOF) {
    ?>
      <?php // change the class name here to reflect your CSS page ?>
     <div class="bold"><?php echo sprintf(TEXT_REVIEW_BY, zen_output_string_protected($reviews->fields['customers_name'])); ?></div>
      
       
     <div align="left"><?php echo sprintf(TEXT_REVIEW_DATE_ADDED, zen_date_short($reviews->fields['date_added'])); ?></div>
      
         <div align="left">
        
        <?php echo zen_break_string(zen_output_string_protected(stripslashes($reviews->fields['reviews_text'])), 35, '-<br />').'<br /><br />'. sprintf(TEXT_REVIEW_RATING, zen_image(DIR_WS_TEMPLATE_IMAGES . 'stars_' . $reviews->fields['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $reviews->fields['reviews_rating'])), sprintf(TEXT_OF_5_STARS, $reviews->fields['reviews_rating'])); ?>
        </div>
     <div><hr></div>
     
    <?php
          $reviews->MoveNext();
        }
    ?>
    <?php
      } else {
    ?>
      <br/>
    <?php
      }
    
      if (($reviews_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3'))) {
    ?>
       
        <div><?php echo $reviews_split->display_count(TEXT_DISPLAY_NUMBER_OF_REVIEWS); ?></div>
      <br/>
        <div align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $reviews_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'main_page'))); ?></div>
        <br/>
    <?php
      }
    ?>
    <!-- eof: also_purchased -->
    <?php //this is the end of dgReview?>
    Screen-shot-2015-07-14-at-9.32.51-PM.jpg
    Screen-shot-2015-07-14-at-9.32.30-PM.jpg

  2. #2
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Reviews help please

    I don't see a closing </div> at the end of the file to match the opening <div> on line 8 ?

  3. #3
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Reviews help please

    Quote Originally Posted by gilby View Post
    I don't see a closing </div> at the end of the file to match the opening <div> on line 8 ?

    so there should be a </div> Here like this:


    <?php </div> } ?>

  4. #4
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Reviews help please

    Quote Originally Posted by DarkAngel View Post
    so there should be a </div> Here like this:


    <?php </div> } ?>
    I would try just
    </div>
    on a new line (without the php )

  5. #5
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Reviews help please

    OK, ty I will try that momentarily, right now must grab a snack or my sugar level won't like me..LOL

  6. #6
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Reviews help please

    ok, it works now and has the write button, but there is still the added space between the footer and the bottom of the page...see that second image please.

    I meant the first image please, the one in the main post.

    for heavens sake I don't have the image up yet but I will

    Screen-shot-2015-07-14-at-11.41.03-PM.jpg
    Last edited by DarkAngel; 15 Jul 2015 at 05:44 AM.

  7. #7
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default Re: Reviews help please

    Do you happen to have a link to the site?

  8. #8
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Reviews help please

    http://www.designerperfumesnob.com

    I noticed too that it is no longer flush to the center portion on the right side.

  9. #9
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: Reviews help please

    You have the footer in the col10 div you should move it outside like headerWrapper.

    What you have:

    Code:
    <div id="main-container" class="onerow-fluid">
        <div id="headerWrapper">
            header stuff
        </div>
        <div class="col2">
            left column stuff
        </div>
        <div class="col10">
            left column stuff
            <div id="footer" class="onerow-fluid">
            footer stuff
            </div>
        </div>
    </div>
    What should be

    Code:
    <div id="main-container" class="onerow-fluid">
        <div id="headerWrapper">
            header stuff
        </div>
        <div class="col2">
            left column stuff
        </div>
        <div class="col10">
            left column stuff
        </div>
        <div id="footer" class="onerow-fluid">
        footer stuff
        </div>
    </div>
    In your homepage you have id="footer" outside id="main-container", the above should work, in case put the footer outside like this

    Code:
    <div id="main-container" class="onerow-fluid">
        <div id="headerWrapper">
            header stuff
        </div>
        <div class="col2">
            left column stuff
        </div>
        <div class="col10">
            left column stuff
        </div>
    </div>
    <div id="footer" class="onerow-fluid">
        footer stuff
    </div>

  10. #10
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Reviews help please

    Quote Originally Posted by keneso View Post
    You have the footer in the col10 div you should move it outside like headerWrapper.

    What you have:

    Code:
    <div id="main-container" class="onerow-fluid">
        <div id="headerWrapper">
            header stuff
        </div>
        <div class="col2">
            left column stuff
        </div>
        <div class="col10">
            left column stuff
            <div id="footer" class="onerow-fluid">
            footer stuff
            </div>
        </div>
    </div>


    What should be

    Code:
    <div id="main-container" class="onerow-fluid">
        <div id="headerWrapper">
            header stuff
        </div>
        <div class="col2">
            left column stuff
        </div>
        <div class="col10">
            left column stuff
        </div>
        <div id="footer" class="onerow-fluid">
        footer stuff
        </div>
    </div>
    In your homepage you have id="footer" outside id="main-container", the above should work, in case put the footer outside like this

    Code:
    <div id="main-container" class="onerow-fluid">
        <div id="headerWrapper">
            header stuff
        </div>
        <div class="col2">
            left column stuff
        </div>
        <div class="col10">
            left column stuff
        </div>
    </div>
    <div id="footer" class="onerow-fluid">
        footer stuff
    </div>
    Where do I find and change this code at, still learning but if told what/where I tend to get it going...LOL

    I am running the responsive template as is from creator and usually can move things about in the non-responsive ones but these responsive ones scare the daylights out of me...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. please help need help for reviews and tips page
    By abs007 in forum General Questions
    Replies: 2
    Last Post: 9 Apr 2009, 02:14 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR