Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: How to get the URL of displayimage.php?album=$1&pos=$2 ?  (Read 4264 times)

0 Members and 1 Guest are viewing this topic.

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
How to get the URL of displayimage.php?album=$1&pos=$2 ?
« on: September 17, 2008, 06:44:35 pm »

Hello
I would like to know what is the sql line to obtain the link of the picture displayimage.php?album=$1&pos=$2
Thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to get the URL of displayimage.php?album=$1&pos=$2 ?
« Reply #1 on: September 17, 2008, 07:02:27 pm »

That's a relative link that doesn't point to a particular image, but just to the position within a particular album. That position may change. You can't come up with a query that represents the URL snippet you posted that points to a particular pic.
Logged

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: How to get the URL of displayimage.php?album=$1&pos=$2 ?
« Reply #2 on: September 17, 2008, 08:14:36 pm »

How can i do ?
This is to have the last uploads, i have recreated a page because the lastup didn't do what i wanted   :-[
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to get the URL of displayimage.php?album=$1&pos=$2 ?
« Reply #3 on: September 17, 2008, 08:23:19 pm »

So your actual question if "how do I create a meta album that actually displays the last upload images instead of the last updated albums"? Is that correct?
Logged

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: How to get the URL of displayimage.php?album=$1&pos=$2 ?
« Reply #4 on: September 17, 2008, 08:58:55 pm »

My question is : i can display now a page with the last picture uploaded.
But when i clic on the title, i dont know what "a href" to put on.
You can see the page i created here
http://www.coloriage-educatif.com/soutien_scolaire_dernieres_fiches.php
All is ok but not the link on the title  :-\
I have done like this because i didn't know how to modify the template for the normal "last upload" to have a result like the link i give to you.
Thanks a lot for your replies
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to get the URL of displayimage.php?album=$1&pos=$2 ?
« Reply #5 on: September 18, 2008, 09:18:15 am »

That's not a coppermine-driven page as far as I can tell.

You're using cpg1.4.10, while the most recent stable release currently is cpg1.4.19, so you're running 9 versions behind. Instead of trying to figure out how to come up with a custom query I suggest that you upgrade asap for security reasons - what good is a custom query page if your gallery get's hacked, especially with kids as target users?
Logged

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: How to get the URL of displayimage.php?album=$1&pos=$2 ?
« Reply #6 on: September 18, 2008, 12:07:40 pm »

thanks i will update it but i dont know how to do with my link problem  :-[
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to get the URL of displayimage.php?album=$1&pos=$2 ?
« Reply #7 on: September 18, 2008, 06:36:22 pm »

What link problem?
Logged

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: How to get the URL of displayimage.php?album=$1&pos=$2 ?
« Reply #8 on: September 21, 2008, 01:20:55 am »

This one   :-\

Quote
But when i clic on the title, i dont know what "a href" to put on.
Logged

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: How to get the URL of displayimage.php?album=$1&pos=$2 ?
« Reply #9 on: September 23, 2008, 10:26:20 am »

nobody can help me ?
all my script is finished, i just have this problem  ???
Logged

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: How to get the URL of displayimage.php?album=$1&pos=$2 ?
« Reply #10 on: September 29, 2008, 10:22:59 pm »

nobody can tell me how can i add a link, or how can i do to modify the lastup thumbnails view (add the category+album name ) ?
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 19 queries.