Another question. Sorry!
I see this code in productforums.php:
Quote:
$history = $db->query_first_slave("SELECT reviewid FROM " . TABLE_PREFIX . "pf_review WHERE productid = '". $db->escape_string($vbulletin->GPC['productid']) ."' AND userid = ". $vbulletin->userinfo['userid']);
|
Now, can I copy that over to the product listing part of the file? And, if so, is there then a way I can use that $history thing (variable?) in the template to determine whether or not to display a link to review a product or a note that the user already has reviewed it?