ahhh oke, here is a peace of code
PHP Code:
function prepare_output($id = '', $options = array())
{
global $maxcolum, $maxrow, $maxwidth, $maxheight, $page, $vbulletin, $attachmentinfo;
$colum = 0;
$forumids= null;
$output = $pagenav;
$output .= "<br><br>". $vbphrase['AJGattach_Totalpage'] ."".$totalattachments. "<br><table border=1>";
------------------- look above here is vbphrase -------------<- this line is not in the plugin ->-------------------------
while ($post = mysql_fetch_array($attachments))
{
if ($colum == 0) {$output .= "<TR>";}
$attachinfo = fetch_attachment_info($this->profile->userinfo['userid'],$post['attachmentid'], 1);
if ($attachinfo[2] != 1){
$prefix = "width=".($maxwidth-25);} else
{ $prefix = "height=".($maxheight-25);}
$output .= "<td width=".$maxwidth." height=".$maxheight."><center><a target=blank href=attachment.php?attachmentid=".$post['attachmentid']."/>
<img border=0 src=attachment.php?attachmentid=".$post['attachmentid']."&thumb=1 ".$prefix."/>
</a></center></td>" ;
$colum = $colum + 1;
if ($colum == $maxcolum){
$colum = 0;
$output .= "</tr><tr>";
}
}
$output .= "</table>";
$this->block_data['mymodification'] = $output;
}
}