coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: grizel on November 30, 2004, 08:34:50 AM

Title: NO "add to favorites" for anyone but me
Post by: grizel on November 30, 2004, 08:34:50 AM
How do i turn off the option for anyone and their uncle (logged in or not) to add pictures as favorites? I want that option OFF or only avavible to me, the admin.
Title: Re: NO "add to favorites" for anyone but me
Post by: Casper on November 30, 2004, 12:07:23 PM
You can turn off the ability to download the favourites as a zip, in the config settings for 'general settings'.

The actual act of 'add to favourites' makes no change to the gallery, it just amends the cookie on the users machine.  This will change in the next version, where it is in the database, but it still only affects that user.
Title: Re: NO "add to favorites" for anyone but me
Post by: grizel on November 30, 2004, 05:12:59 PM
i have the zip option off, but can you tell me which strip of code where I would disable how?
Title: Re: NO "add to favorites" for anyone but me
Post by: Casper on November 30, 2004, 09:05:33 PM
Open displayimage.php, and find;
$info[$lang_picinfo['addFavPhrase']] = "<a href=\"addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . "\">" . $lang_picinfo['addFav'] . '</a>';
    } else {
        $info[$lang_picinfo['addFavPhrase']] = "<a href=\"addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . "\">" . $lang_picinfo['remFav'] . '</a>';


Change it to;
//$info[$lang_picinfo['addFavPhrase']] = "<a href=\"addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . "\">" . $lang_picinfo['addFav'] . '</a>';
    } else {
        //$info[$lang_picinfo['addFavPhrase']] = "<a href=\"addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . "\">" . $lang_picinfo['remFav'] . '</a>';