منتدى دعم PBBoard الرسمي
(نسخة قابلة للطباعة من الموضوع)
https://pbboard.info/forums/t10781
أنقر هنا لمشاهدة الموضوع بهيئته الأصلية

[مجابه] مشكلة فى عمل تطاير لمواضيع اليوم
amai 21-09-2012 05:03 صباحاً
انا عدنى مشكلة فى عمل تطاير لمواضيع اليوم باستخدام الوسم div
المشكلة انى عندما اقوم بعمل التطاير يظهر هذة الفراغ
كما فى الصورة
001wl

Uploaded with ImageShack.us

المشكلة اننى لا اعرف ما سبب هذة المشكلة

وهذة قالب today_subject.tpl

CODE
{template}address_bar_part1{/template}
{$lang['subject_today']}
{template}address_bar_part2{/template}
<div class="hed-body">
<div class="hed-right"></div>
<div class="hed-left"></div>
<div class="hed-center">
</div>

</div>
<div class="cont-body">
<div class="cont-right">
<div class="cont-left">
<table border="0" cellspacing="1" class="border" width="100%" align="center">
    <tr>
	   <td width="30%" class="tcat small_text" align="center" colspan="2">
		  {$lang['subject_title']}
	   </td>
	   <td width="20%" class="tcat small_text" align="center">
		  {$lang['subject_writer']}
	   </td>
	   <td width="4%" class="tcat small_text" align="center">
		  {$lang['reply_num']}
	   </td>
	   <td width="4%" class="tcat small_text" align="center">
		  {$lang['subject_visitor']}
	   </td>
	   <td width="15%" class="tcat small_text" align="center">
		  {$lang['write_date']}
	   </td>
		  <td width="25%" class="tcat small_text" align="center">
		   {$lang['forum']}
	   </td>
	   </tr>
{if {$subject_today_nm} == 0}
<tr>
	    <td width="97%" class="row1" align="center" colspan="7">
{$lang['no_subjects_today']}
	   </td>
		  </tr>
	   {else}
    {Des::while}{subject_list}
    <tr>
	   <td width="3%" class="row1" align="center">
		  <img src="{$subject_list['icon']}" alt="" />
	   </td>
	   <td width="30%" class="row2">
<?php $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['title'] = $PowerBB->functions->CleanVariable($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['title'],'html'); ?>
<?php $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['title'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['title']); ?>
		  <a href="index.php?page=topic&show=1&id={$subject_list['id']}{$password}">
			 {$subject_list['title']}
		  </a>
		  {if {$subject_list['close']}}
		  {$lang['subject_close']}
		  {/if}
		  <br />
		  <font class="small">{$subject_list['subject_describe']}</font>
	   </td>
	   <td width="20%" class="row1" align="center">
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['writer']);?>
		  <br />
		  <span class="smallfont">
		  {$subject_list['write_date']}
		  </span>
	   </td>
	   <td width="4%" class="row2" align="center">
		  {$subject_list['reply_number']}
	   </td>
	   <td width="4%" class="row1" align="center">
		  {$subject_list['visitor']}
	   </td>
	   <td width="15%" class="row2" align="center">
		  {if {$subject_list['reply_number']} <= 0}
		  {$lang['no_replys']}
		  {else}
{if {$subject_list['last_replier']} == ''}
{$lang['Guest_']}
{else}
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['last_replier']);?>
{/if}
<br />
<span class="smallfont">
		  {$subject_list['reply_date']}
				</span>
		  {/if}
	   </td>
	   <td width="25%" class="row1" align="center">
<?php

		$section_id = $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['section'];
	   $GetForum = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->table['section'] . " WHERE id = '$section_id'");
	   $Forum = @mysql_fetch_array($GetForum);
	   $Forum_title = $Forum['title'];
	   $Forum_id = $Forum['id'];
?>
		  {if {$_CONF['info_row']['rewriterule']} == '1'}
				<a href="f<?php echo $Forum_id; ?>.html"><?php echo $Forum_title; ?></a>
				{else}
				    <a href="index.php?page=forum&show=1&id=<?php echo $Forum_id; ?>"><?php echo $Forum_title; ?></a>
				{/if}
	   </td>
    </tr>
{/Des::while}
    {/if} 
</table>
    <table border="0" width="95%" border="0"  cellspacing="0" style="border-collapse: collapse">
    <tr>
<td align="left">{$pager}</td>
    </tr>
</table>
</div>
</div>
<div class="foot-body">
<div class="foot-right"></div>
<div class="foot-left"></div>
<div class="foot-center">
</div>
</div>

<br />
{template}jump_forums_list{/template}
<br />
<br />
<br />

الذى قمت بالتعديل علية وهذة كود الcss الخاص بالتطاير

CODE

.hed-body
{
    background-image: url(http://i48.servimg.com/u/f48/11/58/90/14/eiaa-u14.png);
    background-repeat: repeat-x;
    height: 61px;
    text-align: center;
}

.hed-right
{
    background-image: url(http://i44.servimg.com/u/f44/17/54/70/62/egy10.png);
    background-repeat: no-repeat;
    float: right;
    height: 61px;
    width: 200px;
}

.hed-left
{
    background-image: url(http://i44.servimg.com/u/f44/17/54/70/62/egy10.png);
    background-repeat: no-repeat;
    float: left;
    height: 61px;
    width: 260px;
}

.foot-body
{
    background-image: url(http://i48.servimg.com/u/f48/11/58/90/14/eiaa-u19.png);
    background-repeat: repeat-x;
    height: 30px;
}

.foot-right
{
    background-image: url(http://i44.servimg.com/u/f44/17/54/70/62/eiaa-u13.png);
    background-repeat: no-repeat;
    float: right;
    height: 30px;
    width: 39px;
}

.foot-left
{
    background-image: url(http://i44.servimg.com/u/f44/17/54/70/62/eiaa-u11.png);
    background-repeat: no-repeat;
    float: left;
    height: 30px;
    width: 219px;
}

.cont-body
{
    background: Transparent;
}

.cont-right
{
    background-image: url(http://i44.servimg.com/u/f44/17/54/70/62/eiaa-u14.png);
    background-repeat: repeat-y;
    background-position: right;
}

.cont-left
{
    background-image: url(http://i48.servimg.com/u/f48/11/58/90/14/eiaa-u16.png);
    background-repeat: repeat-y;
    background-position: left;
    padding-left: 37px;
    padding-right: 40px;
}

ارجو من اى شخص المساعدة

اقتبـاس ،،
السلام عليكم ورحمة الله وبركاته،،

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

Copyright © 2009-2024 PBBoard® Solutions. All Rights Reserved