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

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

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