PlugIn: Add album to fav's - link for users without album-admin-permissions PlugIn: Add album to fav's - link for users without album-admin-permissions
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

PlugIn: Add album to fav's - link for users without album-admin-permissions

Started by j.per, May 11, 2009, 01:20:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

j.per

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  :)

<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>

Joachim Müller

Depends on where that piece of code is uspposed to appear on the page. Post details.