right link for an "Add to Favourites" image right link for an "Add to Favourites" image
 

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]

Main Menu

right link for an "Add to Favourites" image

Started by arlon, November 06, 2006, 10:59:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

arlon

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)

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?

Sami

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
‍I don't answer to PM with support question
Please post your issue to related board

arlon

it took me a while to understand the thing but YES, it works!

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