Gossamer Forum
Home : Products : Gossamer Links : Discussions :

<%Num%> tag in 'detailed.html'

Quote Reply
<%Num%> tag in 'detailed.html'
Hi,

I want to keep all the reviews on 'detailed.html' page. So i took code from 'reviews_search_results.html' and pasted in 'detailed.html'.

Now i am getting error:

'0 of Unknown Tag: 'Num' people found the following review helpful:'

So how to fix it?

Thanks.
Quote Reply
Re: [hegu] <%Num%> tag in 'detailed.html' In reply to
Anybody?Frown

Thanks.
Quote Reply
Re: [hegu] <%Num%> tag in 'detailed.html' In reply to
You seem to have asked this question before:

http://www.gossamer-threads.com/...i?post=240000#240000

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] <%Num%> tag in 'detailed.html' In reply to
That is about '<%Review_Count%> tag. That tag just displays number of reviews, byline and subject of the review.

But i want detailed reviews displayed on 'detailed.html'. So i used part of code from reviews_search_results.html'. This:

---------------------------------------

<form action="<%db_cgi_url%>/review.cgi" method="POST">

<%loop Review_Loop%>

<%body_font%><%Review_WasHelpful%> of <%Num%> people found the following review helpful:</font>
<br>
<p>
<%body_font%>Subject: </font><b><%body_font%><%Review_Subject%></b></font><br>
<%body_font%>Reviewer:</font> <b><a href='<%db_cgi_url%>/review.cgi?user=<%Review_Owner%>'><%body_font%><%Review_Owner%></font></a></b>&nbsp;
<%if Review_ByLine%>
<font color=blue><%body_font%><%Review_ByLine%></font></font>
<%else%>
<%if Name%><%body_font%><%Name%></font><%endif%>
<%endif%>

<br><%body_font%>Date: <%Review_Date%></font><br>

<%body_font%>Rating:</font> <img src="<%build_images_url%>/mint/stars-<%Review_Rating%>.gif"><br>

<%body_font%><%Review_Contents%></font><br>

<input type="hidden" name="helpful" value=1>

<%if ID%><input type="hidden" name="ID" value=<%ID%>><%endif%>

<%if ReviewID%><input type="hidden" name="ReviewID" value=<%ReviewID%>><%endif%><br>

<%if last_helpful%><%body_font%>*** Thanks, your vote will be counted. ***</font>
<%else%>
<%body_font%>Was this review helpful to you?</font>&nbsp;&nbsp;
<input type="submit" name="yes" value="yes" class="button">&nbsp;
<input type="submit" name="no" value="no" class="button">

<%endif%>
<%if ID%>
&nbsp;<a href="<%db_cgi_url%>/review.cgi?ID=<%ID%>;add_review=1"><%body_font%>Add your own review</font></a>&nbsp;<img src="<%build_images_url%>/mint/dot.gif" alt="">&nbsp;<%body_font%><a href="<%db_cgi_url%>/rate.cgi?ID=<%ID%>">Rate It</a></font><br><br><HR WIDTH="80%" SIZE="3" ALIGN="Center" NOSHADE COLOR="#d3d3d3"><br>

<%endif%>


<%endloop%>

</form>

------------------------------------------

Now i am getting the error:

0 of Unknown Tag: 'Num' people found the following review helpful:

So how to fix it/

Thanks.
Quote Reply
Re: [hegu] <%Num%> tag in 'detailed.html' In reply to
You need a global to do this - you could just miss them out on the detailed page. If you really want them, it may be easier to use the reviews page as your detail page?
Quote Reply
Re: [afinlr] <%Num%> tag in 'detailed.html' In reply to
Hi Laura,

I am not a programmer to deal with it. Could you please tell me what to put in the global and how to link it on the detailed.html page?

Thanks for your help.
Quote Reply
Re: [hegu] <%Num%> tag in 'detailed.html' In reply to
Hi,

If you want to have all the information that is on the reviews page - can I just ask why you don't want to link to this as your detail page? This would be much easier than writing a global.

To get the helpfulness bit to work on the detail page you must be using a dynamic detail page. You'll need to use this as the target for your form or you'll be taken to the reviews page as soon as you give your helpfulness rating anyway.

If you really do want to keep your reviews page separate, maybe you could just create a new file called detail.cgi which has the same information in as review.cgi, i.e. calling on Review.pm - this will obviate the need for a global.

If you really want the global, you'll need to look into Review.pm to see what you need - I'm not going to write this for you as I've not been convinced that it is necessary yet.Wink

Laura.
The UK High Street
Quote Reply
Re: [afinlr] <%Num%> tag in 'detailed.html' In reply to
I tried to change the review_search_results.html to renamed it to detailed.html and put other code that i want to display in detailed.html. It is not working either.

Please anybody can tell how to fix the error 'Unknown Tag: 'Num'' on detailed.html?

Thanks.
Quote Reply
Re: [hegu] <%Num%> tag in 'detailed.html' In reply to
Hi,

I *think* I'm in the process of writing what you are asking for.

Let me explain my scenario, and then see if it is. I'll be posting to a new thread, since this title has nothing to do with reviews on detail pages, etc. :)

Look for it in the plugins area.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.