I tried doing this several ways.
Here is the original:
function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
global $HTTP_COOKIE_VARS, $CONFIG;
starttable();
echo $nav_menu;
endtable();
starttable();
echo $picture;
endtable();
if ($CONFIG['display_film_strip'] == 1) {
echo $film_strip;
}
starttable();
echo $votes;
endtable();
$picinfo = isset($HTTP_COOKIE_VARS['picinfo']) ? $HTTP_COOKIE_VARS['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
starttable();
echo $pic_info;
endtable();
echo "</div>\n";
starttable();
echo $comments;
endtable();
}
Here is one of my attempts.
function theme_display_image($nav_menu, $picture, $pic_info, $votes, $comments, $film_strip)
{
global $HTTP_COOKIE_VARS, $CONFIG;
starttable();
echo $nav_menu;
endtable();
starttable();
echo $picture;
endtable();
if ($CONFIG['display_film_strip'] == 1) {
echo $film_strip;
}
$picinfo = isset($HTTP_COOKIE_VARS['picinfo']) ? $HTTP_COOKIE_VARS['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
starttable();
echo $pic_info;
endtable();
echo "</div>\n";
starttable();
echo $votes;
endtable();
starttable();
echo $comments;
endtable();
}
It does swap these two however, this button (https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.jernbane.net%2Fgalleri%2Fimages%2Finfo.gif&hash=6b7e7ad3d58a2593d4da3f446723adc47eec8d27) will the hide the voting section.
Obviously I don't understand much PHP. So that's why I cant see how that is possible. After the function of this button clearly links to the picture info: onClick="blocking('picinfo','yes', 'block');
Weird....
\
Laurenz