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.
Nov 21, 2003, 9:49 AM
User (167 posts)
Nov 21, 2003, 9:49 AM
Post #28 of 30
Views: 1819
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"> <%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
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"> <%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
Nov 22, 2003, 3:31 PM
Veteran (1921 posts)
Nov 22, 2003, 3:31 PM
Post #29 of 30
Views: 1761
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.
Jun 29, 2004, 2:03 PM
Veteran (1290 posts)
Jun 29, 2004, 2:03 PM
Post #30 of 30
Views: 1692
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
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