forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: j.per on May 11, 2009, 01:20:25 pm

Title: PlugIn: Add album to fav's - link for users without album-admin-permissions
Post by: j.per on May 11, 2009, 01:20:25 pm
The PlugIn album_addfav (http://forum.coppermine-gallery.net/index.php/topic,59203.html) 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>
Title: Re: PlugIn: Add album to fav's - link for users without album-admin-permissions
Post by: Joachim Müller on May 11, 2009, 09:30:01 pm
Depends on where that piece of code is uspposed to appear on the page. Post details.