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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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