hi
how to remove parenthesis from votes number?
is not possible form templates files or language files?
how to remove parenthesis from votes number?
is not possible form templates files or language files?
//Including item model file
require_once(JPATH_COMPONENT.DS.'models'.DS.'item.hp');
$model = new K2ModelItem();
//Getting item num of votes (only the value)
$vote = $model->getRating($this->item->id);
//Setting the new value with text
if (!is_null($vote))
$rating_count = intval($vote->rating_count);
else
$rating_count = 0;
$this->item->numOfvotes = $rating_count." ".( $rating_count > 1 ? JText::_('K2_VOTES') : JText::_('K2_VOTE') );Log in or create an account to reply.