أهلا وسهلا بك زائرنا الكريم في منتدى دعم PBBoard الرسمي، لكي تتمكن من المشاركة ومشاهدة جميع أقسام المنتدى وكافة الميزات ، يجب عليك إنشاء حساب جديد بالتسجيل بالضغط هنا أو تسجيل الدخول اضغط هنا إذا كنت عضواً .

طلب كود اخر المواضيع بالرئيسية للموقع بمواصفات معينه


مشاهدة المشاركة في الموضوع بالعرض العادي
look/images/icons/i1.gif طلب كود اخر المواضيع بالرئيسية للموقع بمواصفات معينه
  07-03-2013 12:33 صباحاً  
Soliman
معلومات الكاتب


خاصية شريط آخر المشاركات المدمجة مع المنتدى تفي بالغرض فقط قم بتفعيلها

وعدل على الكود الخاص بها الموجود في قالب lasts_posts_bar بما يناسبك



وهنا تعديل
سريع على كود شريط آخر المشاركات

مشابة لما طلبت كما انه يمكنك تنسيقة كيفما تريد

CODE
<table width="35%" class="border_radius">
{Des::while}{LastsPosts}
<?php
$writer= $PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['writer'];
$Info_writer = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->table['member'] . " WHERE username = '$writer'");
$InfoWriter = @mysql_fetch_array($Info_writer);
$avater_path = $InfoWriter['avater_path'];
?>
<tr>
<td class="tbar" nowrap="nowrap">
<?php
$titlenum = '8';
$PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['title'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['title']);
$PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['title'] = $PowerBB->functions->words_count($PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['title'],$titlenum);?>
<span class="l-left">
<font class="smallfont">
<b class="sticky">{$LastsPosts['reply_number']}</b>
</font>
</span>
<span class="r-right">
<a href="index.php?page=topic&amp;show=1&amp;id={$LastsPosts['id']}">{$LastsPosts['title']}</a>
</span>
</td>
</tr>
<tr>
<td class="blocks_info">
<span class="l-left">
<font class="smallfont">
{$LastsPosts['write_date']}
</font>
</span>
<span class="r-right">
<img border="0" src="look/portal/images/news_icon.gif" alt="Writer">
{$lang['LastsPostsWriter']}
<a href="index.php?page=profile&amp;show=1&amp;id=<?php echo $InfoWriter['id']; ?>">{$LastsPosts['writer']}</a>
</span>
</td>
</tr>
<tr>
<td class="blocks_info" valign="top">
<span class="l-left UserPhoto">
<?php if ($avater_path){ ?>
<a href='<?php echo $avater_path; ?>' rel="facebox">
<img src='<?php echo $avater_path; ?>' alt="Photo" onload="ResizeAv(this)" />
</a>
<?php if ($avater_path ==''){ ?>
<a href="{$image_path}/
{$_CONF['info_row']['default_avatar']}" rel="facebox">
<img src="{$image_path}/
{$_CONF['info_row']['default_avatar']}" border="0" alt="Photo" onload="ResizeAv(this)" />
</a>
{/if}
{else}
<a href="{$image_path}/
{$_CONF['info_row']['default_avatar']}" rel="facebox">
<img src="{$image_path}/
{$_CONF['info_row']['default_avatar']}" border="0" onload="ResizeAv(this)" />
</a>
{/if}
</span>
<?php
$num = '200';
$PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['text'] = $PowerBB->Powerparse->replace($PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['text']);
$PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['text'] = strip_tags($PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['text']);
$PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['text'] = str_replace('<br>',"
",$PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['text']);
$PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['text'] = str_replace('',"
",$PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['text']);
$PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['text'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['text']);
$PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['text'] = $PowerBB->functions->words_count($PowerBB->_CONF['template']['while']['LastsPosts'][$this->x_loop]['text'],$num);
?>
{$LastsPosts['text']} ...


<span class="r-right"><a href="index.php?page=topic&amp;show=1&amp;id={$LastsPosts['id']}"><img border="0" src="look/portal/images/read_more_button.png" alt="readmore"></a></span>
</td>
</tr>
{/Des::while}
{if {$PagerLastNews}}
{/if}

</table>




بالتوفيق


تم تحرير المشاركة بواسطة :Soliman بتاريخ:06-09-2013 07:19 صباحاً



الساعة الآن 02:36 AM