From a7f4b1d04ee1f37ad334e7f86eaf209ffaa43e97 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 1 Oct 2017 09:57:18 -0700 Subject: [PATCH] uniqueId option added to rate class. --- e107_handlers/rate_class.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/e107_handlers/rate_class.php b/e107_handlers/rate_class.php index 58a919578..244372c62 100644 --- a/e107_handlers/rate_class.php +++ b/e107_handlers/rate_class.php @@ -69,10 +69,17 @@ class rater { } $template = vartrue($options['template'], " STATUS |RATE|VOTES"); + + $identifier = $table.'-'.$id; + + if(!empty($options['uniqueId'])) + { + $identifier .= '-'.$options['uniqueId']; + } - $TEMPLATE['STATUS'] = " "; - $TEMPLATE['RATE'] = "
"; - $TEMPLATE['VOTES'] = "
".$this->renderVotes($votes,$score)."
"; + $TEMPLATE['STATUS'] = " "; + $TEMPLATE['RATE'] = "
"; + $TEMPLATE['VOTES'] = "
".$this->renderVotes($votes,$score)."
"; $tmp = explode("|",$template);