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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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