Advanced search  

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

Pages: [1]   Go Down

Author Topic: PlugIn: Add album to fav's - link for users without album-admin-permissions  (Read 4650 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.018 seconds with 20 queries.