Welcome to the forums!
First, add "$oddRow=1;" in this position:
Code:
$oddRow=1;
# loop and display all that have been fetched from the DB
while($photo = $vbulletin->db->fetch_array($getphotos))
Then, here:
Code:
# Display image cell
$html .= '
<tr>
<td width="100" align="center" class="pmain2">
<a href="' . $this->_zoints->external->url() . 'imagehosting/image' . $photo['fileid'] . '.html" target="_blank"">
<img src="' . $this->_zoints->external->url() . 'imagehosting/images/' . $photo['userid'] . '/small/' . $photo['filename'] . '" />
</a>
</td>
';# Display the image details?
if(!$content['details'])
{
$html .= ' ';
}
$html .= '</tr>';
}
$html .= '</table>
Change to:
Code:
# Display image cell
if ($oddRow) {
$html .= '<tr>';
$oddRow=0;
}
else {
$oddRow=1;
}
$html .= '
<td width="100" align="center" class="pmain2">
<a href="' . $this->_zoints->external->url() . 'imagehosting/image' . $photo['fileid'] . '.html" target="_blank"">
<img src="' . $this->_zoints->external->url() . 'imagehosting/images/' . $photo['userid'] . '/small/' . $photo['filename'] . '" />
</a>
</td>
';
#TAKE THIS SECTION OUT. IT DOESN'T DO ANYTHING FOR US:
# Display the image details?
#if(!$content['details'])
#{
#$html .= ' ';
#}
#$html .= '</tr>';
}
$html .= '</table>
That will give you two photos, side by side. You'll need to work $oddRow a little differently for more than 2 pictures on a row.