Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Comment field in detailed.html

Quote Reply
Comment field in detailed.html
Hi Andy,
I wonder if it's possible to have the comment section not in a separat page but on detailed page.

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Comment field in detailed.html In reply to
You mean the review stuff? Sure you can - just put something like this in detailed.html:

Code:
<h2>Add a Review</h2>

<%if URL%><%include link.html%><%endif%>

<p>
Please completely fill out the form below, and we'll add your review as soon as possible.
</p>

<form action="<%config.db_cgi_url%>/review.cgi" method="post">
<%if ID%><input type="hidden" name="ID" value="<%escape_html ID%>" /><%endif%>
<input type="hidden" name="add_this_review" value="1" />
<div class="row required clear">
<label class="name">Your Rating: <span>*</span></label>
<div class="value">
<input type="radio" id="Review_Rating-1" name="Review_Rating" value="1"<%if Review_Rating == 1%> checked="checked"<%endif%> class="radio" /><label for="Review_Rating-1">1</label>
<input type="radio" id="Review_Rating-2" name="Review_Rating" value="2"<%if Review_Rating == 2%> checked="checked"<%endif%> class="radio" /><label for="Review_Rating-2">2</label>
<input type="radio" id="Review_Rating-3" name="Review_Rating" value="3"<%if Review_Rating == 3%> checked="checked"<%endif%> class="radio" /><label for="Review_Rating-3">3</label>
<input type="radio" id="Review_Rating-4" name="Review_Rating" value="4"<%if Review_Rating == 4%> checked="checked"<%endif%> class="radio" /><label for="Review_Rating-4">4</label>
<input type="radio" id="Review_Rating-5" name="Review_Rating" value="5"<%if Review_Rating == 5%> checked="checked"<%endif%> class="radio" /><label for="Review_Rating-5">5</label>
</div>
</div>
<div class="row required clear">
<label for="Review_Subject" class="name">Subject: <span>*</span></label>
<div class="value">
<input type="text" id="Review_Subject" name="Review_Subject" value="<%if Review_Subject%><%escape_html Review_Subject%><%endif%>" class="text" />
</div>
</div>
<div class="row clear">
<label for="Review_ByLine" class="name">By Line:</label>
<div class="value">
<input type="text" id="Review_ByLine" name="Review_ByLine" value="<%if Review_ByLine%><%escape_html Review_ByLine%><%endif%>" class="text" />
</div>
</div>
<div class="row required clear">
<label for="Review_Contents" class="name">Your Review: <span>*</span></label>
<div class="value">
<textarea id="Review_Contents" name="Review_Contents" rows="3" cols="42"><%if Review_Contents%><%escape_html Review_Contents%><%endif%></textarea>
</div>
</div>
<%~if not config.user_review_required and not user.Username%>
<div class="row required clear">
<label for="Review_GuestName" class="name">Your Name: <span>*</span></label>
<div class="value">
<input type="text" id="Review_GuestName" name="Review_GuestName" value="<%if Review_GuestName%><%escape_html Review_GuestName%><%endif%>" class="text" />
</div>
</div>
<div class="row required clear">
<label for="Review_GuestEmail" class="name">Your E-mail: <span>*</span></label>
<div class="value">
<input type="text" id="Review_GuestEmail" name="Review_GuestEmail" value="<%if Review_GuestEmail%><%escape_html Review_GuestEmail%><%endif%>" class="text" />
</div>
</div>
<%~endif%>
<div class="formsubmit">
<input type="submit" name="add_review" value="Add Review" class="submit" />
</div>
</form>

Should work fine =)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Matthias70] Comment field in detailed.html In reply to
Or are you looking for something more like this thread?

The Reviews system is good but I think it might be a little too complex for some people. I think that a simple comments box with a CAPTCHA field (and the ability for admin to verify) would be more widely used.