To whom it may concern:
The latest dev release, 1.1.1 is available for download from the web site.
cpmfetch.fistfullofcode.com < and see the downloads section.
What wonderous stuff is in this iteration... you may ask:
Bugfix for coppermine being installed in the root of a web server - hopefully this fixes a slight bug when coppermine is installed right in the web root
setReturnType([print, html, resultset]) to have functions return rowsets, htmldata or print it
All functions recoded to support setReturnType as much as possibleThese sort of go together. The default behavior for a function called in CoppermineFetch is to print the output. Now, you have the option to call $obj->cpm_setReturnType( type ); to tell it what to return. not everything is supported across all options... see the phpdocs to see which ones are.
Valid types:
print - dumps directly to output
html - returns a string variable containng the html
resultset - returns a mysql result set containing the data that would have been formatted.
Lots of internal changes to make extension easier (aka RSS Feeds) - I've been tinkering with RSS and figured I would try extending in that direction. Its coming along pretty well. There is an example in the cpmfetch directory... Not recommended for use, but if you are good with php you can try it out All these changes have helped the code some, but may also have broken things. if you can test - great!
Added a debug flag in case anything happens out there - right now setting cpm_setDebugMode(true) mostly dumps out sql statements. Primarily for my use.
Added in prototype for java popup windowThis provides a nicer way to display full size images instead of a whole new browser window. Right now it only works if three conditions are met
1) Somewhere in your page you include the cpmfetch.js as an external javascript
<script language="JavaScript" src="./cpmfetch.js"></script>
2) Your imagelink option is set to "large"
3) Your windowtarget option is set to "_blank"
*note* this is still really new, and there is much I do not like about it. So it will be changing, but let me know if you have any suggestions.
Promises broken
I had noted a function for showing the last added albums and categories. I checked and this is just not going to work out. CPM does not track when these were created, and if I start tracking metadata about the data I am going to be more tied to one release. I like to keep it as loose as possible.
Sorry if anyone was thrilled with that idea
So right now, I have on my list still to do: subtitles for images, last comment added with image, limiting the size of an image displayed, category list with images added recently (like the album one), and polish up the javascript popup
Take care, have a nice day