View Single Post
  #1  
Old 05-24-2007, 08:58 AM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default Thickbox implementation - need some help

I've got the Thickbox working for the detailed images as outlined here: http://forum.x-cart.com/showthread.php?t=23858

That works great. So after taking the 2 1/2 minutes to install that, I thought, hey, this would be a GREAT way to declutter the product pages without using tabs, so I set off to get the send to a friend and product review to display using Thickbox. But I just can't seem to get it to display properly.

Here's what I have so far:

I created a new .tpl to handle the links:

Code:
{if $js_enabled} <a href="#TB_inline?height=300&width=500&inlineId=TBsend_friend" class="thickbox"> <img src="{$ImagesDir}/send_friend.gif" width="95" height="32" alt="e-mail this page to a friend" /></a> {if $reviews ne ""} <a href="#TB_inline?height=800&width=500&inlineId=TBreview" class="thickbox"> <img src="{$ImagesDir}/read_review.gif" width="95" height="32" alt="read reviews about this product" /></a> {else} <a href="#TB_inline?height=800&width=500&inlineId=TBreview" class="thickbox"> <img src="{$ImagesDir}/write_review.gif" width="95" height="32" alt="be the first to review this product" /></a> {/if} {else} <a class="thickbox" href="#send_friend"> <img src="{$ImagesDir}/send_friend.gif" width="95" height="32" alt="e-mail this page to a friend" /></a> {if $reviews ne ""} <a class="thickbox" href="#review"> <img src="{$ImagesDir}/read_review.gif" width="95" height="32" alt="read reviews about this product" /></a> {else} <a class="thickbox" href="#review"> <img src="{$ImagesDir}/write_review.gif" width="95" height="32" alt="be the first to review this product" /></a> {/if} {/if}

and altered this part of product.tpl:

Code:
{if $config.Appearance.send_to_friend_enabled eq 'Y'} <p /> {if $js_enabled} <div id="TBsend_friend" style="display:none"> {else} <a name="send_friend"></a> {/if} {include file="customer/main/send_to_friend.tpl" } {if $js_enabled} </div> {/if} {/if}

and

Code:
{if $active_modules.Customer_Reviews ne ""} {if $js_enabled} <div id="TBreview" style="display:none"> {else} <a name="review"></a> {/if} <p /> {include file="modules/Customer_Reviews/vote_reviews.tpl" } {if $js_enabled} </div> {/if}

When all this is done, when I click on one of the images, all I get is the thickbox loading dot going around and around and around........but the forms don't load.

What am I missing here?

This is on a 4.1.7 site that I'm working on.

TIA
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote