coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: arlon on November 06, 2006, 10:59:39 AM

Title: right link for an "Add to Favourites" image
Post by: arlon on November 06, 2006, 10:59:39 AM
Sorry to put another question :-( but I can't seem to sort this out either

so.. I've been trying to add an "add to favourites" image close to the "ecard" and "info ones..
(EXAMPLE (http://www.agfx.eu/_/displayimage.php?album=toprated&cat=3&pos=0))

I ended up with a code like this in theme.php
             <td align="center" valign="middle" class="navmenu" width="48px">
<a href="addfav.php?pid={PID}"> <img src="/images/addfav.gif" border="0" alt="Add image to your favourites"> </a>
</td>


Online it doesn't seem to get the "picture ID". What am I missing?
Title: Re: right link for an "Add to Favourites" image
Post by: Sami on November 06, 2006, 10:06:42 PM
after that
you need to define {PID} on theme_html_img_nav_menu function , under $params array something like this:

{PID} => $pid,


if you don't have that function on your theme copy it from themes/sample/theme.php
Title: Re: right link for an "Add to Favourites" image
Post by: arlon on November 06, 2006, 11:46:41 PM
it took me a while to understand the thing but YES, it works!

Thanks again (what would I do without this community?) :)