سلام ، آیا این بازدید اول شماست ؟ یا
نمایش نتایج: از شماره 1 تا 7 , از مجموع 7

موضوع: مشکل با کامپوننت نظرات

  1. #1

    تاریخ عضویت
    Jan 2009
    محل سکونت
    میبد
    نوشته ها
    275
    تشکر
    3
    تشکر شده 3 بار در 3 ارسال

    مشکل با کامپوننت نظرات

    سلام دوستان
    من از کامپوننت com_jcomments_v2.2.0.0 استفاده میکنم ؛ مشکلم اینجاست که فرم نظرات نشون داده نمی شود و در قسمت تنظیمات این پیغام داده می شود : Your current site template doesn't have afterDisplayContent event !
    ممنون میشم راهنمایی بفرمایید
    یا علی

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  2. # ADS
    تبلیغات در جوملا فارسی
    تاریخ عضویت
    Always
    محل سکونت
    Advertising world
    نوشته ها
    Many
     

  3. #2

    تاریخ عضویت
    Jun 2009
    محل سکونت
    Kuala Lumpur
    نوشته ها
    2,440
    تشکر
    0
    تشکر شده 16 بار در 16 ارسال

    پاسخ : مشکل با کامپوننت نظرات

    سلام

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

    کدی که کامپوننت برای اجرا نیازمند آن است:
    کد:
    <?php echo $this->article->event->afterDisplayContent; ?>
    احتمالا قالب شما برای نمایش دلخواه محتوا، کامپوننت com_content را هک کرده است و این کد را در آن نگنجانده.
    در قسمتهای مختلف com_content در قالب (که باید در پوشه ای شبیه به html/com_content در پوشه ی قالب باشند) باید این کد رو بعد از نمایش article قرار بدید.


    یا علی

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  4. #3

    تاریخ عضویت
    Jan 2009
    محل سکونت
    میبد
    نوشته ها
    275
    تشکر
    3
    تشکر شده 3 بار در 3 ارسال

    پاسخ : مشکل با کامپوننت نظرات

    سلام
    با تشکر فایل را کامل اینجا قرار میدهم جهت بازبینی ؛ لطفا راهنمایی کنید:
    کد:
    <?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="[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] . $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(' ', $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::getSectionRoute($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::getCategoryRoute($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> هر گونه استفاده از این مطلب با ذکر نام سایت (میبد آدینه ) بلامانع است.
    <?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>

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  5. #4

    تاریخ عضویت
    Jun 2009
    محل سکونت
    Kuala Lumpur
    نوشته ها
    2,440
    تشکر
    0
    تشکر شده 16 بار در 16 ارسال

    پاسخ : مشکل با کامپوننت نظرات

    سلام

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


    یا علی

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  6. #5

    تاریخ عضویت
    Jan 2009
    محل سکونت
    میبد
    نوشته ها
    275
    تشکر
    3
    تشکر شده 3 بار در 3 ارسال

    پاسخ : مشکل با کامپوننت نظرات

    سلام
    دقیقا همون فایلی است که شما در بالا فرمودید

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  7. #6

    تاریخ عضویت
    Jun 2009
    محل سکونت
    Kuala Lumpur
    نوشته ها
    2,440
    تشکر
    0
    تشکر شده 16 بار در 16 ارسال

    پاسخ : مشکل با کامپوننت نظرات

    سلام

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

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


    یا علی

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  8. #7

    تاریخ عضویت
    Jan 2009
    محل سکونت
    میبد
    نوشته ها
    275
    تشکر
    3
    تشکر شده 3 بار در 3 ارسال

    پاسخ : مشکل با کامپوننت نظرات

    templates/drnavab_dental/html/com_content/section/default.php

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


علاقه مندی ها (Bookmarks)

علاقه مندی ها (Bookmarks)

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •