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

موضوع: جابجایی مکان تاریخ برای هر پست

Hybrid View

پست قبلی پست قبلی   پست بعدی پست بعدی
  1. #1
    Admin
    تاریخ عضویت
    Dec 2005
    محل سکونت
    U.A.E
    نوشته ها
    13,222
    تشکر
    318
    تشکر شده 1,338 بار در 652 ارسال

    پاسخ : جابجایی مکان تاریخ برای هر پست

    [quote author=فیروزمندان link=topic=22668.msg118863#msg118863 date=1259876453]
    سلام

    ببینید برای نمایش تاریخ درج مطلب از
    کد:
    echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2'));
    باید استفاده کنید
    برای مثال کد زیر را در مسیر زیر قرار بدید( فرض میکنم نام قالب شما mambolearn است )
    templates/mambolearn/html/com_content/frontpage/default_item.php

    کد:
    <?php
    	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->item->state == 0) : ?><div class="system-unpublished"><?php endif; ?>
    <?php if ($canEdit || $this->item->params->get('show_title') || $this->item->params->get('show_pdf_icon') || $this->item->params->get('show_print_icon') || $this->item->params->get('show_email_icon')) : ?>
    <table class="contentpaneopen<?php echo $this->item->params->get( 'pageclass_sfx' ); ?>">
    <tr><?php if ($this->item->params->get('show_create_date')) :
    				echo '<span class="createdate">';
    				echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2'));
    				if ($this->item->params->get('show_url') && $this->item->urls) : echo " | "; endif;
    				echo '</span>';
    			endif; ?>
    	<?php if ($this->item->params->get('show_title')) : ?>
    	<td class="contentheading<?php echo $this->item->params->get( 'pageclass_sfx' ); ?>" width="100%">
    		<?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?>
    		<h2><a href="<?php echo $this->item->readmore_link; ?>" class="contentpagetitle<?php echo $this->item->params->get( 'pageclass_sfx' ); ?>">
    			<?php echo $this->item->title; ?></a></h2>
    		<?php else : ?>
    			<h2><?php echo $this->escape($this->item->title); ?></h2>
    		<?php endif; ?>
    	</td>
    	<?php endif; ?>
    
    	<?php if ($this->item->params->get('show_pdf_icon')) : ?>
    	<td align="right" width="100%" class="buttonheading">
    	<?php echo JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access); ?>
    	</td>
    	<?php endif; ?>
    
    	<?php if ( $this->item->params->get( 'show_print_icon' )) : ?>
    	<td align="right" width="100%" class="buttonheading">
    	<?php echo JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access); ?>
    	</td>
    	<?php endif; ?>
    
    	<?php if ($this->item->params->get('show_email_icon')) : ?>
    	<td align="right" width="100%" class="buttonheading">
    	<?php echo JHTML::_('icon.email', $this->item, $this->item->params, $this->access); ?>
    	</td>
    	<?php endif; ?>
    	<?php if ($canEdit) : ?>
    	<td>
    		<?php echo JHTML::_('icon.edit', $this->item, $this->item->params, $this->access); ?>
    	</td>
    	<?php endif; ?>
    </tr>
    </table>
    <?php endif; ?>
    <?php if (!$this->item->params->get('show_intro')) :
    	echo $this->item->event->afterDisplayTitle;
    endif; ?>
    <?php echo $this->item->event->beforeDisplayContent; ?>
    <table class="contentpaneopen<?php echo $this->item->params->get( 'pageclass_sfx' ); ?>">
    <?php if (($this->item->params->get('show_author')) && ($this->item->author != "") || ($this->item->params->get('show_create_date')) || ($this->item->params->get('show_url') && $this->item->urls) || ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
    <tr>
    	<td width="70%" valign="top" colspan="2" class="heading_content">
    		<?php
    			if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) :
    				echo '<span class="small">';
    				if ($this->item->params->get('link_section')): echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; endif;
    				echo $this->item->section;
    				if ($this->item->params->get('link_section')): echo '</a>'; endif;
    				if ($this->item->params->get('show_category')) : echo " | "; endif;
    				echo '</span>';
    			endif;
    			
    			if ($this->item->params->get('show_category') && $this->item->catid) :
    				echo '<span class="small">';
    				if ($this->item->params->get('link_category')) : echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; endif;
    				echo $this->item->category;
    				if ($this->item->params->get('link_category')) : echo '</a>'; endif;
    				if (($this->item->params->get('show_author')) && ($this->item->author != "")) : echo ' | '; endif;
    				echo '</span>';
    			endif;
    			
    			if (($this->item->params->get('show_author')) && ($this->item->author != "")) :
    				echo '<span class="small">';
    				echo JText::_(($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author) );
    				if ($this->item->params->get('show_create_date')) : echo ' | '; endif;
    				echo '</span>';
    			endif;
    			
    			
    			
    			if ($this->item->params->get('show_url') && $this->item->urls) :
    				echo '<span class="small">';
    				echo '<a href="[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>';
    				echo '</span>';
    			endif;
    		?>
    	</td>
    </tr>
    <?php endif; ?>
    
    <tr>
    <td valign="top" colspan="2" class="main_article">
    <?php if (isset ($this->item->toc)) : ?>
    	<?php echo $this->item->toc; ?>
    <?php endif; ?>
    <?php echo $this->item->text; ?>
    </td>
    </tr>
    
    <?php if ( intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) : ?>
    <tr>
    	<td colspan="2" class="modifydate">
    		<?php echo JText::sprintf('LAST_UPDATED2', JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2'))); ?>
    	</td>
    </tr>
    <?php endif; ?>
    
    <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
    <tr>
    	<td colspan="2">
    		<a href="<?php echo $this->item->readmore_link; ?>" class="readon<?php echo $this->item->params->get('pageclass_sfx'); ?>">
    			<?php if ($this->item->readmore_register) :
    				echo JText::_('Register to read more...');
    			elseif ($readmore = $this->item->params->get('readmore')) :
    				echo $readmore;
    			else :
    				echo JText::sprintf('Read more...');
    			endif; ?></a>
    	</td>
    </tr>
    <?php endif; ?>
    
    </table>
    <?php if ($this->item->state == 0) : ?>
    </div>
    <?php endif; ?>
    <?php /*?><span class="article_separator"> </span>
    <?php */?><?php echo $this->item->event->afterDisplayContent; ?>
    در کد بالا تاریخ بالای تیتر مطالب قرار میگیره


    یا علی
    [/quote]

    با مطالعه مطلب بالا مشکل شما حل میشه

    یا علی

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


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

موضوعات مشابه

  1. عدم توانایی دربرقراری ارتباط با دیتا بیس
    توسط tadbir در انجمن نصب ، ارتقا و تبدیل SMF
    پاسخ ها: 4
    آخرين نوشته: 02-03-2010, 07:12 AM
  2. راهنمایی در نصب smf
    توسط masi61 در انجمن نصب ، ارتقا و تبدیل SMF
    پاسخ ها: 2
    آخرين نوشته: 01-30-2010, 06:07 AM
  3. درخواست راهنمایی
    توسط persepolisfan در انجمن مدیریت مامبو فارسی
    پاسخ ها: 4
    آخرين نوشته: 12-09-2009, 11:02 PM

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

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

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

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