"View more topics" Link on ecard "View more topics" Link on ecard
 

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]

Main Menu

"View more topics" Link on ecard

Started by superz, April 03, 2006, 07:44:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

superz

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)
Life is short! 
Live it up!

Nibbler

Edit ecard.php from

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

to

'{VIEW_MORE_TGT}' => "{$gallery_url_prefix}displayimage.php?pos=-$pid",

Nibbler

Or in your theme.php, change

{VIEW_MORE_TGT}

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

Which would be preferable.

superz

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
Life is short! 
Live it up!

reisumees

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