How can I skip displayimage.php page? How can I skip displayimage.php page?
 

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

How can I skip displayimage.php page?

Started by sgtpepper, February 20, 2004, 09:58:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sgtpepper

Hi,

I am using Coppermine...only for the e-card function. I would like to open an album...and skip the displayimage.php and go directly to the e-card.

How can I do this?

Thank you in advance

Casper

You cannot skip the displayimage.php entirely, as this is where the album thums are shown, but you should be able to skip the intermediate and full size display, and go straight to the ecard page.

It will require some coding changes to the displayimage.php, and probably a bit to ecard.php as well.  Don't know if anyone has done this before.

ps, moving this to the support forum.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

sgtpepper

I am a little confused. I thought that the thumbnails are created in thumbnails.php.

Basically, I want to click on a thumbnail and go directly to the E-Card section skipping the displayimage.php

If you can let me know where the code needs to be modified...that would be very helpful. I am not sure where.

At first I was thinking maybe I could 'hardcode' the ecard.php url so that when they clicked on a thumbnail it went directly to the ecard.php page.

Then, I discoverd I cant get the PID when I am on the thumbnail.php page. Any ideas that anyone has would be very appreciated.

Casper

Sorry, you are correct of course, I think i was tired when I replied to your post  :oops: .
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

sgtpepper

Any idea on how I can accomplish this? Would I have to try to construct a 'creative' query with a join statement or something?

Casper

Sorry, I don't know how or where to change the thumbs to link to the ecard, instead of the displayimage.

Perhaps one of the coders on here will be able to help.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

hyperion

This issue is dealt with in each theme.php file.

Search for:

'{LINK_TGT}' => "thumbnails.php?album={$thumb['aid']}",

That is the first of three link targets for three different situations within the theme_display_thumbnails function.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

sgtpepper

So, to go from the thumbnail.php to the ecard.php directly how do I change the link? It looks like I need to somehow add the PID in the url. How can this be done?