PDA

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



farazgh
12-03-2009, 12:55 PM
با سلام
من می خواستم جای تاریخی که برای هر پست می آید را عوض کنم! یعنی به طور معمول اول تیتر هست و پایین آن تاریخ . حالا من میخواهم اول تاریخ باشد و دو نقطه و بعد از آن تیتر قرار بگیرد.
می دونم که باید قالب را دستکاری کنم ، اما کجای قالب و به چه صورت باید بنویسم؟
و در ضمن من article/default.php را هم دستکاری کردم ، اما درست نشد.
قالب سایت : yoo-phoenix البته فارسی سازی شده است .
دوستان خواهش میکنم راهنمایی کنید و این برای من خیلی مهم است. اگر دوستانی باشند که این را درست کنند و یک مرد تغییری در آرشیو بدهند ، بابت این کار هزینه درافت خواهند کرد
منتظر پاسخ دوستان هستم

firoozmandan
12-03-2009, 01:10 PM
سلام

شما اینکارو برای صفحه اول میخوایید انجام بدید یا برای صفحه ای که بعد از کلیک روی مطلب مورد نظر شد ؟
به عنوان مثلا صفحه : <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
یا <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>

یا علی

farazgh
12-03-2009, 01:20 PM
سلام مجدد
آیا فرقی می کنه؟
اگر برای همه ی صفحات باشه خیلی بهتره ولی اگر نشد به همام صفحه ی اول هم راضی مشیم
با تشکر ار شما بابت رسیدگی به این موضوع

firoozmandan
12-03-2009, 09:40 PM
سلام

ببینید برای نمایش تاریخ درج مطلب از


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



