Gossamer Forum
Home : Products : Gossamer Links : Discussions :

review graph/chart on detailed paged

(Page 2 of 2)
> >
Quote Reply
Re: [craven32] review graph/chart on detailed paged In reply to
Well getting the spanning working on the detail page is very complicated - and its also difficult to get the helpfulness working. You can either rewrite your reviews template so that it looks exactly like your detail page (this is definitely the easiest way to do it) and link to your review page instead of the detail page or put a couple of reviews on the detail page and then a 'more reviews' link which takes you to the reviews page.
Quote Reply
Re: [afinlr] review graph/chart on detailed paged In reply to
I guess that makes since! I'm all for the easy way out:)

Thanks,

craven
Quote Reply
Re: [afinlr] review graph/chart on detailed paged In reply to
I finally got around to adding the reviews to the detail pages but I can't figure out how to limit this to 2.

This is what I'm using and it displays the reviews but how do you limit it?

<%if Review_Count%>
<tr><td width="100%" valign="top"><b>Reviews</b></td>
</tr>
<tr>
<td width="100%" valign="top"><hr></td>
</tr>
<tr>
<td width="100%" valign="top">&nbsp;<%Links::Utils::load_reviews%>
<br><%loop Review_Loop%> <b><%Review_Subject%></b> - <img src="<%build_images_url%>/default/stars-<%Review_Rating%>.gif"> <%Review_Date%><%if Review_IsNew%>
<font color="red"><small><sup>NEW</sup></small></font>
<%endif%>
<br>Reviewed By <a href="<%db_cgi_url%>/review.cgi?user=<%Review_Owner%>&d=1"><%Review_Owner%></a>
<br>Review Of: <a href="<%db_cgi_url%>/jump.cgi?ID=<%LinkID%>"><%Title%></a> in <%title_linked%>
<br><br> <i><%Review_Contents%></i> <%endloop%>

Craven
Quote Reply
Re: [craven32] review graph/chart on detailed paged In reply to
In a loop I think there is a tag <%row_num%> (something like that anyway - you may need to look this up) which gives the number of the record in the loop. So you could use something like <%unless row_num > 2%>. Alternatively you could use a global to pull two reviews from the database.
Quote Reply
Re: [afinlr] review graph/chart on detailed paged In reply to
Hi.

Added the global and works fine on detailed.html
However, following does not work:

included in link.htm and it shows up fine.
However, when a user clicks on Review (to add a review) then where the
<%review_graph%> is called the following comes up:

CODE(0xa60c618)

Similar thing happens when someone clicks the Reviews for seeing the Reviews Submitted.

Could this be corected so that the <%review_graph%> correctly displays the graphs even for the above two cases.

TIA
Anup
> >