Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 35
  1. #21
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: reviews sidebox!? main page problem

    Were you able to fix it or am I just not seeing the problem?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #22
    Join Date
    Feb 2010
    Posts
    71
    Plugin Contributions
    0

    Default Re: reviews sidebox!? main page problem

    Quote Originally Posted by Ajeh View Post
    Were you able to fix it or am I just not seeing the problem?
    Nope I haven't been able to fix it. Although not for want of trying with very limited skills!

    On this page the manufacturers infor sidebox appears to be a duplicate of the information side box.

  3. #23
    Join Date
    Feb 2010
    Posts
    71
    Plugin Contributions
    0

    Default Re: reviews sidebox!? main page problem

    Quote Originally Posted by Ajeh View Post
    Were you able to fix it or am I just not seeing the problem?
    Fixed it now. Problem was that I inadvertently corrupted 'tpl_manufacturer_info.php' in includes/template/my_template/sideboxes when I added the 'tp-reviews_random.php' to the same folder.

    Nothing wrong with your excellent mod of course just me being clumsy!


    I think the other problem effecting the order the side boxes appear has always been there and is due to the ZJ_black template side box over rides and I just hadn't noticed it before.

  4. #24
    Join Date
    Feb 2010
    Posts
    71
    Plugin Contributions
    0

    Default Re: reviews sidebox!? main page problem

    Quote Originally Posted by Ajeh View Post
    Put the 60 back and add a substr around the text ... for example:
    Code:
    substr($random_review_sidebox_product->fields['reviews_text'], 0, 20)
    Ajeh I want to do the same thing (limit the amount of the review that shows in the review side box) can you tell me where to add this in tpl_reviews-random.php.

    I took a couple of stabs at it but obviously got it wrong.

    (as you have guessed by now I am a complete newbie by now)

    I also want to have the image centered in the reviews side box but I want the text left justified.

    I experimented a little and discovered I can left justify the text by changing

    class="sideBoxContent centeredContent">'; to

    class="sideBoxContent leftContent">';

    but unsurprisingly this also left justifies the image.

  5. #25
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: reviews sidebox!? main page problem

    In the tpl file use this code:
    Code:
      $content = "";
      $review_box_counter = 0;
      while (!$random_review_sidebox_product->EOF) {
        $review_box_counter++;
        $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
        $content .= '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_review_sidebox_product->fields['products_id'] . '&reviews_id=' . $random_review_sidebox_product->fields['reviews_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_review_sidebox_product->fields['products_image'], $random_review_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . zen_break_string(nl2br(zen_output_string_protected(stripslashes($random_review_sidebox_product->fields['reviews_text']))), 60, '-<br />') . ' ..</a><br /><br />' . zen_image(DIR_WS_TEMPLATE_IMAGES . 'stars_' . $random_review_sidebox_product->fields['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $random_review_sidebox_product->fields['reviews_rating']));
        $content .= '</div>';
        $random_review_sidebox_product->MoveNextRandom();
      }
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

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

    Default Re: reviews sidebox!? main page problem

    at one time the random reviews box scrolled through the items reviewed but now it is stationary.

    is there any way to have it scroll again?

    or

    is there a way to make the review itself NOT be linked..when you click the image you go to the reviews page but the entire review is hotlinked. I would love to have just the image send the customer not the wording.

    http://fantasiesrealm.com/market/index.php?main_page=

  7. #27
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: reviews sidebox!? main page problem

    Customize the sidebox so that just the image has the link ...

    Change the line with the link:
    Code:
      $content .= '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'products_id=' . $_GET['products_id']) . '">' . zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_BOX_WRITE_REVIEW, OTHER_BOX_WRITE_REVIEW_ALT) . '<br />' . BOX_REVIEWS_WRITE_REVIEW .'</a>';
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

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

    Default Re: reviews sidebox!? main page problem

    Quote Originally Posted by Ajeh View Post
    Customize the sidebox so that just the image has the link ...

    Change the line with the link:
    Code:
      $content .= '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'products_id=' . $_GET['products_id']) . '">' . zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_BOX_WRITE_REVIEW, OTHER_BOX_WRITE_REVIEW_ALT) . '<br />' . BOX_REVIEWS_WRITE_REVIEW .'</a>';

    thanks Linda I shall try that right now.

    I forgot to ask which file is it the tpl_reviews_random.php in my template fiolder or in a different location.
    Last edited by DarkAngel; 30 Apr 2010 at 04:41 AM.

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

    Default Re: reviews sidebox!? main page problem

    well i tried changeing things in the tpl_reviews_write.php but the review still remains with the link along with the image. It will not let me set it so the image is the only thing linked.

    I feel like a bloody idjut with this one...lol

    I DID IT! just moved the </a> up a bit in the tpl_reviews_random.php file. thanks
    Last edited by DarkAngel; 30 Apr 2010 at 05:09 AM.

  10. #30
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: reviews sidebox!? main page problem

    Yes ... I gave you the line to change ... but you had to decide what you wanted to change on it ...

    You didn't actually think I was going to do "everything" for you ...

    Like where I even made you figure out what file it came from?

    You did a great job and thanks for sharing your solution with everyone ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. v151 New reviews on main page
    By perfumbg in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 15 Jul 2013, 08:44 AM
  2. v138a Customer reviews for main page
    By perfumbg in forum General Questions
    Replies: 0
    Last Post: 14 Sep 2012, 04:55 PM
  3. v150 Main page reviews
    By wyewyewye in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Aug 2012, 12:16 PM
  4. Remove product reviews on main page only
    By robbinsgj in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 21 Jun 2010, 06:39 AM
  5. Removing Image from Main page Reviews box
    By Dsewell2 in forum Basic Configuration
    Replies: 0
    Last Post: 18 Mar 2009, 04:37 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR