Show Media X - X Show Media X - X
 

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

Main Menu

Show Media X - X

Started by die2nite, July 09, 2007, 05:44:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

die2nite

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,

vuud

Quote from: die2nite 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,

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...

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

Quote from: vuud on July 09, 2007, 10:41:24 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?

die2nite

Hey Vuud, any luck on this?

vuud

Quote from: die2nite on July 20, 2007, 06:29:42 AM
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?

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