تفضل الكود :
CODE
<?php
$PowerBB->_CONF['template']['while']['Subject'][$this->x_loop]['text'] = $PowerBB->Powerparse->replace($PowerBB->_CONF['template']['while']['Subject'][$this->x_loop]['text']);
$x = 1;
$images = array();
$PowerBB->_CONF['template']['while']['Subject'][$this->x_loop]['text'] = stripslashes($PowerBB->_CONF['template']['while']['Subject'][$this->x_loop]['text']);
preg_match_all('/src=([\\'"])?((?(1).*?|\\S+))(?(1)\\1)/', $PowerBB->_CONF['template']['while']['Subject'][$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'][$this->x_loop]['title'].'">';
}
break;
}
if(!preg_match_all('/src=([\\'"])?((?(1).*?|\\S+))(?(1)\\1)/', $PowerBB->_CONF['template']['while']['Subject'][$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'][$this->x_loop]['title'].'">';
}
?>
لكن في اي صفحة ترغب باضافته
الأقسام
المواضيع
الرئيسية
صفحة اخرى يفضل ان تذكرها ..
لكي نرشدك لطريقة ربطه بمتغير نص الموضوع فطريقة ربطه تختلف من صفحة لأخرى
ينقل الموضوع لقسم طلبات وحلول الملحقات البرمجية