Zen Cart Logo
Forums / Basic Configuration / reviews sidebox!? main page problem

reviews sidebox!? main page problem

Views: 12,283

Results 21 to 35 of 35
22 Apr 2010, 12:57 AM
#21
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

reviews sidebox!? main page problem

Were you able to fix it or am I just not seeing the problem? :unsure:

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!]
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!

22 Apr 2010, 1:51 AM
#22
liamv avatar

liamv

New Zenner

Join Date:
Feb 2010
Posts:
73
Plugin Contributions:
0

Re: reviews sidebox!? main page problem

Ajeh:

Were you able to fix it or am I just not seeing the problem? :unsure:

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.

22 Apr 2010, 2:53 AM
#23
liamv avatar

liamv

New Zenner

Join Date:
Feb 2010
Posts:
73
Plugin Contributions:
0

Re: reviews sidebox!? main page problem

Ajeh:

Were you able to fix it or am I just not seeing the problem? :unsure:

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.

22 Apr 2010, 3:32 AM
#24
liamv avatar

liamv

New Zenner

Join Date:
Feb 2010
Posts:
73
Plugin Contributions:
0

Re: reviews sidebox!? main page problem

Ajeh:

Put the 60 back and add a substr around the text ... for example:

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 **left**Content">'; 

but unsurprisingly this also left justifies the image.
22 Apr 2010, 2:57 PM
#25
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: reviews sidebox!? main page problem

In the tpl file use this 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!]
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!

29 Apr 2010, 11:55 PM
#26
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

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=

30 Apr 2010, 3:20 AM
#27
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: reviews sidebox!? main page problem

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

Change the line with the link:

  $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!]
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!

30 Apr 2010, 3:38 AM
#28
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: reviews sidebox!? main page problem

Ajeh:

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

Change the line with the link:

$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.
30 Apr 2010, 4:06 AM
#29
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

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

30 Apr 2010, 1:11 PM
#30
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

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

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!]
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!

30 Apr 2010, 6:20 PM
#31
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: reviews sidebox!? main page problem

Ajeh:

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

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

ooooo you so mean...LOL ty and yup i figured it out but this is the way to learn this stuff too so all help appreciated.

27 May 2010, 12:22 AM
#32
royal avatar

royal

Zen Follower

Join Date:
Jun 2008
Location:
Canada
Posts:
261
Plugin Contributions:
0

Re: reviews sidebox!? main page problem

Hello Ajeh,

includes/templates/Your_template/sideboxes/tpl_reviews_random.php

I'm getting a validation error from the tpl_reviews_random.php. How can I fix this?

When I replace the code from 1.3.9c with the 1.3.8a I have no errors.

I started a thread here: http://www.zen-cart.com/forum/showthread.php?t=155946

Pre-Owned Books and Second Hand Stuff: http://www.onlineyardsale.ca

27 Jun 2010, 4:45 PM
#33
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: reviews sidebox!? main page problem

just for reverence we have 2 files that needs upgrading

/includes/modules/sideboxes/reviews.php
includes/templates/your_template/sideboxes/tpl_reviews_random.php

also can this side box rotate? from one review to the next?

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

27 Jun 2010, 5:07 PM
#34
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: reviews sidebox!? main page problem

i noticed there is only one line of code that is differant on your files compared to the new 1.39d files and becasue it's not working like i want i'm overideing the 1.3.9d files and the templates files that came with my new template i picked up with your files.

and everything works great still curious aboutthe review rotator or scroller? it would be kinda cool and if search bots see all the reviews that are going to scroll or rotate even better :)

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

3 Sep 2011, 1:17 AM
#35
jasmel avatar

jasmel

Zen Follower

Join Date:
Feb 2008
Location:
Washington State
Posts:
230
Plugin Contributions:
0

Re: reviews sidebox!? main page problem

I just stumbled onto this thread and made the changes to my store. Huge thanks! :clap:

~ jasmel : ** My Store** Using Contributions: Wallet Theme | Simple Google | Quantity Discounts | Godaddy | FAQ's | Confirm Email Address Entry | Admin login as customer | Newsletter Subscribe | CampaingMonitor