coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: aszasz on December 21, 2004, 11:09:30 PM

Title: how do I link to an individual picture in Coppermine within my PostNuke theme?
Post by: aszasz on December 21, 2004, 11:09:30 PM
I have successfully installed Coppermine (1.3.2) and pnCPG24 and they are working fine.  Coppermine works as a module inside PostNuke.

I would like to create a link to a coppermine picture from elsewhere in my site (from a Content Express page).  I know that I can call the 'raw' coppermine picture like this: http://mysite/cpg132/displayimage.php?pos=-20 and that will display the picture with Coppermine filling the entire browser.  But what's the URL to view a coppermine picture but still have it be wrapped up in my PostNuke theme?

Thanks in advance for any help.
Title: Re: how do I link to an individual picture in Coppermine within my PostNuke theme?
Post by: casNuy on December 23, 2004, 10:54:30 PM
That is fairly simple, within Coppermine right mouse click on the picture you would like to embed  and check the properties. There is your link.

Cas
Title: Re: how do I link to an individual picture in Coppermine within my PostNuke theme?
Post by: aszasz on December 27, 2004, 08:29:16 PM
Thanks for the reply.  That's not exactly what I wanted.  When I get the link directly from the photo (as you suggested), the photo opens in a blank browser (not wrapped in Coppermine and not wrapped in my PostNuke site theme).  I was looking for a link that, when pressed, opens the photo inside my PostNuke theme and inside the Coppermine gallery.

The problem seems to be all of the permission-checking that's going on in the URL...

Any ideas?
???
Title: Re: how do I link to an individual picture in Coppermine within my PostNuke theme?
Post by: casNuy on December 27, 2004, 09:04:18 PM
In that case use something like :
http://Postnuke-home/index.php?module=pnCPG&func=view&soort=1&album=74&pos=5175

cas
Title: Re: how do I link to an individual picture in Coppermine within my PostNuke theme?
Post by: aszasz on January 06, 2005, 01:42:08 AM
Thanks, cas.  Worked like a charm! 

Two more detailed questions along the same lines.

1. How do I link to a Category (for example cat=7) using a similar call?

2. How do I link to an Album within a category (for example album=13) using a similar call?

I tried all permutations I could think of on this link:
http://Postnuke-home/index.php?module=pnCPG&func=view&soort=1&album=74&pos=5175

like just removing the 'pos' to try to get to the album.  But it didn't work.

Any hints?

Thanks in advance,
asz
Title: Re: how do I link to an individual picture in Coppermine within my PostNuke theme?
Post by: casNuy on January 07, 2005, 01:14:45 AM
1. http://postnuke-Home/index.php?module=pnCPG&func=view&soort=2&album=107

2. http://postnuke-Home/index.php?module=pnCPG&func=main&category=3

Cas