Disable PICINFO for non registered users Disable PICINFO for non registered users
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Disable PICINFO for non registered users

Started by Vinicius Machado, February 16, 2010, 02:03:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vinicius Machado

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

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Vinicius Machado

Sorry, I fogrgot that.

www.viniciusmachado.com/crisevini/album

user: tester
password: tester123

Nibbler

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";

}

Vinicius Machado


Joachim Müller

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