19 | 01 | 2021
Main menu
Login/Logout
 
Contacts
Реклама
Our button

Блог Ecolora

Код:

<a href="http://www.ecolora.com" target="_blank" rel="nothing" title="Ecolora.com"><img alt="Ecolora.com" height="31" src="http://www.ecolora.com/images/ecoloracom.gif" width="88" /></a>
Who's online

We have 43 guests and no members online

Лента новостей

Newsletter

More options
Previous news

Subscribers: 17 856

Welcome, Guest
Username: Password: Remember me
Module for extravote plugin

TOPIC: When I set show article voting to off extravote is disabled

When I set show article voting to off extravote is disabled 7 years 8 months ago #6726

  • filip
  • filip's Avatar
  • Offline
  • Новый участник
  • Posts: 7
  • Karma: 0
I did all you told me.
I cut all 3 and now I only have a name of article without link.







Is there a way to remove name to?
The administrator has disabled public write access.

When I set show article voting to off extravote is disabled 7 years 8 months ago #6727

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 465
  • Thank you received: 40
  • Karma: 19
Just checked it on my site. I'm right. Check it again, please. May be You cuted wrong code? :)
The administrator has disabled public write access.

When I set show article voting to off extravote is disabled 7 years 8 months ago #6728

  • filip
  • filip's Avatar
  • Offline
  • Новый участник
  • Posts: 7
  • Karma: 0
Mybe you didnt understand me,after removing code you told me - and I removed all 3 - article tittle doesnt have a link in it,its just regular text,like in this photo:





Now Im aksing you is there a way to remove name of article to,so only stars are showed in module,like in this photo:


The administrator has disabled public write access.

When I set show article voting to off extravote is disabled 7 years 8 months ago #6729

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 465
  • Thank you received: 40
  • Karma: 19
I understand clearly. I did the same operations on my site as i advised You and link was disappear with the text.
The administrator has disabled public write access.

When I set show article voting to off extravote is disabled 7 years 8 months ago #6730

  • filip
  • filip's Avatar
  • Offline
  • Новый участник
  • Posts: 7
  • Karma: 0
Then I did something wrong.
Here is snapshot of module settings:



And plug in settings:



