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

مشكل في اعدادات المجلة


مشاهدة المشاركة في الموضوع بالعرض العادي
look/images/icons/i1.gif [مجابه] مشكل في اعدادات المجلة
  17-07-2013 08:09 مساءً  
Mr King
معلومات الكاتب
اوكي



اضغط تحرير القالب ثم قم بنسخ المحتوى الموجود فيه إلى جهازك




واسترجع الأصل (مشاهدة الأصل - استعادة)



الكود الأصل


CODE
{if {$_CONF['info_row']['style_block_latest_news']} =='1'}
	<table width="100%" class="border" cellpadding="0" style="border-collapse: collapse">
	        {Des::while}{LastNews_subjectList}
	   <?php
	 $writer= $PowerBB->_CONF['template']['while']['LastNews_subjectList'][$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="thead">
	   <?php $PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['title'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['title']);?>
	<span class="l-left">
	<font class="smallfont">
	{$lang['SubjectVisitor']}:
	 ({$LastNews_subjectList['visitor']})
	     {$lang['Comments']}:
	  ({$LastNews_subjectList['reply_number']})
	 </font>
	</span>
	<span class="r-right">
	<img border="0" alt="{$LastNews_subjectList['title']}" src="{$LastNews_subjectList['icon']}">
	<a href="index.php?page=topic&amp;show=1&amp;id={$LastNews_subjectList['id']}">{$LastNews_subjectList['title']}</a>
	</span>
	        </td>
	    </tr>
	    <tr>
	        <td class="blocks_info">
	<span class="l-left">
	<font class="smallfont">
	{$LastNews_subjectList['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']; ?>">{$LastNews_subjectList['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 =$PowerBB->_CONF['template']['_CONF']['info_row']['portal_news_along'];
	$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'] = $PowerBB->Powerparse->replace($PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text']);
	$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'] = strip_tags($PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text']);
	$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'] = str_replace('<br>',"
	
	",$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text']);
	$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'] = str_replace('',"
	
	",$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text']);
	$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text']);
	$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'] = $PowerBB->functions->words_count($PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'],$num);
	
	         ?>
	         {$LastNews_subjectList['text']} ...
	         
	
	
	
	
	
	        <span class="r-right"><a href="index.php?page=topic&amp;show=1&amp;id={$LastNews_subjectList['id']}"><img border="0" src="look/portal/images/read_more_button.png" alt="readmore"></a></span>
	
	        </td>
	    </tr>
	{/Des::while}
	{if {$PagerLastNews}}
	    <tr>
	        <td class="blocks_info">
	
	<span class="r-right">
	{$PagerLastNews}
	</span>
	        </td>
	    </tr>
	{/if}
	
	</table>
	{else}
	<?php $t= 0;?>
	<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse" align="center"><tr>
	{Des::while}{LastNews_subjectList}
	<?php
	if ($PowerBB->_CONF['info_row']['portal_columns'] == '1' )
	{
	$columns_News = "3";
	}
	else
	{
	$columns_News = "2";
	}
	if($t== $columns_News){
	$t=0;
	echo "</tr><tr>";
	}?>
	<td valign="top">
	<table border="1" width="100" class="border" cellpadding="0" style="border-collapse: collapse" align="center"><tr>
	        <td class="LastNews-tabclear" valign="top">
	
	<?php
	$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['title'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['title']);
	$title = $PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['title'];
	$num = "5";
	$title = $PowerBB->functions->words_count($title,$num);?>
	<a href="index.php?page=topic&amp;show=1&amp;id={$LastNews_subjectList['id']}" title="<?php echo $title;?>"><?php echo $title;?></a>
	        </td>
	    </tr>
	    <tr>
	        <td class="rowthumb" valign="top">
	
	<a href="index.php?page=topic&amp;show=1&amp;id={$LastNews_subjectList['id']}" title="<?php echo $title;?>">
	<?php
	$x = 1;
	
	$images = array();
	$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'] = stripslashes($PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text']);
	preg_match_all('/src=([\\'"])?((?(1).*?|\\S+))(?(1)\\1)/', $PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'], $images);
	foreach ($images[2] as $src)
	  {
	    if($src)
	     {
	     echo '<img border="0" width="200" height="200" src="'.$src.'" alt="'.$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['title'].'">';
	     }
	
	        break;
	 }
	  if(!preg_match_all('/src=([\\'"])?((?(1).*?|\\S+))(?(1)\\1)/', $PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'], $images))
	     {
	      echo '<img border="0" width="200" height="200" src="look/portal/images/traffic_cone.png" alt="'.$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['title'].'">';
	     }
	
	?>
	</a>
	        </td>
	    </tr>
	    <tr>
	        <td class="row1" valign="top">
	<?php
	$num = $PowerBB->_CONF['template']['_CONF']['info_row']['portal_news_along'];
	$text = $PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'];
	$text = $PowerBB->functions->words_count_replace_strip_tags_html2bb($text,$num);
	$text = $PowerBB->Powerparse->html2bb($text);
	?>
	<textarea dir="{$_CONF['info_row']['content_dir']}" class="r-right" readonly="readonly"><?php echo $text; ?></textarea>
	        </td>
	    </tr>
	    <tr>
	        <td class="theadv" valign="top">
	<a href="index.php?page=topic&amp;show=1&amp;id={$LastNews_subjectList['id']}" title="Read More">
	<div id="read_more_button">
	{$lang['SubjectVisitor']}:
	 ({$LastNews_subjectList['visitor']})
	              &nbsp;{$lang['usercp_reputations']}:
	  ({$LastNews_subjectList['rating']})
	</div>
	</a>
	        </td>
	        </tr>
	        </table> 
	</td>
	<?php $t= $t+1;?>
	{/Des::while}
	 </tr>
	 </table>
	
	{if {$PagerLastNews}}
	<table border="1" width="100%" cellpadding="0" style="border-collapse: collapse"><tr>
	<tr>
	<td class="row3">
	<span class="r-right">
	{$PagerLastNews}
	</span>
	        </td>
	    </tr>
	</table>
	{/if}
	{/if}


تم تحرير المشاركة بواسطة :Mr King بتاريخ:17-07-2013 08:12 مساءً



الساعة الآن 04:54 AM