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: Show Media X - X  (Read 4608 times)

0 Members and 1 Guest are viewing this topic.

die2nite

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Show Media X - X
« on: July 09, 2007, 05:44:07 am »

Hey,
Sorry for yet another question.  However, is it possible to call let's say file numbers 3-20 for a certain album.  I imagine this would be done by using LastAddedMediaFrom, however I'm not sure what parameter to set.  I'm asking this because I wish to basically reshow an entire album on my webpage however I do not want a page that is going to be extremely long and would like to divide it into a few pages.  So for instance the first page would show files 1-20, the second page 21-40, and so on.  Is this possible?

Thanks,
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Show Media X - X
« Reply #1 on: July 09, 2007, 10:41:24 pm »

Hey,
Sorry for yet another question.  However, is it possible to call let's say file numbers 3-20 for a certain album.  I imagine this would be done by using LastAddedMediaFrom, however I'm not sure what parameter to set.  I'm asking this because I wish to basically reshow an entire album on my webpage however I do not want a page that is going to be extremely long and would like to divide it into a few pages.  So for instance the first page would show files 1-20, the second page 21-40, and so on.  Is this possible?

Thanks,

I don't think there is anything built into cpmfetch that will let you do that.

If you have a good level of PHP experience I can tell you what I think the best way to craft a request like that would be...

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

die2nite

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Show Media X - X
« Reply #2 on: July 09, 2007, 11:44:50 pm »

I don't think there is anything built into cpmfetch that will let you do that.

If you have a good level of PHP experience I can tell you what I think the best way to craft a request like that would be...



Would you mind doing that?
Logged

die2nite

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Show Media X - X
« Reply #3 on: July 20, 2007, 06:29:42 am »

Hey Vuud, any luck on this?
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Show Media X - X
« Reply #4 on: July 20, 2007, 08:42:05 pm »

Hey Vuud, any luck on this?

I've not done anything with it yet - to be honest it slipped my mind in all the chaos besieging my meager existence.

But okay, here is what I would do...

Create a new php class by extending cpmfetch.php

Duplicate the cpmfetch function that you call normally (but change the name a bit)

Duplicate the cpmfetch_dao function that the above function calls.

Add parameters for start and count

Modify the functions to take those, then add them into the SQL crafted in the function

Does this make sense?

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.