Advanced search  

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]

Pages: [1]   Go Down

Author Topic: NO "add to favorites" for anyone but me  (Read 5603 times)

0 Members and 1 Guest are viewing this topic.

grizel

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
NO "add to favorites" for anyone but me
« 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.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: NO "add to favorites" for anyone but me
« Reply #1 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.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

grizel

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: NO "add to favorites" for anyone but me
« Reply #2 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?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: NO "add to favorites" for anyone but me
« Reply #3 on: November 30, 2004, 09:05:33 pm »

Open displayimage.php, and find;
Code: [Select]
$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;
Code: [Select]
//$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>';
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 15 queries.