How can I disable the PICINFO just for non registered users ?
I know almost nothing in PHP. But I've tried a lot of ting like copying other codes and testing in different ways but I Can't change this.
Thx
Post a link. Board rules / Forum policies: Post Links (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616)
Sorry, I fogrgot that.
www.viniciusmachado.com/crisevini/album
user: tester
password: tester123
Add the following code to your custom theme's theme.php
function 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;
if (USER_ID) {
$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";
}
Thx buddy. Thats it ! Issue solved !
Quote from: Vinicius Machado on February 16, 2010, 05:54:09 PM
Sorry, I fogrgot that.
You always "forget" that. You have been around long enough and supporters had to remind you of board rules countless times already, so I'm no longer willing to accept your apologies. If you fail to respect board rules in the future, you'll get banned. Locking