CJcomments no resultado de enquete

  • riccelly
  • Avatar de riccelly Autor do Tópico
  • Offline
  • JCB! Geek
  • JCB! Geek
Mais
13 anos 8 meses atrás #37497 por riccelly
riccelly created the topic: CJcomments no resultado de enquete
olá... esse codigo tava ok..


mas depois q criei outra enquete parou, nao aparece mais os comentarios...


segue o link: http://www.campinaonline.com.br

segue o código do default.php (arquivo do comp poll) que fica na pasta tmpl

<?php // no direct access
defined('_JEXEC') or die('Restricted access');
?>

<?php JHTML::_('stylesheet', 'poll_bars.css', 'components/com_poll/assets/'); ?>

<form action="index.php" method="post" name="poll" id="poll">
<?php if ($this->params->get( 'show_page_title', 1)) : ?>
<div class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<?php echo $this->escape($this->params->get('page_title')); ?>
</div>
<?php endif; ?>
<div class="contentpane<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<label for="id">
<?php echo JText::_('Select Poll'); ?>
<?php echo $this->lists; ?>
</label>
</div>
<div class="contentpane<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<?php echo $this->loadTemplate('graph'); ?>
</div>
</form>
<?php
global $mosConfig_absolute_path;
$comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo JComments::showComments($poll->id, 'com_poll', $poll->title);
}
?>

Sites Dinâmicos
[url:300s9oc2]http://www.lifeagenciaweb.com[/url:300s9oc2]

[b:300s9oc2]"Aprenda, mas compartilhe!
Vamos crescer juntos!"[/b:300s9oc2]

Please Entrar ou Registrar to join the conversation.