توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : مشکل با کامپوننت نظرات
maybod-adineh
08-26-2010, 10:25 AM
سلام دوستان
من از کامپوننت com_jcomments_v2.2.0.0 استفاده میکنم ؛ مشکلم اینجاست که فرم نظرات نشون داده نمی شود و در قسمت تنظیمات این پیغام داده می شود : Your current site template doesn't have afterDisplayContent event !
ممنون میشم راهنمایی بفرمایید
یا علی
سلام
همونطور که در متن خطا ذکر شده، قالب فاقد یکی از متغیرهای اصلی کامپوننت محتواست.
کدی که کامپوننت برای اجرا نیازمند آن است:
<?php echo $this->article->event->afterDisplayContent; ?>
احتمالا قالب شما برای نمایش دلخواه محتوا، کامپوننت com_content را هک کرده است و این کد را در آن نگنجانده.
در قسمتهای مختلف com_content در قالب (که باید در پوشه ای شبیه به html/com_content در پوشه ی قالب باشند) باید این کد رو بعد از نمایش article قرار بدید.
یا علی
maybod-adineh
08-26-2010, 04:51 PM
سلام
با تشکر فایل را کامل اینجا قرار میدهم جهت بازبینی ؛ لطفا راهنمایی کنید:
<?php // no direct access
defined('_JEXEC') or die('Restricted access');
$canEdit = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));
?>
<?php if ($this->params->get('show_page_title', 1) && $this->params->get('page_title') != $this->article->title) : ?>
<div class="Post">
<div class="Post-tl"></div>
<div class="Post-tr"><div></div></div>
<div class="Post-bl"><div></div></div>
<div class="Post-br"><div></div></div>
<div class="Post-tc"><div></div></div>
<div class="Post-bc"><div></div></div>
<div class="Post-cl"><div></div></div>
<div class="Post-cr"><div></div></div>
<div class="Post-cc"></div>
<div class="Post-body">
<div class="Post-inner">
<h2 class="PostHeaderIcon-wrapper"> <span class="PostHeader">
<?php echo $this->escape($this->params->get('page_title')); ?>
</span>
</h2>
</div>
</div>
</div>
<?php endif; ?>
<?php $metadata = array(); ?>
<div class="Post">
<div class="Post-tl"></div>
<div class="Post-tr"><div></div></div>
<div class="Post-bl"><div></div></div>
<div class="Post-br"><div></div></div>
<div class="Post-tc"><div></div></div>
<div class="Post-bc"><div></div></div>
<div class="Post-cl"><div></div></div>
<div class="Post-cr"><div></div></div>
<div class="Post-cc"></div>
<div class="Post-body">
<div class="Post-inner">
<div class="PostMetadataHeader">
<?php if ($this->params->get('show_title')) : ?>
<h2 class="PostHeaderIcon-wrapper"> <?php if ($this->params->get('show_title')) : ?>
<?php if ($this->params->get('link_titles') && $this->article->readmore_link != '') : ?>
<a href="<?php echo $this->article->readmore_link; ?>" class="PostHeader">
<?php echo $this->escape($this->article->title); ?></a>
<?php else : ?>
<?php echo $this->escape($this->article->title); ?>
<?php endif; ?>
<?php endif; ?>
</h2>
<?php endif; ?>
</div>
<div class="PostHeaderIcons metadata-icons">
<?php if ($this->params->get('show_create_date')) : ?>
<?php ob_start(); ?><?php echo JHTML::_('image.site', 'PostDateIcon.png', null, null, null, JText::_("PostDateIcon"), array('width' => '18', 'height' => '18')); ?> <?php echo JHTML::_('date', $this->article->created, JText::_('DATE_FORMAT_LC2')); ?>
<?php $metadata[] = ob_get_clean(); ?>
<?php endif; ?><?php if (($this->params->get('show_author')) && ($this->article->author != "")) : ?>
<?php ob_start(); ?><?php echo JHTML::_('image.site', 'PostAuthorIcon.png', null, null, null, JText::_("PostAuthorIcon"), array('width' => '14', 'height' => '14')); ?> <?php JText::printf('Author: %s', ($this->article->created_by_alias ? $this->article->created_by_alias : $this->article->author) ); ?>
<?php $metadata[] = ob_get_clean(); ?>
<?php endif; ?><?php
if ($this->params->get('show_url') && $this->article->urls)
$metadata[] = '<a href="<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>; . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>';
if (!$this->print) {
$joomlaIcons = array();
if ($this->params->get('show_pdf_icon'))
$joomlaIcons[] = JHTML::_('icon.pdf', $this->article, $this->params, $this->access);
if ( $this->params->get( 'show_print_icon' ))
$joomlaIcons[] = JHTML::_('icon.print_popup', $this->article, $this->params, $this->access);
if ($this->params->get('show_email_icon'))
$joomlaIcons[] = JHTML::_('icon.email', $this->article, $this->params, $this->access);
if ($joomlaIcons != '')
$metadata[] = '<span class="metadata-icons">' . implode('&nbsp;', $joomlaIcons) . '</span>';
if ($canEdit)
$metadata[] = JHTML::_('icon.edit', $this->article, $this->params, $this->access);
} else {
$metadata[] = JHTML::_('icon.print_screen', $this->article, $this->params, $this->access, array('class' => 'metadata-icon'));
}
echo implode(' | ', $metadata);
?>
</div>
<div class="PostContent">
<?php if (!$this->params->get('show_intro')) :
echo $this->article->event->afterDisplayTitle;
endif; ?>
<?php echo $this->article->event->beforeDisplayContent; ?>
<?php if (($this->params->get('show_section') && $this->article->sectionid) || ($this->params->get('show_category') && $this->article->catid)) : ?>
<table class="contentpaneopen<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<tr>
<td>
<?php if ($this->params->get('show_section') && $this->article->sectionid && isset($this->article->section)) : ?>
<span>
<?php if ($this->params->get('link_section')) : ?>
<?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRo ute($this->article->sectionid)).'">'; ?>
<?php endif; ?>
<?php echo $this->article->section; ?>
<?php if ($this->params->get('link_section')) : ?>
<?php echo '</a>'; ?>
<?php endif; ?>
<?php if ($this->params->get('show_category')) : ?>
<?php echo ' - '; ?>
<?php endif; ?>
</span>
<?php endif; ?>
<?php if ($this->params->get('show_category') && $this->article->catid) : ?>
<span>
<?php if ($this->params->get('link_category')) : ?>
<?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryR oute($this->article->catslug, $this->article->sectionid)).'">'; ?>
<?php endif; ?>
<?php echo $this->article->category; ?>
<?php if ($this->params->get('link_category')) : ?>
<?php echo '</a>'; ?>
<?php endif; ?>
</span>
<?php endif; ?>
</td>
</tr>
</table>
<?php endif; ?>
<?php if (isset ($this->article->toc)) : ?>
<?php echo $this->article->toc; ?>
<?php endif; ?>
<div class="article">
<?php echo $this->article->text; ?>
</div> &#1607;&#1585; &#1711;&#1608;&#1606;&#1607; &#1575;&#1587;&#1578;&#1601;&#1575;&#1583;&#160 7; &#1575;&#1586; &#1575;&#1740;&#1606; &#1605;&#1591;&#1604;&#1576; &#1576;&#1575; &#1584;&#1705;&#1585; &#1606;&#1575;&#1605; &#1587;&#1575;&#1740;&#1578; (&#1605;&#1740;&#1576;&#1583; &#1570;&#1583;&#1740;&#1606;&#1607; ) &#1576;&#1604;&#1575;&#1605;&#1575;&#1606;&#159 3; &#1575;&#1587;&#1578;.
<?php if ( intval($this->article->modified) !=0 && $this->params->get('show_modify_date')) : ?>
<p class="modifydate">
<?php echo JText::_( 'Last Updated' ); ?> ( <?php echo JHTML::_('date', $this->article->modified, JText::_('DATE_FORMAT_LC2')); ?> )
</p>
<?php endif; ?>
</div>
<div class="cleared"></div>
</div>
</div>
</div>
سلام
این چه فایلی از قالب است؟
یا علی
maybod-adineh
08-27-2010, 06:57 PM
سلام
دقیقا همون فایلی است که شما در بالا فرمودید
سلام
من یک فولدر رو آدرس دادم و در اون فولدر ممکنه فایلها و فولدرهای مختلفی باشه.
لطفا آدرس و نام دقیق فایل رو بنویسید.
یا علی
maybod-adineh
08-28-2010, 12:24 PM
templates/drnavab_dental/html/com_content/section/default.php
vBulletin® v4.2.5, Copyright ©2000-2026, Jelsoft Enterprises Ltd.