You'll need to edit an entirely different section of theme.php to accomplish that. Undo your previous edit (the section where you modified $template_display_media). Here's the explanation for everyone: edit themes/yourtheme/theme.php, findfunction theme_display_image
and edit as suggested below. If that section doesn't exist in your custom theme, copyfunction theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
global $CONFIG;
$width = $CONFIG['picture_table_width'];
starttable();
echo $nav_menu;
endtable();
starttable();
echo $picture;
endtable();
if ($CONFIG['display_film_strip'] == 1) {
echo $film_strip;
}
echo $votes;
$picinfo = isset($_COOKIE['picinfo']) ? $_COOKIE['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
starttable();
echo $pic_info;
endtable();
echo "</div>\n";
echo "<div id=\"comments\">\n";
echo $comments;
echo "</div>\n";
}
from themes/sample/theme.php into a new line before ?>
of the file themes/yourtheme/theme.php, then edit by adding another table construct that wraps the output with additional columns to the left and right. Here's how this is suppossed to look like:function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
global $CONFIG;
$width = $CONFIG['picture_table_width'];
echo <<< EOT
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="10%">
Your left column advert goes here
</td>
<td valign="top" width="80%">
EOT;
starttable();
echo $nav_menu;
endtable();
starttable();
echo $picture;
endtable();
if ($CONFIG['display_film_strip'] == 1) {
echo $film_strip;
}
echo $votes;
$picinfo = isset($_COOKIE['picinfo']) ? $_COOKIE['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
starttable();
echo $pic_info;
endtable();
echo "</div>\n";
echo "<div id=\"comments\">\n";
echo $comments;
echo "</div>\n";
echo <<< EOT
</td>
<td valign="top" width="10%">
Your right column advert goes here
</td>
</tr>
</table>
EOT;
}
You will have to fine-tune that by adding some CSS properties and finding the values for the column width that matches the desired look, but this should give you the idea.
Attached is the modified file for rokokon. Rename as suggested above.
In the future, try to describe in more detail what you actually want to see accomplished to avoid double effort and misunderstandings.