And here is modules/mod_top_extravote/tmpl/default.php code.
<?php
/*------------------------------------------------------------------------
# mod_top_extravote
# ------------------------------------------------------------------------
# author    ecolora
# copyright Copyright (C) 2012 ecolora.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.ecolora.com
# Technical Support:  Forum - http://www.ecolora.com/index.php/component/kunena/top-extravote
-------------------------------------------------------------------------*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$show_hits = $params->get('show_hits',2);
$hitstring = $params->get('hitstring','');
$show_stars = $params->get('show_stars',1);
$count = count($list); //больше чем всего есть материалов выводить не имеет смысла
$cols = intval($params->get('cols', 1));
if ($cols < 1) $cols = 1;
$il = 0;
$ic = 0; //внутри столбца

$document->addStyleSheet(JURI::root(true).'/plugins/content/extravote/assets/extravote.css');
$document->addStyleSheet(JURI::root(true).'/modules/mod_top_extravote/css/top_extravote.css');

$itemcount = floor($count/$cols); //количество итемов в одном столбце
if (($itemcount == 0) || ($itemcount*$cols < $count)) $itemcount++; //если недобрали, то +1
$colwidth=floor(100/$cols); //ширина столбца
?>
<div class="top_extravote">
<div class="top_extravote_col" style="width: <?php echo $colwidth; ?>%;">
<?php foreach ($list as $item) : ?>
 		<?php
        	$il++;
        	$ic++;
            if ($ic > $itemcount) { //закрываем столбец
            	$ic = 1;
            	echo '</div><div class="top_extravote_col" style="width: '.$colwidth.'%;">';
            }
            echo '<div class="top_extravote_item">';
			if (trim($hitstring) == '') { //не задали
                   $hstring = "(&nbsp;".$item->hits.'&nbsp;';
                   if($item->hits!=1)
                    $hstring .= JTEXT::_('MOD_TOP_EXTRAVOTE_VOTES');
                     else $hstring .= JTEXT::_('MOD_TOP_EXTRAVOTE_VOTE');
                    $hstring .="&nbsp;)";
            }
            else $hstring = '('.$item->hits.' '.$hitstring.')';
			switch ($show_hits){
				case '1':{
						?>
						<div class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
                        <?php echo $hstring.' ';  ?>
						 
						<?php echo $item->text;
						?></a>
						</div>
						<?php
						break;
						}
				case '2':{
						?>
						<div class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
						 
						<?php echo $item->text;
						?></a>
						<?php echo ' '.$hstring;  ?>
						</div>
						<?php
						break;
						}
				default:{
						?>
						<div class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
						 
						<?php echo $item->text;
						?></a></div><?php
						}
				}
			if ($show_stars) {
			   if($item->hits!=0) {
			      $percent = number_format((intval($item->sum) / intval( $item->hits ))*20,2);
			      $rating  = number_format(($item->sum / intval( $item->hits )),2);
		       }
               if (modTopExtravoteHelper::ext_isJoomla('1.6', '>=')) {
               	$spans = '';
                for ($i=0,$j=5/10; $i<10; $i++,$j+=5/10) {
		      	  $spans .= "<span class=\"extravote-star\"><a href=\"".((($il==count($list)) && ($j == 5/10))?base64_decode('aHR0cDovL3d3dy5lY29sb3JhLm1lIiByZWw9Im5vdGhpbmc='):$item->link)."\" title=\"".JTEXT::_('MOD_TOP_EXTRAVOTE_RATING')." ".$rating."\" class=\"ev-".($j*10)."-stars\">".((($il==count($list)) && ($j == 5/10))?"e":"1")."</a></span>";
                }

  	 	        echo "<div class=\"extravote\">
                <span class=\"extravote-stars\">
                <span id=\"rating_".$item->id."_0\" class=\"current-rating\" style=\"width:".(int)($rating*20)."%;\"></span>"
             	.$spans."
                </span>
                <span class=\"extravote-info\" id=\"extravote_".$item->id."_0\">
                </div>";
               } else {
               	echo "<div class=\"extravote-container-small\" style=\"margin-top:5px;\">
                 <ul class=\"extravote-stars-small\">
                 <li id=\"rating_".$item->id."_x\" class=\"current-rating\" style=\"width:".(int)$percent."%;\"></li>
                 <li><a href=\"".(($il==count($list))?base64_decode('aHR0cDovL3d3dy5lY29sb3JhLm1lIiByZWw9Im5vdGhpbmc='):$item->link)."\" title=\"".$rating."\" class=\"ev-one-star\">".(($il==count($list))?"e":"1")."</a></li>
                 <li><a href=\"".$item->link."\" title=\"".$rating."\" class=\"ev-two-stars\">2</a></li>
                 <li><a href=\"".$item->link."\" title=\"".$rating."\" class=\"ev-three-stars\">3</a></li>
                 <li><a href=\"".$item->link."\" title=\"".$rating."\" class=\"ev-four-stars\">4</a></li>
                 <li><a href=\"".$item->link."\" title=\"".$rating."\" class=\"ev-five-stars\">5</a></li>
                 </ul>
                 </div>";
               }
			}
			echo '</div>';
	?>
<?php endforeach; ?>
</div>
</div>

Can you please take a look at settings and code,mybe there is something different then at your website.
The administrator has disabled public write access.

When I set show article voting to off extravote is disabled 7 years 8 months ago #6731

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 465
  • Thank you received: 40
  • Karma: 19
Yes, You're. :)

You forgot to cut something too:
<?php echo $item->text;
?></a>

;)
The administrator has disabled public write access.
Time to create page: 0.191 seconds
for children older than 12 years