Advanced search  

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]

Pages: [1]   Go Down

Author Topic: right link for an "Add to Favourites" image  (Read 3113 times)

0 Members and 1 Guest are viewing this topic.

arlon

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
right link for an "Add to Favourites" image
« 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)
 
I ended up with a code like this in theme.php
Code: [Select]
             <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?
« Last Edit: November 07, 2006, 06:24:18 am by Sami »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: right link for an "Add to Favourites" image
« Reply #1 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:
Code: [Select]
{PID} => $pid,

if you don't have that function on your theme copy it from themes/sample/theme.php
Logged
‍I don't answer to PM with support question
Please post your issue to related board

arlon

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: right link for an "Add to Favourites" image
« Reply #2 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?) :)
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.