coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: jlove on September 01, 2007, 09:17:28 PM

Title: Can't display stats
Post by: jlove on September 01, 2007, 09:17:28 PM
Ok, last night, I spent waaay too much time (almos 2 hours trying different things) reading the docs to try to figure out how to display the stats, and not images, link you said could be done here (http://forum.coppermine-gallery.net/index.php?topic=35450.0).

But, all I could get was blank spaces or error messages. I've tried all of the "Functions that return textual statistics," but the best I could get was cpm_getMediaCount () and cpm_getMediaCountForAlbum ($albumid) to work.

I'd like to get that table of updates, titled "Since Friday, December 10 2004 we've added about 355 images," and I sort of did, but the links didn't work, and there were a bunch of errors all over.


I have to check what the last thing I tried was.
Title: Re: Can't display stats
Post by: vuud on September 03, 2007, 07:38:23 PM
Quote from: jlove on September 01, 2007, 09:17:28 PM
Ok, last night, I spent waaay too much time (almos 2 hours trying different things) reading the docs to try to figure out how to display the stats, and not images, link you said could be done here (http://forum.coppermine-gallery.net/index.php?topic=35450.0).

But, all I could get was blank spaces or error messages. I've tried all of the "Functions that return textual statistics," but the best I could get was cpm_getMediaCount () and cpm_getMediaCountForAlbum ($albumid) to work.

I'd like to get that table of updates, titled "Since Friday, December 10 2004 we've added about 355 images," and I sort of did, but the links didn't work, and there were a bunch of errors all over.


I have to check what the last thing I tried was.


That's a function getAlbumsUpdated since or something like that.

Title: Re: Can't display stats
Post by: jlove on September 21, 2007, 04:03:30 AM
Ok, well that doesn't really help since I still have no clue how to format the code. I tried and I get

Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in another code that I have. (php exec for wordpress.)
Title: Re: Can't display stats
Post by: capecodgal on September 26, 2007, 01:42:37 PM
It would be useful if you post the code you are currently using

I have gotten this one to work so I know its possible and I even got the answer by reading other posts on this board  ;D I can tell you the answer is definately in here somewhere but if you post the code you have it will be much easier for someone to tell you what is wrong with it


Title: Re: Can't display stats
Post by: jlove on September 28, 2007, 06:50:57 AM
You can mark this as solved. capecodgal gave me the solution in another thread: http://forum.coppermine-gallery.net/index.php?topic=47051.0