https://pbboard.info/forums/t16360#79278
وطلبت منك ان تحدد في اي صفحة ترغب باضافته ولم تجبني
لكي نعطيك طريقة تركيبه
وحاولنا نفهمك لكن انت لم تلقي لنا بالاً
الآن في موضوعك هذا عرفنا وأخيراً انك تريد تركيب الكود في صفحة الأقسام
وطريقة تركيبه في صفحة الأقسام هي كالتالي :
افتح قالب : forum_subject_table
وابحث عن :
CODE
<form name="tools_thread" method="post" enctype="multipart/form-data" action="index.php?page=management&subject=1§ion={$SECTION_ID}&operator=tools_thread">
واضف أعلاه :
CODE
<?php $PowerBB->_CONF['template']['colspan'] = $PowerBB->_CONF['template']['colspan']+1; ?>
ثم ابحث عن :
CODE
<td width="75%" class="tcat" align="center" colspan="3">
واستبدله بـ :
CODE
<td width="75%" class="tcat" align="center" colspan="4">
ثم ابحث عن :
CODE
<td width="1%" class="row1" align="center">
<img src="{$review_subject_list['icon']}" alt="" />
</td>
واضف أعلاه :
CODE
<td width="1%" class="row1" align="center">
<?php
$PowerBB->_CONF['template']['while']['review_subject_list'][$this->x_loop]['text'] = $PowerBB->Powerparse->replace($PowerBB->_CONF['template']['while']['review_subject_list'][$this->x_loop]['text']);
$x = 1;
$images = array();
$PowerBB->_CONF['template']['while']['review_subject_list'][$this->x_loop]['text'] = stripslashes($PowerBB->_CONF['template']['while']['review_subject_list'][$this->x_loop]['text']);
preg_match_all('/src=([\'"])?((?(1).*?|\S+))(?(1)\1)/', $PowerBB->_CONF['template']['while']['review_subject_list'][$this->x_loop]['text'], $images);
foreach ($images[2] as $src)
{
if($src)
{
echo '<img border="0" width="55" height="55" src="'.$src.'" alt="'.$PowerBB->_CONF['template']['while']['review_subject_list'][$this->x_loop]['title'].'">';
}
break;
}
if(!preg_match_all('/src=([\'"])?((?(1).*?|\S+))(?(1)\1)/', $PowerBB->_CONF['template']['while']['review_subject_list'][$this->x_loop]['text'], $images))
{
echo '<img border="0" width="55" height="55" src="look/portal/images/traffic_cone.png" alt="'.$PowerBB->_CONF['template']['while']['review_subject_list'][$this->x_loop]['title'].'">';
}
?></td>
ثم ابحث عن :
CODE
<td width="1%" class="row1" align="center">
<img src="{$stick_subject_list['icon']}" alt="" />
</td>
واضف أعلاه :
CODE
<td width="1%" class="row1" align="center">
<?php
$PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['text'] = $PowerBB->Powerparse->replace($PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['text']);
$x = 1;
$images = array();
$PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['text'] = stripslashes($PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['text']);
preg_match_all('/src=([\'"])?((?(1).*?|\S+))(?(1)\1)/', $PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['text'], $images);
foreach ($images[2] as $src)
{
if($src)
{
echo '<img border="0" width="55" height="55" src="'.$src.'" alt="'.$PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['title'].'">';
}
break;
}
if(!preg_match_all('/src=([\'"])?((?(1).*?|\S+))(?(1)\1)/', $PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['text'], $images))
{
echo '<img border="0" width="55" height="55" src="look/portal/images/traffic_cone.png" alt="'.$PowerBB->_CONF['template']['while']['stick_subject_list'][$this->x_loop]['title'].'">';
}
?>
</td>
ثم ابحث عن :
CODE
<td width="1%" class="row1" align="center">
<img src="{$subject_list['icon']}" alt="" />
</td>
واضف أعلاه :
CODE
<td width="1%" class="row1" align="center">
<?php
$PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['text'] = $PowerBB->Powerparse->replace($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['text']);
$x = 1;
$images = array();
$PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['text'] = stripslashes($PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['text']);
preg_match_all('/src=([\'"])?((?(1).*?|\S+))(?(1)\1)/', $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['text'], $images);
foreach ($images[2] as $src)
{
if($src)
{
echo '<img border="0" width="55" height="55" src="'.$src.'" alt="'.$PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['title'].'">';
}
break;
}
if(!preg_match_all('/src=([\'"])?((?(1).*?|\S+))(?(1)\1)/', $PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['text'], $images))
{
echo '<img border="0" width="55" height="55" src="look/portal/images/traffic_cone.png" alt="'.$PowerBB->_CONF['template']['while']['subject_list'][$this->x_loop]['title'].'">';
}
?>
</td>
أنتهى ..
قالب forum_subject_table المعدل الجاهز للأستايل الافتراضي تجده بالمرفقات
بالأضافة لشرح التركيب