Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Check if user has written a review

Quote Reply
Check if user has written a review
Heya all,

How can I check whether a user has already written a review for a link. In dynamic mode, when a user is viewing the category/detailed page I'd like to be able to say:

"You've already reviewed this link"

I now they will get this when they click to submit a review again. I'd like to flag all links a use has reviewed in the link listing or on the detailed page.

Safe swoops
Sangiro

Last edited by:

sangiro: Jun 5, 2006, 8:32 AM
Quote Reply
Re: [sangiro] Check if user has written a review In reply to
A simple global that just does a count on the reviews table using the link ID and the username would handle that.

Adrian