Gossamer Forum
Home : Products : Links 2.0 : Customization :

adapting external rate it with review.cgi - how?

Quote Reply
adapting external rate it with review.cgi - how?
Dear CGI Gurus,

Any idea how to integrating external rate it with review.cgi? Thanks for the help.


Regards
Quote Reply
Re: adapting external rate it with review.cgi - how? In reply to
You don't need external rate it. Just call review.cgi from a form, eg...

<FORM ACTION="http://www.yourdomain.com/path/to/review.cgi" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="LinkID" VALUE="LINKID#">
Email:<INPUT TYPE="text" Name="Contact Email" SIZE="13">
Rating: <SELECT NAME="Rating" SIZE="1"><OPTION>--- </OPTION><OPTION>1 </OPTION><OPTION>2 </OPTION><OPTION>3 </OPTION><OPTION>4 </OPTION><OPTION>5 </OPTION><OPTION>6 </OPTION><OPTION>7 </OPTION><OPTION>8 </OPTION><OPTION>9 </OPTION><OPTION>10 </OPTION></SELECT> <INPUT TYPE=submit VALUE="Rate It!">
</FORM>
Quote Reply
Re: adapting external rate it with review.cgi - how? In reply to
Hi oldmoney, thanks for the solution. I will try it.


regards
Quote Reply
Re: adapting external rate it with review.cgi - how? In reply to
Hi oldmoney,


The solution you provide works fine. But how to automatically redirect back to the previous http referer after the user rate or review a resource (after the confirmation dialog box)?


Regards,
Kay
Quote Reply
Re: adapting external rate it with review.cgi - how? In reply to
I use a JavaScript back link on the rate success page. Try <A HREF="JavaScript:history.go(-1);">Return to previous page.</A>
Quote Reply
Re: adapting external rate it with review.cgi - how? In reply to
Hi Kay:

To make it an automatic return to the page where the rate form is located, you can use the meta 'refresh' tag below. The number 7 being '7 seconds' before refresh. Just adjust that to your preferance...

<meta http-equiv="Refresh" content="7; URL=<%URL%>">

Good Luck With Your Site
Brad
Quote Reply
Re: adapting external rate it with review.cgi - how? In reply to
Brad has a good solution, except that the remote form may not be called from the URL in your database. Not necessarily a problem, but something to consider...
Quote Reply
Re: adapting external rate it with review.cgi - how? In reply to
Your Right oldmoney:::

My apologies Kay, I forgot that you weren't using the remote rate mod. That is the code I use on my 'remote_rate_success' page that is called from the forms that people have placed on their sites.

This mod was well written and easy to put to use www.speculativevision.com/rateit/rateitmod.shtml

Thanks again oldmoney
Brad
Quote Reply
Re: adapting external rate it with review.cgi - how? In reply to
Thanks for the all reply guys. You're the star. I'll give it a try.


Best regards