viewMediaByPid - more than one Pid, added in order viewMediaByPid - more than one Pid, added in order
 

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

viewMediaByPid - more than one Pid, added in order

Started by freesouljah, September 18, 2006, 11:43:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

freesouljah

hello again  ;D

I don't know how difficult this will be or if it even possible to do...but its worth a shot to inquire about it anyway...

what I am hoping for is a way to display a changable amount of images by pids in cpmfetch...for instance, I may want to display images 12350 thru 12357 (12350,12351,12352, etc)...so that would be 7 images total...and what I want to have in the cpmfetch code is something like this:


$objCpm->cpm_viewMediaByPidS(12350,12357,$options);


I figured I would ask you first before I spend a bunch of hours fiddling with code trying to see if I could piece something together...

thanks
8)

vuud

Quote from: freesouljah on September 18, 2006, 11:43:53 PM
hello again  ;D

I don't know how difficult this will be or if it even possible to do...but its worth a shot to inquire about it anyway...

what I am hoping for is a way to display a changable amount of images by pids in cpmfetch...for instance, I may want to display images 12350 thru 12357 (12350,12351,12352, etc)...so that would be 7 images total...and what I want to have in the cpmfetch code is something like this:


$objCpm->cpm_viewMediaByPidS(12350,12357,$options);


I figured I would ask you first before I spend a bunch of hours fiddling with code trying to see if I could piece something together...

thanks
8)


There is no way to do this now, but I will add it in.  however the syntax above will not work.  It will more likely be a variation on viewMediaByPid that takes either an integer (as it is now), or an array.

If you were going to roll your own on this for now - I would use the viewByPid to get back the image data (as a result set) - make a few calls and then render it all yourself.

Ouch - it sounded simpler in my head before I wrote it down

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

freesouljah

coolness...at least it is a possibility...although with my scripting knowledge, its going to be quite a learning experience trying to get it up and running...

I am going to try, and we shall see if I can accomplish it...let me know if you do end up coding it up...because you just might beat me to it...



peace

masterfork

I'm sorry for resurrecting such an old topic, but I thought it might be more logical since I am attempting to do the same thing.

I've looked in the code and mediabypid still defaults to one column and one row, so I'm guessing this feature hasn't been implemented yet. But I really don't know what I'm doing and it would take me some time to figure things out, so I turn to my overlords for assistance.

Any news on this?

Thanks!