PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : مشکل با کامپوننت نظرات



maybod-adineh
08-26-2010, 10:25 AM
سلام دوستان
من از کامپوننت com_jcomments_v2.2.0.0 استفاده میکنم ؛ مشکلم اینجاست که فرم نظرات نشون داده نمی شود و در قسمت تنظیمات این پیغام داده می شود : Your current site template doesn't have afterDisplayContent event !
ممنون میشم راهنمایی بفرمایید
یا علی

reka
08-26-2010, 02:21 PM
سلام

همونطور که در متن خطا ذکر شده، قالب فاقد یکی از متغیرهای اصلی کامپوننت محتواست.

کدی که کامپوننت برای اجرا نیازمند آن است:

<?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&#91;] = &#039;&lt;a href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>; . $this-&gt;item-&gt;urls . &#039;&quot; target=&quot;_blank&quot;&gt;&#039; . $this-&gt;item-&gt;urls . &#039;&lt;/a&gt;&#039;;
if (!$this-&gt;print) {
$joomlaIcons = array();
if ($this-&gt;params-&gt;get(&#039;show_pdf_icon&#039;))
$joomlaIcons&#91;] = JHTML::_(&#039;icon.pdf&#039;, $this-&gt;article, $this-&gt;params, $this-&gt;access);
if ( $this-&gt;params-&gt;get( &#039;show_print_icon&#039; ))
$joomlaIcons&#91;] = JHTML::_(&#039;icon.print_popup&#039;, $this-&gt;article, $this-&gt;params, $this-&gt;access);
if ($this-&gt;params-&gt;get(&#039;show_email_icon&#039;))
$joomlaIcons&#91;] = JHTML::_(&#039;icon.email&#039;, $this-&gt;article, $this-&gt;params, $this-&gt;access);
if ($joomlaIcons != &#039;&#039;)
$metadata&#91;] = &#039;&lt;span class=&quot;metadata-icons&quot;&gt;&#039; . implode(&#039;&amp;nbsp;&#039;, $joomlaIcons) . &#039;&lt;/span&gt;&#039;;
if ($canEdit)
$metadata&#91;] = JHTML::_(&#039;icon.edit&#039;, $this-&gt;article, $this-&gt;params, $this-&gt;access);
} else {
$metadata&#91;] = JHTML::_(&#039;icon.print_screen&#039;, $this-&gt;article, $this-&gt;params, $this-&gt;access, array(&#039;class&#039; =&gt; &#039;metadata-icon&#039;));
}
echo implode(&#039; | &#039;, $metadata);
?&gt;

&lt;/div&gt;
&lt;div class=&quot;PostContent&quot;&gt;
&lt;?php if (!$this-&gt;params-&gt;get(&#039;show_intro&#039;)) :
echo $this-&gt;article-&gt;event-&gt;afterDisplayTitle;
endif; ?&gt;
&lt;?php echo $this-&gt;article-&gt;event-&gt;beforeDisplayContent; ?&gt;
&lt;?php if (($this-&gt;params-&gt;get(&#039;show_section&#039;) &amp;&amp; $this-&gt;article-&gt;sectionid) || ($this-&gt;params-&gt;get(&#039;show_category&#039;) &amp;&amp; $this-&gt;article-&gt;catid)) : ?&gt;
&lt;table class=&quot;contentpaneopen&lt;?php echo $this-&gt;params-&gt;get( &#039;pageclass_sfx&#039; ); ?&gt;&quot;&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;?php if ($this-&gt;params-&gt;get(&#039;show_section&#039;) &amp;&amp; $this-&gt;article-&gt;sectionid &amp;&amp; isset($this-&gt;article-&gt;section)) : ?&gt;
&lt;span&gt;
&lt;?php if ($this-&gt;params-&gt;get(&#039;link_section&#039;)) : ?&gt;
&lt;?php echo &#039;&lt;a href=&quot;&#039;.JRoute::_(ContentHelperRoute::getSectionRo ute($this-&gt;article-&gt;sectionid)).&#039;&quot;&gt;&#039;; ?&gt;
&lt;?php endif; ?&gt;
&lt;?php echo $this-&gt;article-&gt;section; ?&gt;
&lt;?php if ($this-&gt;params-&gt;get(&#039;link_section&#039;)) : ?&gt;
&lt;?php echo &#039;&lt;/a&gt;&#039;; ?&gt;
&lt;?php endif; ?&gt;
&lt;?php if ($this-&gt;params-&gt;get(&#039;show_category&#039;)) : ?&gt;
&lt;?php echo &#039; - &#039;; ?&gt;
&lt;?php endif; ?&gt;
&lt;/span&gt;
&lt;?php endif; ?&gt;
&lt;?php if ($this-&gt;params-&gt;get(&#039;show_category&#039;) &amp;&amp; $this-&gt;article-&gt;catid) : ?&gt;
&lt;span&gt;
&lt;?php if ($this-&gt;params-&gt;get(&#039;link_category&#039;)) : ?&gt;
&lt;?php echo &#039;&lt;a href=&quot;&#039;.JRoute::_(ContentHelperRoute::getCategoryR oute($this-&gt;article-&gt;catslug, $this-&gt;article-&gt;sectionid)).&#039;&quot;&gt;&#039;; ?&gt;
&lt;?php endif; ?&gt;
&lt;?php echo $this-&gt;article-&gt;category; ?&gt;
&lt;?php if ($this-&gt;params-&gt;get(&#039;link_category&#039;)) : ?&gt;
&lt;?php echo &#039;&lt;/a&gt;&#039;; ?&gt;
&lt;?php endif; ?&gt;
&lt;/span&gt;
&lt;?php endif; ?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;?php endif; ?&gt;
&lt;?php if (isset ($this-&gt;article-&gt;toc)) : ?&gt;
&lt;?php echo $this-&gt;article-&gt;toc; ?&gt;
&lt;?php endif; ?&gt;
&lt;div class=&quot;article&quot;&gt;
&lt;?php echo $this-&gt;article-&gt;text; ?&gt;
&lt;/div&gt; &#38;#1607;&#38;#1585; &#38;#1711;&#38;#1608;&#38;#1606;&#38;#1607; &#38;#1575;&#38;#1587;&#38;#1578;&#38;#1601;&#38;#1575;&#38;#1583;&#38;#160 7; &#38;#1575;&#38;#1586; &#38;#1575;&#38;#1740;&#38;#1606; &#38;#1605;&#38;#1591;&#38;#1604;&#38;#1576; &#38;#1576;&#38;#1575; &#38;#1584;&#38;#1705;&#38;#1585; &#38;#1606;&#38;#1575;&#38;#1605; &#38;#1587;&#38;#1575;&#38;#1740;&#38;#1578; (&#38;#1605;&#38;#1740;&#38;#1576;&#38;#1583; &#38;#1570;&#38;#1583;&#38;#1740;&#38;#1606;&#38;#1607; ) &#38;#1576;&#38;#1604;&#38;#1575;&#38;#1605;&#38;#1575;&#38;#1606;&#38;#159 3; &#38;#1575;&#38;#1587;&#38;#1578;.
&lt;?php if ( intval($this-&gt;article-&gt;modified) !=0 &amp;&amp; $this-&gt;params-&gt;get(&#039;show_modify_date&#039;)) : ?&gt;
&lt;p class=&quot;modifydate&quot;&gt;
&lt;?php echo JText::_( &#039;Last Updated&#039; ); ?&gt; ( &lt;?php echo JHTML::_(&#039;date&#039;, $this-&gt;article-&gt;modified, JText::_(&#039;DATE_FORMAT_LC2&#039;)); ?&gt; )
&lt;/p&gt;
&lt;?php endif; ?&gt;

&lt;/div&gt;
&lt;div class=&quot;cleared&quot;&gt;&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

reka
08-27-2010, 08:22 AM
سلام

این چه فایلی از قالب است؟


یا علی

maybod-adineh
08-27-2010, 06:57 PM
سلام
دقیقا همون فایلی است که شما در بالا فرمودید

reka
08-28-2010, 10:35 AM
سلام

من یک فولدر رو آدرس دادم و در اون فولدر ممکنه فایلها و فولدرهای مختلفی باشه.

لطفا آدرس و نام دقیق فایل رو بنویسید.


یا علی

maybod-adineh
08-28-2010, 12:24 PM
templates/drnavab_dental/html/com_content/section/default.php