Fetching image attributes (author, URL to gallery, title)? Fetching image attributes (author, URL to gallery, title)?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Fetching image attributes (author, URL to gallery, title)?

Started by Slideshow Bob, September 05, 2006, 05:36:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Slideshow Bob

Are there methods to return the author, gallery URL, or title of an image?

Here's a call to get an image name:   
    $imagename = $objCpm->getImageToUse($row['pFilepath'], $row['pFilename'] ,"normal_");

might there be corresponding functions to use to get the other info?

vuud

Quote from: Slideshow Bob on September 05, 2006, 05:36:23 AM
Are there methods to return the author, gallery URL, or title of an image?

Here's a call to get an image name:   
    $imagename = $objCpm->getImageToUse($row['pFilepath'], $row['pFilename'] ,"normal_");

might there be corresponding functions to use to get the other info?


I *think* you can call it something like this:

$string = $objCpm->createDescription("%f",$row);

The result would be returned to the string.  the %f you would replace with the codes to get whatever you want.  See subtitles in the documentation. 

Hope that works

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

Slideshow Bob

Once again, you are the man!  :)  Thanks!!

Are there parameters to get the custom fields?

cgc0202

Did it work for you Bob? Can you please share the complete script?  And, how the actual description that is stored in the database of CPG can be included also.

CGC