How to "add on" to cfimageget script How to "add on" to cfimageget script
 

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 "add on" to cfimageget script

Started by wfs, November 07, 2006, 10:38:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wfs

Hi Vuud,

I'm trying to get my cfimageget script to work.  It's wonderful. I can pull out the pics with it.

I see this in the docs:

* Usage:  Call this file from an img tag and it will return graphic data to you
*
* cfimageget.php - will return random from anywhere in the gallery
* cfimageget.php?category=1 - will return random image from category 1
* cfimageget.php?album=1 - will return a random image from album 1
* cfimageget.php?album=1 - will return a random image from album 1
*
* Other options to add on
* size=[thumb|int|large]
* cmd=[last|random]

My question :  how do you add on the other options like size ?  I want the "large" size pics but I keep getting the thumbnails.

I'm know very little of PHP (but I'm trying veryhard to learn) and I've been trying various ways to get it work with no success.

Can you explain exactly how I can "add on" the options, like size, to the script.
Is it something like this " cfimageget.php?album=35size=large " ?  (see what I mean ).

thanks - appreciate your help.

vuud

Quote from: wfs on November 07, 2006, 10:38:53 AM

Can you explain exactly how I can "add on" the options, like size, to the script.
Is it something like this " cfimageget.php?album=35size=large " ?  (see what I mean ).


It's not PHP, its an HTML, or HTTP question (Not sure where the boundry falls - a few more coffees and I will remember).

Anyway, when you submit parameters, there are three special characters....

?
=
&

? - This seperates your URL (address to your page) from the data you are submitting. 
http://www.mysite.com/cfimageget.php?

= - This seperates your variable name from the data 
http://www.mysite.com/cfimageget.php?category=1

& - This seperates your different variables from each other
http://www.mysite.com/cfimageget.php?category=1&size=large&cmd=random

Hope that answers your question, and leads you to understanding.


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

Thank you so much Vuud !

One more lesson to my understanding of PHP !

You're a great help !

vuud

Quote from: wfs on November 08, 2006, 01:58:15 AM
Thank you so much Vuud !

One more lesson to my understanding of PHP !

You're a great help !

No problem... if you look at the URL's while you are browsing this forum, you will see it also.  there are two other ones that I forgot to mention:

@
#

@ is for specifying user information I think
# reflects to an anchor within a given page

But anyway... good luck
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