coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 ecards & email => Topic started by: superz on April 03, 2006, 07:44:20 PM

Title: "View more topics" Link on ecard
Post by: superz on April 03, 2006, 07:44:20 PM
I have been searching for days for a way to make the ecard "view more topics" target to point to the url from which the ecard was initialized rather than the main photo gallery.

I have already searched this forum heavily and have not found a direct answer for this.

This is what I am looking for :

Current code :

{VIEW_MORE_TGT} = URL to the gallery index

The code that I want :

{VIEW_MORE_TGT} = the url from which the ecard was launched.

Thanks for any help on this.

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.pupspot.com%2Fimages%2Fspecial%2Fthinkdog.png&hash=f2d0545f8ebe64bb0a6f639a3979704f5ff484b7)
Title: Re: "View more topics" Link on ecard
Post by: Nibbler on April 03, 2006, 07:56:23 PM
Edit ecard.php from

'{VIEW_MORE_TGT}' => $CONFIG['ecards_more_pic_target'],

to

'{VIEW_MORE_TGT}' => "{$gallery_url_prefix}displayimage.php?pos=-$pid",
Title: Re: "View more topics" Link on ecard
Post by: Nibbler on April 03, 2006, 07:58:35 PM
Or in your theme.php, change

{VIEW_MORE_TGT}

{VIEW_MORE_TGT}displayimage.php?pos=-{PID}

Which would be preferable.
Title: Re: "View more topics" Link on ecard
Post by: superz on April 03, 2006, 11:19:37 PM
Appreciate it !! 

I tried it and came up with "access denied"

So I did this instead :


I entered the URL exactly as it appeared in the browser into the a href and stuck these in the right sockets. 

'{VIEW_MORE_TGT}' => $album, '{VIEW_MORE_TGT2}' => $pos,

It nailed it!

I am sure there is probably an easier method, but I have only been working with PHP for about a month so I am still really green!

Appreciate your quick response and support which is an uncommon trait in most support communities.

Good Day & Thanks

superz
Title: Re: "View more topics" Link on ecard
Post by: reisumees on April 06, 2006, 10:32:32 AM
Quote from: superz on April 03, 2006, 11:19:37 PM
Appreciate it !! 

I tried it and came up with "access denied"

So I did this instead :


I entered the URL exactly as it appeared in the browser into the a href and stuck these in the right sockets. 

'{VIEW_MORE_TGT}' => $album, '{VIEW_MORE_TGT2}' => $pos,

It nailed it!
Hallo every one fiel the www.rendiautorent.ee