Were you able to fix it or am I just not seeing the 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!
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.
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.
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.
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!
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=
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!
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.
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!
Bookmarks