Someone is browsing through your site and sees a link they perhaps no or have seen before and click on the rate link. They then rate it and go to the thank you page. Now they are in a dead situation really and i think lots might just close their browser. What should happen? they should be redirected back to the page they were on before they got to rate.cgi
So the "thank you" page should come up with a ... thank you for rating sitename... you will be re-directed to the category listing in 30 seconds ...
how could this be done?
I imagine that on the thank you page we could get access to the category id and then re-direct based on that but we would not know which cat if the link was in more than 1.
A better way (and this is what vbulletin does when you register) is have something like:
www.domain.com/dir/rate.cgi?ID=45&return-url=http://www.domain.com/pages/Top/Blah
sort of thing but of course / are replaced by the code whatever it is meant to be.
This returnurl is then parsed through as a hidden variable from rate.cgi to thanks.html and then if returnurl != "" you are re-directed to it.
Make sense? any idea how? Would be very useful for a number of mods i would think from suggest to friend, rate, deadlink etc...
http://www.ASciFi.com/ - The Science Fiction Portal
So the "thank you" page should come up with a ... thank you for rating sitename... you will be re-directed to the category listing in 30 seconds ...
how could this be done?
I imagine that on the thank you page we could get access to the category id and then re-direct based on that but we would not know which cat if the link was in more than 1.
A better way (and this is what vbulletin does when you register) is have something like:
www.domain.com/dir/rate.cgi?ID=45&return-url=http://www.domain.com/pages/Top/Blah
sort of thing but of course / are replaced by the code whatever it is meant to be.
This returnurl is then parsed through as a hidden variable from rate.cgi to thanks.html and then if returnurl != "" you are re-directed to it.
Make sense? any idea how? Would be very useful for a number of mods i would think from suggest to friend, rate, deadlink etc...
http://www.ASciFi.com/ - The Science Fiction Portal