How to fetch images from folders of a logged-in user How to fetch images from folders of a logged-in user
 

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

How to fetch images from folders of a logged-in user

Started by wfs, January 26, 2007, 03:47:25 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

wfs

Hi Vuud,
I must say this again - your cpmfetch script is excellent !!!
I use itin a numbe of ways to fetch images in html pages.

E.g.  I plugged just a line in a javascript and got the images on a rotating cube.
See http://www.photograffs.com/whooooosh.htm.
Just wondering.  I would like to give a registered user the ability to present images on the cube as well.
This can be done I think if I standardise the name of the albums, say albumC1,  albumC2, ....albumC6 (one album for each side of the cube) and use cpmfetch to pull the images from these albums.

My problem is :  how do I ensure that the user pulls only the images from his set of albums, after logging in?

(sorry, I'm still struggling with php and do not know enough to know what to amend.)

Appreciate your comments and help.

Thank you in advance.


vuud

Quote from: wfs on January 26, 2007, 03:47:25 AM
Hi Vuud,
I must say this again - your cpmfetch script is excellent !!!
I use itin a numbe of ways to fetch images in html pages.

E.g.  I plugged just a line in a javascript and got the images on a rotating cube.
See http://www.photograffs.com/whooooosh.htm.
Just wondering.  I would like to give a registered user the ability to present images on the cube as well.
This can be done I think if I standardise the name of the albums, say albumC1,  albumC2, ....albumC6 (one album for each side of the cube) and use cpmfetch to pull the images from these albums.

My problem is :  how do I ensure that the user pulls only the images from his set of albums, after logging in?

(sorry, I'm still struggling with php and do not know enough to know what to amend.)

Appreciate your comments and help.

Thank you in advance.




Oh that is way cool!  Can you tell us here how you did it?  My plan for this year is to add support for a bunch of things like this!

You can always set the owner as part of the source for some calls... this will ensure it draws only from pictures they submitted...

Would that get you there?

Cube is awesome!


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

wfs

Hi Vuud,

Thank you for your reply.

But I'm not sure how to do what you mean "You can always set the owner as part of the source for some calls... this will ensure it draws only from pictures they submitted..."   ???

I need some pointers to get started.

Anyway,  I got the rotating cube script from here: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2959&lngWId=2.   You got to amend the script to point to your image folder.  Somehow the Bhushan script does not allow the images to be pulled out from just one folder  You got to set up 6 folders - one for each cube face.
(Perhaps, there's another way to do this by amending the script but it's beyond me).

Cheers.....


vuud

Quote from: wfs on January 26, 2007, 06:23:35 AM
Hi Vuud,

Thank you for your reply.

But I'm not sure how to do what you mean "You can always set the owner as part of the source for some calls... this will ensure it draws only from pictures they submitted..."   ???

I need some pointers to get started.

Anyway,  I got the rotating cube script from here: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2959&lngWId=2.   You got to amend the script to point to your image folder.  Somehow the Bhushan script does not allow the images to be pulled out from just one folder  You got to set up 6 folders - one for each cube face.
(Perhaps, there's another way to do this by amending the script but it's beyond me).

Cheers.....



I'd look briefly at this page:

http://www.fistfullofcode.com/projects/copperminefetch/manual/ch07s03.html

Then follow it to this page

http://www.fistfullofcode.com/projects/copperminefetch/manual/ch05s02.html

If your running the dev version, some of the parameters may have changed, but this will get you 99% of the way.





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

vuud

Quote from: wfs on January 26, 2007, 06:23:35 AM
Anyway,  I got the rotating cube script from here: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2959&lngWId=2.   You got to amend the script to point to your image folder.  Somehow the Bhushan script does not allow the images to be pulled out from just one folder  You got to set up 6 folders - one for each cube face.
(Perhaps, there's another way to do this by amending the script but it's beyond me).

I took a look at the code and I don't see why it requires different folders... You should be able to pump cpmfetch right into it.

Of course I don't have java on this machine, so I can't test it... but it should...

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

wfs

Thanks Vuud for the advice.

I'll try out your suggestion.

My immediate interest, however, is to find a way to permit a user to select the albums so that the pictures on the cube comes from those albums.

I'm not sure I can do it (with my limited knowledge of PHP, java, etc.).
I will share if I can figure how to do it.

Help from anyone is also appreciated.

Cheers...



vuud

Quote from: wfs on January 29, 2007, 04:03:01 AM
Thanks Vuud for the advice.

I'll try out your suggestion.

My immediate interest, however, is to find a way to permit a user to select the albums so that the pictures on the cube comes from those albums.

I'm not sure I can do it (with my limited knowledge of PHP, java, etc.).
I will share if I can figure how to do it.

Help from anyone is also appreciated.

Cheers...

So someone that is registed at the forum can select what albums they own can be used to display on the cube?  Now would be it one album per side, or just being able to randomly draw from those?

Either way its going to be a bit of work for you.




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