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: "View more topics" Link on ecard  (Read 5336 times)

0 Members and 1 Guest are viewing this topic.

superz

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 2
"View more topics" Link on ecard
« 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 :

Code: [Select]
{VIEW_MORE_TGT} = URL to the gallery index
The code that I want :

Code: [Select]
{VIEW_MORE_TGT} = the url from which the ecard was launched.
Thanks for any help on this.

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.pupspot.com%2Fimages%2Fspecial%2Fthinkdog.png&hash=f2d0545f8ebe64bb0a6f639a3979704f5ff484b7)
« Last Edit: April 04, 2006, 01:48:51 am by TranzNDance »
Logged
Life is short! 
Live it up!

Nibbler

  • Guest
Re: "View more topics" Link on ecard
« Reply #1 on: April 03, 2006, 07:56:23 pm »

Edit ecard.php from

Code: [Select]
'{VIEW_MORE_TGT}' => $CONFIG['ecards_more_pic_target'],
to

Code: [Select]
'{VIEW_MORE_TGT}' => "{$gallery_url_prefix}displayimage.php?pos=-$pid",
Logged

Nibbler

  • Guest
Re: "View more topics" Link on ecard
« Reply #2 on: April 03, 2006, 07:58:35 pm »

Or in your theme.php, change

Code: [Select]
{VIEW_MORE_TGT}
Code: [Select]
{VIEW_MORE_TGT}displayimage.php?pos=-{PID}
Which would be preferable.
Logged

superz

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 2
Re: "View more topics" Link on ecard
« Reply #3 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. 

Code: [Select]
'{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
Logged
Life is short! 
Live it up!

reisumees

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: "View more topics" Link on ecard
« Reply #4 on: April 06, 2006, 10:32:32 am »

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. 

Code: [Select]
'{VIEW_MORE_TGT}' => $album, '{VIEW_MORE_TGT2}' => $pos,
It nailed it!
Hallo every one fiel the www.rendiautorent.ee
Logged
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 19 queries.