bugzlitey
08-09-2005, 11:24 AM
So I basically wrapped a table around my latest images to give it more of an integrated feel and the concept works but somehow the code for the table is misplaced and it's causing layout errors, not to mention it only looks as it should if I set the plugin to display one image. :angry:
I don't what should be moved around, but here is the code I have.
if($curcol == 0)
* * *{
* * * *echo '<table width="131" height="112" border="0" cellpadding="0" cellspacing="0">
* * * * * * * *<tr>
* * * * * * * * *<td width="9" height="8"><img src="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_08.jpg" width="9" height="8" alt=""></td>
* * * * * * * * *<td width="100%" height="8" background="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_09.jpg"></td>
* * * * * * * * <td width="8" height="8"><img src="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_11.jpg" width="8" height="8" alt=""></td>
* * * * * * * </tr>
* * * * * * * <tr>
* * * * * * * * <td width="9" height="100%" background="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_17.jpg"></td>';
* * *}
* * *echo '<td bgcolor="B53031" style="padding-bottom: 0px; padding-right: 1px;">';
* * *if($settings['Display Image Name'])
* * * *echo $link . $image['title'] . '</a><br />';
* * *if($settings['Display Author Name'])
* * * *echo $language['by'] . ' ' . $image['author'] . '<br />';
* * *if($settings['Display Thumbnail'])
* * * *echo $link . "<img src=\"plugins/p17_image_gallery/images/tb_".$image['filename']."\" /></a>";
*
*
* * *echo '</td>
* * * * * *<td width="8" height="100%" background="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_18.jpg"></td>
* * * * </tr>
* * * * *<tr>
* * * * * *<td width="9" height="11"><img src="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_19.jpg" width="9" height="11" alt=""></td>
* * * * * *<td width="100%" height="11" background="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_20.jpg"></td>
* * * * * *<td width="8" height="11"><img src="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_22.jpg" width="8" height="11" alt=""></td>
* * * * </tr>
</table>';
* * *$curcol++;
* * *if($curcol == $settings['Images per Row'])
* * *{
* * * *echo '</tr>';
* * * *$curcol = 0;
examples (http://www.macndabox.com/skins/hotGrey/images/imageGallery.jpg)
any help would be greatly appreciated... :blink:
I don't what should be moved around, but here is the code I have.
if($curcol == 0)
* * *{
* * * *echo '<table width="131" height="112" border="0" cellpadding="0" cellspacing="0">
* * * * * * * *<tr>
* * * * * * * * *<td width="9" height="8"><img src="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_08.jpg" width="9" height="8" alt=""></td>
* * * * * * * * *<td width="100%" height="8" background="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_09.jpg"></td>
* * * * * * * * <td width="8" height="8"><img src="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_11.jpg" width="8" height="8" alt=""></td>
* * * * * * * </tr>
* * * * * * * <tr>
* * * * * * * * <td width="9" height="100%" background="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_17.jpg"></td>';
* * *}
* * *echo '<td bgcolor="B53031" style="padding-bottom: 0px; padding-right: 1px;">';
* * *if($settings['Display Image Name'])
* * * *echo $link . $image['title'] . '</a><br />';
* * *if($settings['Display Author Name'])
* * * *echo $language['by'] . ' ' . $image['author'] . '<br />';
* * *if($settings['Display Thumbnail'])
* * * *echo $link . "<img src=\"plugins/p17_image_gallery/images/tb_".$image['filename']."\" /></a>";
*
*
* * *echo '</td>
* * * * * *<td width="8" height="100%" background="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_18.jpg"></td>
* * * * </tr>
* * * * *<tr>
* * * * * *<td width="9" height="11"><img src="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_19.jpg" width="9" height="11" alt=""></td>
* * * * * *<td width="100%" height="11" background="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_20.jpg"></td>
* * * * * *<td width="8" height="11"><img src="http://www.macndabox.com/skins/hotGrey/images/otherDesigns_22.jpg" width="8" height="11" alt=""></td>
* * * * </tr>
</table>';
* * *$curcol++;
* * *if($curcol == $settings['Images per Row'])
* * *{
* * * *echo '</tr>';
* * * *$curcol = 0;
examples (http://www.macndabox.com/skins/hotGrey/images/imageGallery.jpg)
any help would be greatly appreciated... :blink: