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: PlugIn: Add album to fav's - link for users without album-admin-permissions  (Read 4498 times)

0 Members and 1 Guest are viewing this topic.

j.per

  • Coppermine newbie
  • Offline Offline
  • Posts: 1

The PlugIn album_addfav offers the possibility to add a whole album with one click to the favorites. So the user does not has to add every particular photo to download a ZIP-file.
In the standard configuration the plugin shows up in the favorites-area, where it makes no sense for me (I don't understand why, but that's however not the point).
I tried then integrating the neccessary PHP-Code into my custom theme.php. But I just get it working in the HTML template for ALBUM admin menu, otherwise the {ALBUM_ID} is not translated into the real Album-ID.
The users I have, just have the right to see a special album(s), so there is no album-admin menu (and that is okay). So what do I have to do with the code to get it working in the template for the album list in theme.php? Code is below, any help welcome  :)

Code: [Select]
<a href="index.php?file=album_addfav/album_addfav&album={ALBUM_ID}" title="Add album to favorites"><img src="plugins/album_addfav/favorites.png" border="0" /></a>
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

Depends on where that piece of code is uspposed to appear on the page. Post details.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 19 queries.