CODE
<?php
// Get the attachment imges information
$AttachList = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->table['attach'] . " WHERE pm_id = 0 ORDER BY id DESC LIMIT 10");
while ($Attach_List = $PowerBB->DB->sql_fetch_array($AttachList))
{
if ($Attach_List['extension'] == ('jpeg')
or $Attach_List['extension'] == ('jpg')
or $Attach_List['extension'] == ('gif')
or $Attach_List['extension'] == ('png')
or $Attach_List['extension'] == ('bmp'))
{
?>
<fieldset style="float:right; width:110px;height:110pxpx;text-align:center;border-radius: 5px;-webkit-border-radius: 5px;-moz-border-radius: 5px;-khtml-border-radius: 5px;">
<legend>{$lang['image_attached']}</legend>
<a href="<?php echo $Attach_List['filepath']; ?>" rel="facebox"><img src="<?php echo $Attach_List['filepath']; ?>" border="0" alt="" class="UserPhoto" width="150px" height="150px" onload="ResizeAv(this)" /></a>
</fieldset>
<?php
}
}
?>
ضعه في اي قالب وسيعمل