&lt;?php
defined(&#039;_JEXEC&#039;) or die(&#039;Restricted access&#039;);
$canEdit = ($this-&gt;user-&gt;authorize(&#039;com_content&#039;, &#039;edit&#039;, &#039;content&#039;, &#039;all&#039;) || $this-&gt;user-&gt;authorize(&#039;com_content&#039;, &#039;edit&#039;, &#039;content&#039;, &#039;own&#039;));
?&gt;
&lt;?php if ($this-&gt;item-&gt;state == 0) : ?&gt;&lt;div class=&quot;system-unpublished&quot;&gt;&lt;?php endif; ?&gt;
&lt;?php if ($canEdit || $this-&gt;item-&gt;params-&gt;get(&#039;show_title&#039;) || $this-&gt;item-&gt;params-&gt;get(&#039;show_pdf_icon&#039;) || $this-&gt;item-&gt;params-&gt;get(&#039;show_print_icon&#039;) || $this-&gt;item-&gt;params-&gt;get(&#039;show_email_icon&#039;)) : ?&gt;
&lt;table class=&quot;contentpaneopen&lt;?php echo $this-&gt;item-&gt;params-&gt;get( &#039;pageclass_sfx&#039; ); ?&gt;&quot;&gt;
&lt;tr&gt;&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_create_date&#039;)) :
echo &#039;&lt;span class=&quot;createdate&quot;&gt;&#039;;
echo JHTML::_(&#039;date&#039;, $this-&gt;item-&gt;created, JText::_(&#039;DATE_FORMAT_LC2&#039;));
if ($this-&gt;item-&gt;params-&gt;get(&#039;show_url&#039;) &amp;&amp; $this-&gt;item-&gt;urls) : echo &quot; | &quot;; endif;
echo &#039;&lt;/span&gt;&#039;;
endif; ?&gt;
&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_title&#039;)) : ?&gt;
&lt;td class=&quot;contentheading&lt;?php echo $this-&gt;item-&gt;params-&gt;get( &#039;pageclass_sfx&#039; ); ?&gt;&quot; width=&quot;100%&quot;&gt;
&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;link_titles&#039;) &amp;&amp; $this-&gt;item-&gt;readmore_link != &#039;&#039;) : ?&gt;
&lt;h2&gt;&lt;a href=&quot;&lt;?php echo $this-&gt;item-&gt;readmore_link; ?&gt;&quot; class=&quot;contentpagetitle&lt;?php echo $this-&gt;item-&gt;params-&gt;get( &#039;pageclass_sfx&#039; ); ?&gt;&quot;&gt;
&lt;?php echo $this-&gt;item-&gt;title; ?&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;?php else : ?&gt;
&lt;h2&gt;&lt;?php echo $this-&gt;escape($this-&gt;item-&gt;title); ?&gt;&lt;/h2&gt;
&lt;?php endif; ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;

&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_pdf_icon&#039;)) : ?&gt;
&lt;td align=&quot;right&quot; width=&quot;100%&quot; class=&quot;buttonheading&quot;&gt;
&lt;?php echo JHTML::_(&#039;icon.pdf&#039;, $this-&gt;item, $this-&gt;item-&gt;params, $this-&gt;access); ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;

&lt;?php if ( $this-&gt;item-&gt;params-&gt;get( &#039;show_print_icon&#039; )) : ?&gt;
&lt;td align=&quot;right&quot; width=&quot;100%&quot; class=&quot;buttonheading&quot;&gt;
&lt;?php echo JHTML::_(&#039;icon.print_popup&#039;, $this-&gt;item, $this-&gt;item-&gt;params, $this-&gt;access); ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;

&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_email_icon&#039;)) : ?&gt;
&lt;td align=&quot;right&quot; width=&quot;100%&quot; class=&quot;buttonheading&quot;&gt;
&lt;?php echo JHTML::_(&#039;icon.email&#039;, $this-&gt;item, $this-&gt;item-&gt;params, $this-&gt;access); ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;
&lt;?php if ($canEdit) : ?&gt;
&lt;td&gt;
&lt;?php echo JHTML::_(&#039;icon.edit&#039;, $this-&gt;item, $this-&gt;item-&gt;params, $this-&gt;access); ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;?php endif; ?&gt;
&lt;?php if (!$this-&gt;item-&gt;params-&gt;get(&#039;show_intro&#039;)) :
echo $this-&gt;item-&gt;event-&gt;afterDisplayTitle;
endif; ?&gt;
&lt;?php echo $this-&gt;item-&gt;event-&gt;beforeDisplayContent; ?&gt;
&lt;table class=&quot;contentpaneopen&lt;?php echo $this-&gt;item-&gt;params-&gt;get( &#039;pageclass_sfx&#039; ); ?&gt;&quot;&gt;
&lt;?php if (($this-&gt;item-&gt;params-&gt;get(&#039;show_author&#039;)) &amp;&amp; ($this-&gt;item-&gt;author != &quot;&quot;) || ($this-&gt;item-&gt;params-&gt;get(&#039;show_create_date&#039;)) || ($this-&gt;item-&gt;params-&gt;get(&#039;show_url&#039;) &amp;&amp; $this-&gt;item-&gt;urls) || ($this-&gt;item-&gt;params-&gt;get(&#039;show_section&#039;) &amp;&amp; $this-&gt;item-&gt;sectionid &amp;&amp; isset($this-&gt;item-&gt;section)) || ($this-&gt;item-&gt;params-&gt;get(&#039;show_category&#039;) &amp;&amp; $this-&gt;item-&gt;catid)) : ?&gt;
&lt;tr&gt;
&lt;td width=&quot;70%&quot; valign=&quot;top&quot; colspan=&quot;2&quot; class=&quot;heading_content&quot;&gt;
&lt;?php
if ($this-&gt;item-&gt;params-&gt;get(&#039;show_section&#039;) &amp;&amp; $this-&gt;item-&gt;sectionid &amp;&amp; isset($this-&gt;item-&gt;section)) :
echo &#039;&lt;span class=&quot;small&quot;&gt;&#039;;
if ($this-&gt;item-&gt;params-&gt;get(&#039;link_section&#039;)): echo &#039;&lt;a href=&quot;&#039;.JRoute::_(ContentHelperRoute::getSectionRo ute($this-&gt;item-&gt;sectionid)).&#039;&quot;&gt;&#039;; endif;
echo $this-&gt;item-&gt;section;
if ($this-&gt;item-&gt;params-&gt;get(&#039;link_section&#039;)): echo &#039;&lt;/a&gt;&#039;; endif;
if ($this-&gt;item-&gt;params-&gt;get(&#039;show_category&#039;)) : echo &quot; | &quot;; endif;
echo &#039;&lt;/span&gt;&#039;;
endif;

if ($this-&gt;item-&gt;params-&gt;get(&#039;show_category&#039;) &amp;&amp; $this-&gt;item-&gt;catid) :
echo &#039;&lt;span class=&quot;small&quot;&gt;&#039;;
if ($this-&gt;item-&gt;params-&gt;get(&#039;link_category&#039;)) : echo &#039;&lt;a href=&quot;&#039;.JRoute::_(ContentHelperRoute::getCategoryR oute($this-&gt;item-&gt;catslug, $this-&gt;item-&gt;sectionid)).&#039;&quot;&gt;&#039;; endif;
echo $this-&gt;item-&gt;category;
if ($this-&gt;item-&gt;params-&gt;get(&#039;link_category&#039;)) : echo &#039;&lt;/a&gt;&#039;; endif;
if (($this-&gt;item-&gt;params-&gt;get(&#039;show_author&#039;)) &amp;&amp; ($this-&gt;item-&gt;author != &quot;&quot;)) : echo &#039; | &#039;; endif;
echo &#039;&lt;/span&gt;&#039;;
endif;

if (($this-&gt;item-&gt;params-&gt;get(&#039;show_author&#039;)) &amp;&amp; ($this-&gt;item-&gt;author != &quot;&quot;)) :
echo &#039;&lt;span class=&quot;small&quot;&gt;&#039;;
echo JText::_(($this-&gt;item-&gt;created_by_alias ? $this-&gt;item-&gt;created_by_alias : $this-&gt;item-&gt;author) );
if ($this-&gt;item-&gt;params-&gt;get(&#039;show_create_date&#039;)) : echo &#039; | &#039;; endif;
echo &#039;&lt;/span&gt;&#039;;
endif;



if ($this-&gt;item-&gt;params-&gt;get(&#039;show_url&#039;) &amp;&amp; $this-&gt;item-&gt;urls) :
echo &#039;&lt;span class=&quot;small&quot;&gt;&#039;;
echo &#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;;
echo &#039;&lt;/span&gt;&#039;;
endif;
?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php endif; ?&gt;

&lt;tr&gt;
&lt;td valign=&quot;top&quot; colspan=&quot;2&quot; class=&quot;main_article&quot;&gt;
&lt;?php if (isset ($this-&gt;item-&gt;toc)) : ?&gt;
&lt;?php echo $this-&gt;item-&gt;toc; ?&gt;
&lt;?php endif; ?&gt;
&lt;?php echo $this-&gt;item-&gt;text; ?&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;?php if ( intval($this-&gt;item-&gt;modified) != 0 &amp;&amp; $this-&gt;item-&gt;params-&gt;get(&#039;show_modify_date&#039;)) : ?&gt;
&lt;tr&gt;
&lt;td colspan=&quot;2&quot; class=&quot;modifydate&quot;&gt;
&lt;?php echo JText::sprintf(&#039;LAST_UPDATED2&#039;, JHTML::_(&#039;date&#039;, $this-&gt;item-&gt;modified, JText::_(&#039;DATE_FORMAT_LC2&#039;))); ?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php endif; ?&gt;

&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_readmore&#039;) &amp;&amp; $this-&gt;item-&gt;readmore) : ?&gt;
&lt;tr&gt;
&lt;td colspan=&quot;2&quot;&gt;
&lt;a href=&quot;&lt;?php echo $this-&gt;item-&gt;readmore_link; ?&gt;&quot; class=&quot;readon&lt;?php echo $this-&gt;item-&gt;params-&gt;get(&#039;pageclass_sfx&#039;); ?&gt;&quot;&gt;
&lt;?php if ($this-&gt;item-&gt;readmore_register) :
echo JText::_(&#039;Register to read more...&#039;);
elseif ($readmore = $this-&gt;item-&gt;params-&gt;get(&#039;readmore&#039;)) :
echo $readmore;
else :
echo JText::sprintf(&#039;Read more...&#039;);
endif; ?&gt;&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php endif; ?&gt;

&lt;/table&gt;
&lt;?php if ($this-&gt;item-&gt;state == 0) : ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;?php /*?&gt;&lt;span class=&quot;article_separator&quot;&gt;&amp;nbsp;&lt;/span&gt;
&lt;?php */?&gt;&lt;?php echo $this-&gt;item-&gt;event-&gt;afterDisplayContent; ?&gt;


در کد بالا تاریخ بالای تیتر مطالب قرار میگیره


یا علی

farazgh
12-05-2009, 04:14 PM
با سلام
مرسی از پاسخ شما. من این کد را جایگزین کردم ، اما نتیجه دلخواه را کسب نکردم
اگر امکان دارد روی کد زیر کار کنید :

&lt;?php
/**
* @package yoo_phoenix Template
* @version 1.5.2 2009-07-02 16:34:50
* @author YOOtheme <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
* @copyright Copyright (C) 2007 - 2009 YOOtheme GmbH
*/

// no direct access
defined(&#039;_JEXEC&#039;) or die(&#039;Restricted access&#039;);

$canEdit = ($this-&gt;user-&gt;authorize(&#039;com_content&#039;, &#039;edit&#039;, &#039;content&#039;, &#039;all&#039;) || $this-&gt;user-&gt;authorize(&#039;com_content&#039;, &#039;edit&#039;, &#039;content&#039;, &#039;own&#039;));
?&gt;

&lt;div class=&quot;item &lt;?php if ($this-&gt;item-&gt;state == 0) echo &#039;unpublished&#039; ?&gt;&quot;&gt;
&lt;div class=&quot;item-bg&quot;&gt;

&lt;?php if ($canEdit || $this-&gt;item-&gt;params-&gt;get(&#039;show_title&#039;) || $this-&gt;item-&gt;params-&gt;get(&#039;show_pdf_icon&#039;) || $this-&gt;item-&gt;params-&gt;get(&#039;show_print_icon&#039;) || $this-&gt;item-&gt;params-&gt;get(&#039;show_email_icon&#039;)) : ?&gt;
&lt;div class=&quot;headline&quot;&gt;

&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_title&#039;)) : ?&gt;
&lt;h1 class=&quot;title&quot;&gt;
&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;link_titles&#039;) &amp;&amp; $this-&gt;item-&gt;readmore_link != &#039;&#039;) : ?&gt;
&lt;a href=&quot;&lt;?php echo $this-&gt;item-&gt;readmore_link; ?&gt;&quot;&gt;&lt;?php echo $this-&gt;item-&gt;title; ?&gt;&lt;/a&gt;
&lt;?php else : ?&gt;
&lt;?php echo $this-&gt;escape($this-&gt;item-&gt;title); ?&gt;
&lt;?php endif; ?&gt;
&lt;/h1&gt;
&lt;?php endif; ?&gt;

&lt;?php if ($canEdit) : ?&gt;
&lt;span class=&quot;icon edit&quot;&gt;
&lt;?php echo JHTML::_(&#039;icon.edit&#039;, $this-&gt;item, $this-&gt;item-&gt;params, $this-&gt;access); ?&gt;
&lt;/span&gt;
&lt;?php endif; ?&gt;

&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_email_icon&#039;)) : ?&gt;
&lt;span class=&quot;icon email&quot;&gt;
&lt;?php echo JHTML::_(&#039;icon.email&#039;, $this-&gt;item, $this-&gt;item-&gt;params, $this-&gt;access); ?&gt;
&lt;/span&gt;
&lt;?php endif; ?&gt;

&lt;?php if ( $this-&gt;item-&gt;params-&gt;get( &#039;show_print_icon&#039; )) : ?&gt;
&lt;span class=&quot;icon print&quot;&gt;
&lt;?php echo JHTML::_(&#039;icon.print_popup&#039;, $this-&gt;item, $this-&gt;item-&gt;params, $this-&gt;access); ?&gt;
&lt;/span&gt;
&lt;?php endif; ?&gt;

&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_pdf_icon&#039;)) : ?&gt;
&lt;span class=&quot;icon pdf&quot;&gt;
&lt;?php echo JHTML::_(&#039;icon.pdf&#039;, $this-&gt;item, $this-&gt;item-&gt;params, $this-&gt;access); ?&gt;
&lt;/span&gt;
&lt;?php endif; ?&gt;

&lt;/div&gt;
&lt;?php endif; ?&gt;

&lt;?php if (!$this-&gt;item-&gt;params-&gt;get(&#039;show_intro&#039;)) :
echo $this-&gt;item-&gt;event-&gt;afterDisplayTitle;
endif; ?&gt;

&lt;?php echo $this-&gt;item-&gt;event-&gt;beforeDisplayContent; ?&gt;

&lt;?php if ($this-&gt;params-&gt;get(&#039;show_create_date&#039;) || ($this-&gt;params-&gt;get(&#039;show_author&#039;) &amp;&amp; $this-&gt;article-&gt;author != &quot;&quot;)) : ?&gt;
&lt;p class=&quot;articleinfo&quot;&gt;

&lt;?php if (($this-&gt;item-&gt;params-&gt;get(&#039;show_author&#039;)) &amp;&amp; ($this-&gt;item-&gt;author != &quot;&quot;)) : ?&gt;
&lt;span class=&quot;author&quot;&gt;
&lt;?php JText::printf( &#039;Written by&#039;, ($this-&gt;item-&gt;created_by_alias ? $this-&gt;item-&gt;created_by_alias : $this-&gt;item-&gt;author) ); ?&gt;
&lt;/span&gt;
&lt;?php endif; ?&gt;

&lt;?php if (($this-&gt;item-&gt;params-&gt;get(&#039;show_author&#039;)) &amp;&amp; ($this-&gt;item-&gt;author != &quot;&quot;) &amp;&amp; $this-&gt;item-&gt;params-&gt;get(&#039;show_create_date&#039;)) echo &#039;|&#039;; ?&gt;

&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_create_date&#039;)) : ?&gt;
&lt;span class=&quot;created&quot;&gt;
&lt;?php echo JHTML::_(&#039;date&#039;, $this-&gt;item-&gt;created, JText::_(&#039;DATE_FORMAT_LC3&#039;)); ?&gt;
&lt;/span&gt;
&lt;?php endif; ?&gt;

&lt;?php if (($this-&gt;item-&gt;params-&gt;get(&#039;show_section&#039;) &amp;&amp; $this-&gt;item-&gt;sectionid) || ($this-&gt;item-&gt;params-&gt;get(&#039;show_category&#039;) &amp;&amp; $this-&gt;item-&gt;catid)) : ?&gt;
&lt;br /&gt;&lt;?php echo JText::_(&#039;Posted in &#039;); ?&gt;

&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_section&#039;) &amp;&amp; $this-&gt;item-&gt;sectionid &amp;&amp; isset($this-&gt;item-&gt;section)) : ?&gt;
&lt;span&gt;
&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;link_section&#039;)) : ?&gt;
&lt;?php echo &#039;&lt;a href=&quot;&#039;.JRoute::_(ContentHelperRoute::getSectionRo ute($this-&gt;item-&gt;sectionid)).&#039;&quot;&gt;&#039;; ?&gt;
&lt;?php endif; ?&gt;
&lt;?php echo $this-&gt;item-&gt;section; ?&gt;
&lt;?php if ($this-&gt;item-&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;item-&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;item-&gt;params-&gt;get(&#039;show_category&#039;) &amp;&amp; $this-&gt;item-&gt;catid) : ?&gt;
&lt;span&gt;
&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;link_category&#039;)) : ?&gt;
&lt;?php echo &#039;&lt;a href=&quot;&#039;.JRoute::_(ContentHelperRoute::getCategoryR oute($this-&gt;item-&gt;catslug, $this-&gt;item-&gt;sectionid)).&#039;&quot;&gt;&#039;; ?&gt;
&lt;?php endif; ?&gt;
&lt;?php echo $this-&gt;item-&gt;category; ?&gt;
&lt;?php if ($this-&gt;item-&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;?php endif; ?&gt;

&lt;/p&gt;
&lt;?php endif; ?&gt;

&lt;?php if (isset ($this-&gt;item-&gt;toc)) : ?&gt;
&lt;?php echo $this-&gt;item-&gt;toc; ?&gt;
&lt;?php endif; ?&gt;

&lt;?php echo $this-&gt;item-&gt;text; ?&gt;

&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_readmore&#039;) &amp;&amp; $this-&gt;item-&gt;readmore) : ?&gt;
&lt;p class=&quot;readmore&quot;&gt;
&lt;a href=&quot;&lt;?php echo $this-&gt;item-&gt;readmore_link; ?&gt;&quot; class=&quot;readmore&quot;&gt;
&lt;?php if ($this-&gt;item-&gt;readmore_register) :
echo JText::_(&#039;Register to read more...&#039;);
elseif ($readmore = $this-&gt;item-&gt;params-&gt;get(&#039;readmore&#039;)) :
echo $readmore;
else :
echo JText::sprintf(&#039;Read more...&#039;);
endif; ?&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;?php endif; ?&gt;

&lt;?php echo $this-&gt;item-&gt;event-&gt;afterDisplayContent; ?&gt;

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

سلام
اگر مانند این عکس بشود که خیلی خیلی ممنون

لینک عکس :


<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>


** سه پست شما یکی شد

firoozmandan
12-05-2009, 06:52 PM
سلام

با جایگزین کردن کدی که برای شما قرار دادم چه نتیجه ای حاصل شد ؟

آیا تاریخ به بالای تایتل منتقل نشد ؟!

قالب yoo-phoenix را خریداری کردید ؟

یا علی

farazgh
12-05-2009, 07:01 PM
با سلام
بعد از جایگزین کردن کد های شما به این شکل در آمد . <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
آیا امکانش هست دقیقا مثل عکس بالا بشود؟
قالب را نخریدم ولی فارسی سازی آن با خودم بوده است. اگر قالب فارسی را خواستید بفرمایید تا برای شما ایمیل کنم ;)

firoozmandan
12-05-2009, 07:16 PM
سلام

دوست من در این انجمن از قالب هایی که نال هستند و یا حتی از سایتهایی خریداری میشن پشتیبانی نمیشه چرا که وظیفه پشتیبانی بر عهده فروشنده قالب و سایتهای مربوطه است.

در چند پست قبل راه حل این موضوع را خدمت شما گفتم و کد مربوط به درج تاریخ را نوشتم .
شما با کمی دستکاری در قالب قادر خواهید بود به خواسته خود برسید

امیدوارم این موضوع را درک کنید

ممنون از شما

یا علی

sisto
05-15-2010, 03:17 PM
سلام
در انجمن گشتم ولی جوابی واضح پیدا نکردم

تاریخ و زمانی
مثلا : 20 ارديبهشت 1389 ساعت 06:34
که در زیر عنوان هر پست در صفحه اول آمده رو چگونه بیاورم زیر مطلب به جای بالای مطلب بودن .
در این فایل content.html که قسمت کامپوننت ها هستم رفتم و هر چی تغییر دادم درست نشد . میشه لطف کنید و راهنمایی کنید که چجوری تاریخ رو بیارم پایین مطالب هرپست نه بالا .
بسیار ممنون

firoozmandan
05-20-2010, 07:41 AM
سلام

ببینید برای نمایش تاریخ درج مطلب از


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



&lt;?php
defined(&#039;_JEXEC&#039;) or die(&#039;Restricted access&#039;);
$canEdit = ($this-&gt;user-&gt;authorize(&#039;com_content&#039;, &#039;edit&#039;, &#039;content&#039;, &#039;all&#039;) || $this-&gt;user-&gt;authorize(&#039;com_content&#039;, &#039;edit&#039;, &#039;content&#039;, &#039;own&#039;));
?&gt;
&lt;?php if ($this-&gt;item-&gt;state == 0) : ?&gt;&lt;div class=&quot;system-unpublished&quot;&gt;&lt;?php endif; ?&gt;
&lt;?php if ($canEdit || $this-&gt;item-&gt;params-&gt;get(&#039;show_title&#039;) || $this-&gt;item-&gt;params-&gt;get(&#039;show_pdf_icon&#039;) || $this-&gt;item-&gt;params-&gt;get(&#039;show_print_icon&#039;) || $this-&gt;item-&gt;params-&gt;get(&#039;show_email_icon&#039;)) : ?&gt;
&lt;table class=&quot;contentpaneopen&lt;?php echo $this-&gt;item-&gt;params-&gt;get( &#039;pageclass_sfx&#039; ); ?&gt;&quot;&gt;
&lt;tr&gt;&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_create_date&#039;)) :
echo &#039;&lt;span class=&quot;createdate&quot;&gt;&#039;;
echo JHTML::_(&#039;date&#039;, $this-&gt;item-&gt;created, JText::_(&#039;DATE_FORMAT_LC2&#039;));
if ($this-&gt;item-&gt;params-&gt;get(&#039;show_url&#039;) &amp;&amp; $this-&gt;item-&gt;urls) : echo &quot; | &quot;; endif;
echo &#039;&lt;/span&gt;&#039;;
endif; ?&gt;
&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_title&#039;)) : ?&gt;
&lt;td class=&quot;contentheading&lt;?php echo $this-&gt;item-&gt;params-&gt;get( &#039;pageclass_sfx&#039; ); ?&gt;&quot; width=&quot;100%&quot;&gt;
&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;link_titles&#039;) &amp;&amp; $this-&gt;item-&gt;readmore_link != &#039;&#039;) : ?&gt;
&lt;h2&gt;&lt;a href=&quot;&lt;?php echo $this-&gt;item-&gt;readmore_link; ?&gt;&quot; class=&quot;contentpagetitle&lt;?php echo $this-&gt;item-&gt;params-&gt;get( &#039;pageclass_sfx&#039; ); ?&gt;&quot;&gt;
&lt;?php echo $this-&gt;item-&gt;title; ?&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;?php else : ?&gt;
&lt;h2&gt;&lt;?php echo $this-&gt;escape($this-&gt;item-&gt;title); ?&gt;&lt;/h2&gt;
&lt;?php endif; ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;

&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_pdf_icon&#039;)) : ?&gt;
&lt;td align=&quot;right&quot; width=&quot;100%&quot; class=&quot;buttonheading&quot;&gt;
&lt;?php echo JHTML::_(&#039;icon.pdf&#039;, $this-&gt;item, $this-&gt;item-&gt;params, $this-&gt;access); ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;

&lt;?php if ( $this-&gt;item-&gt;params-&gt;get( &#039;show_print_icon&#039; )) : ?&gt;
&lt;td align=&quot;right&quot; width=&quot;100%&quot; class=&quot;buttonheading&quot;&gt;
&lt;?php echo JHTML::_(&#039;icon.print_popup&#039;, $this-&gt;item, $this-&gt;item-&gt;params, $this-&gt;access); ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;

&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_email_icon&#039;)) : ?&gt;
&lt;td align=&quot;right&quot; width=&quot;100%&quot; class=&quot;buttonheading&quot;&gt;
&lt;?php echo JHTML::_(&#039;icon.email&#039;, $this-&gt;item, $this-&gt;item-&gt;params, $this-&gt;access); ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;
&lt;?php if ($canEdit) : ?&gt;
&lt;td&gt;
&lt;?php echo JHTML::_(&#039;icon.edit&#039;, $this-&gt;item, $this-&gt;item-&gt;params, $this-&gt;access); ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;?php endif; ?&gt;
&lt;?php if (!$this-&gt;item-&gt;params-&gt;get(&#039;show_intro&#039;)) :
echo $this-&gt;item-&gt;event-&gt;afterDisplayTitle;
endif; ?&gt;
&lt;?php echo $this-&gt;item-&gt;event-&gt;beforeDisplayContent; ?&gt;
&lt;table class=&quot;contentpaneopen&lt;?php echo $this-&gt;item-&gt;params-&gt;get( &#039;pageclass_sfx&#039; ); ?&gt;&quot;&gt;
&lt;?php if (($this-&gt;item-&gt;params-&gt;get(&#039;show_author&#039;)) &amp;&amp; ($this-&gt;item-&gt;author != &quot;&quot;) || ($this-&gt;item-&gt;params-&gt;get(&#039;show_create_date&#039;)) || ($this-&gt;item-&gt;params-&gt;get(&#039;show_url&#039;) &amp;&amp; $this-&gt;item-&gt;urls) || ($this-&gt;item-&gt;params-&gt;get(&#039;show_section&#039;) &amp;&amp; $this-&gt;item-&gt;sectionid &amp;&amp; isset($this-&gt;item-&gt;section)) || ($this-&gt;item-&gt;params-&gt;get(&#039;show_category&#039;) &amp;&amp; $this-&gt;item-&gt;catid)) : ?&gt;
&lt;tr&gt;
&lt;td width=&quot;70%&quot; valign=&quot;top&quot; colspan=&quot;2&quot; class=&quot;heading_content&quot;&gt;
&lt;?php
if ($this-&gt;item-&gt;params-&gt;get(&#039;show_section&#039;) &amp;&amp; $this-&gt;item-&gt;sectionid &amp;&amp; isset($this-&gt;item-&gt;section)) :
echo &#039;&lt;span class=&quot;small&quot;&gt;&#039;;
if ($this-&gt;item-&gt;params-&gt;get(&#039;link_section&#039;)): echo &#039;&lt;a href=&quot;&#039;.JRoute::_(ContentHelperRoute::getSectionRo ute($this-&gt;item-&gt;sectionid)).&#039;&quot;&gt;&#039;; endif;
echo $this-&gt;item-&gt;section;
if ($this-&gt;item-&gt;params-&gt;get(&#039;link_section&#039;)): echo &#039;&lt;/a&gt;&#039;; endif;
if ($this-&gt;item-&gt;params-&gt;get(&#039;show_category&#039;)) : echo &quot; | &quot;; endif;
echo &#039;&lt;/span&gt;&#039;;
endif;

if ($this-&gt;item-&gt;params-&gt;get(&#039;show_category&#039;) &amp;&amp; $this-&gt;item-&gt;catid) :
echo &#039;&lt;span class=&quot;small&quot;&gt;&#039;;
if ($this-&gt;item-&gt;params-&gt;get(&#039;link_category&#039;)) : echo &#039;&lt;a href=&quot;&#039;.JRoute::_(ContentHelperRoute::getCategoryR oute($this-&gt;item-&gt;catslug, $this-&gt;item-&gt;sectionid)).&#039;&quot;&gt;&#039;; endif;
echo $this-&gt;item-&gt;category;
if ($this-&gt;item-&gt;params-&gt;get(&#039;link_category&#039;)) : echo &#039;&lt;/a&gt;&#039;; endif;
if (($this-&gt;item-&gt;params-&gt;get(&#039;show_author&#039;)) &amp;&amp; ($this-&gt;item-&gt;author != &quot;&quot;)) : echo &#039; | &#039;; endif;
echo &#039;&lt;/span&gt;&#039;;
endif;

if (($this-&gt;item-&gt;params-&gt;get(&#039;show_author&#039;)) &amp;&amp; ($this-&gt;item-&gt;author != &quot;&quot;)) :
echo &#039;&lt;span class=&quot;small&quot;&gt;&#039;;
echo JText::_(($this-&gt;item-&gt;created_by_alias ? $this-&gt;item-&gt;created_by_alias : $this-&gt;item-&gt;author) );
if ($this-&gt;item-&gt;params-&gt;get(&#039;show_create_date&#039;)) : echo &#039; | &#039;; endif;
echo &#039;&lt;/span&gt;&#039;;
endif;



if ($this-&gt;item-&gt;params-&gt;get(&#039;show_url&#039;) &amp;&amp; $this-&gt;item-&gt;urls) :
echo &#039;&lt;span class=&quot;small&quot;&gt;&#039;;
echo &#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;;
echo &#039;&lt;/span&gt;&#039;;
endif;
?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php endif; ?&gt;

&lt;tr&gt;
&lt;td valign=&quot;top&quot; colspan=&quot;2&quot; class=&quot;main_article&quot;&gt;
&lt;?php if (isset ($this-&gt;item-&gt;toc)) : ?&gt;
&lt;?php echo $this-&gt;item-&gt;toc; ?&gt;
&lt;?php endif; ?&gt;
&lt;?php echo $this-&gt;item-&gt;text; ?&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;?php if ( intval($this-&gt;item-&gt;modified) != 0 &amp;&amp; $this-&gt;item-&gt;params-&gt;get(&#039;show_modify_date&#039;)) : ?&gt;
&lt;tr&gt;
&lt;td colspan=&quot;2&quot; class=&quot;modifydate&quot;&gt;
&lt;?php echo JText::sprintf(&#039;LAST_UPDATED2&#039;, JHTML::_(&#039;date&#039;, $this-&gt;item-&gt;modified, JText::_(&#039;DATE_FORMAT_LC2&#039;))); ?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php endif; ?&gt;

&lt;?php if ($this-&gt;item-&gt;params-&gt;get(&#039;show_readmore&#039;) &amp;&amp; $this-&gt;item-&gt;readmore) : ?&gt;
&lt;tr&gt;
&lt;td colspan=&quot;2&quot;&gt;
&lt;a href=&quot;&lt;?php echo $this-&gt;item-&gt;readmore_link; ?&gt;&quot; class=&quot;readon&lt;?php echo $this-&gt;item-&gt;params-&gt;get(&#039;pageclass_sfx&#039;); ?&gt;&quot;&gt;
&lt;?php if ($this-&gt;item-&gt;readmore_register) :
echo JText::_(&#039;Register to read more...&#039;);
elseif ($readmore = $this-&gt;item-&gt;params-&gt;get(&#039;readmore&#039;)) :
echo $readmore;
else :
echo JText::sprintf(&#039;Read more...&#039;);
endif; ?&gt;&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php endif; ?&gt;

&lt;/table&gt;
&lt;?php if ($this-&gt;item-&gt;state == 0) : ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;?php /*?&gt;&lt;span class=&quot;article_separator&quot;&gt;&amp;nbsp;&lt;/span&gt;
&lt;?php */?&gt;&lt;?php echo $this-&gt;item-&gt;event-&gt;afterDisplayContent; ?&gt;


در کد بالا تاریخ بالای تیتر مطالب قرار میگیره


یا علی


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

یا علی