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.
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.
i have the zip option off, but can you tell me which strip of code where I would disable how?
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>';