Ciao gente.. Allora, io uso un template che è stato creatomi con XXXXX.. Vorrei riuscire a visualizzare questo benedetto numero visite articoli ma non combino..
Il codice indicato nell'articolo l'ho inserito, facendo tutta una riga di prove, ma non riesco a farlo funzionare correttamente.. Sono arrivato a far visualizzare il numero visite ma dopo veniva fuori tutto il codice del file anzichè applicarlo.. Vi riporto la porzione di codice dove se non ho inteso male va inserita la parte nuova per la visualizzazione.. Avete suggerimenti su come farlo funzionare?
<?php
artxFragmentEnd(ob_get_clean());
}
artxFragmentBegin("<div class=\"art-postmetadataheader\">\r\n");
artxFragmentBegin("<div class=\"art-postheadericons art-metadata-icons\">\r\n");
if ($this->params->get('show_url') && $this->article->urls)
artxFragment('', '<a href="http://' . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>', '', ' | ');
if ($this->params->get('show_create_date')) {
artxFragment('', JHTML::_('image.site', 'postdateicon.png', null, null, null, JText::_("postdateicon"), array('width' => '17', 'height' => '18')) . JHTML::_('date', $this->article->created, JText::_('DATE_FORMAT_LC2')), '', ' | ');
}
if (($this->params->get('show_author')) && ($this->article->author != "")) {
artxFragment('', JHTML::_('image.site', 'postauthoricon.png', null, null, null, JText::_("postauthoricon"), array('width' => '14', 'height' => '14')) . JText::sprintf('Written by', ($this->article->created_by_alias ? $this->article->created_by_alias : $this->article->author)), '', ' | ');
}
if (!$this->print && $this->params->get('show_pdf_icon'))
artxFragment('', JHTML::_('icon.pdf', $this->article, $this->params, $this->access), '', ' | ');
if (!$this->print && $this->params->get('show_print_icon' ))
artxFragment('', JHTML::_('icon.print_popup', $this->article, $this->params, $this->access), '', ' | ');
if (!$this->print && $this->params->get('show_email_icon'))
artxFragment('', JHTML::_('icon.email', $this->article, $this->params, $this->access), '', ' | ');
if (!$this->print && $canEdit)
artxFragment('', JHTML::_('icon.edit', $this->article, $this->params, $this->access), '', ' | ');
if ($this->print)
artxFragment('', JHTML::_('icon.print_screen', $this->article, $this->params, $this->access, array('class' => 'art-metadata-icon')), '', ' | ');
artxFragmentEnd("\r\n</div>\r\n");
artxFragmentEnd("\r\n</div>\r\n");
echo "<div class=\"art-postcontent\">\r\n <!-- article-content -->\r\n";
if (!$this->params->get('show_intro'))
echo $this->article->event->afterDisplayTitle;
echo $this->article->event->beforeDisplayContent;
if (($this->params->get('show_section') && $this->article->sectionid) || ($this->params->get('show_category') && $this->article->catid)) {
?>