12 years 8 months ago #125324
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- How to move Rate this item stars to top?
How to move Rate this item stars to top?
12 years 8 months ago #125325
in the com_k2/templates/.../item.php
you have the Item Rating block that you can move anywhere. That is when you override k2 template with your own.
you have the Item Rating block that you can move anywhere. That is when you override k2 template with your own.
Topic Author
12 years 8 months ago #125326
You mean all this code has to meve?
But where?
I did it already, but it's going behind the title(inback goound)!
But where?
I did it already, but it's going behind the title(inback goound)!
12 years 8 months ago #125327
Well you can check you css to see if there is some position that could help, or add a
<div class="clr"></div> before and after the code.
<div class="clr"></div> before and after the code.
Topic Author
12 years 8 months ago #125328
Can any one do it for me please,
This is my item.php code:
This is my item.php code:
12 years 8 months ago #125329
@sarah
The code that generates the rating system is the following:
You can move it wherever you want inside item.php.
The code that generates the rating system is the following:
<?php if($this->item->params->get('itemRating')): ?>
<!-- Item Rating -->
<div class="itemRatingBlock">
<span><?php echo JText::_('K2_RATE_THIS_ITEM'); ?></span>
<div class="itemRatingForm">
<ul class="itemRatingList">
<li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo $this->item->votingPercentage; ?>%;"></li>
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_1_STAR_OUT_OF_5'); ?>" class="one-star">1</a></li>
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_2_STARS_OUT_OF_5'); ?>" class="two-stars">2</a></li>
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_3_STARS_OUT_OF_5'); ?>" class="three-stars">3</a></li>
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_4_STARS_OUT_OF_5'); ?>" class="four-stars">4</a></li>
<li><a href="#" data-id="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_5_STARS_OUT_OF_5'); ?>" class="five-stars">5</a></li>
</ul>
<div id="itemRatingLog<?php echo $this->item->id; ?>" class="itemRatingLog"><?php echo $this->item->numOfvotes; ?></div>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
<?php endif; ?>You can move it wherever you want inside item.php.
Log in or create an account to reply.

