Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 21, 2009, 01:26:40 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Maintenance release cpg1.4.25 - upgrade recommended
The Coppermine development team is releasing an update for Coppermine in order to fix an issue with http uploads that could occur in particular versions of PHP.The fix is not security-critical, so if your gallery is running fine with cpg1.4.23 or cpg1.4.24 you don't need to upgrade. If you are running an older version than cpg1.4.23, you must update to this latest version as soon as possible because of the security impact (the past few maintenance releases before cpg1.4.24 all were security-related).
[more]
   Home   Help Search Board rules Login Register  
Pages: [1] 2 3   Go Down
  Send this topic  |  Print  
Author Topic: Stats: Gallery statistics by date  (Read 21193 times)
0 Members and 1 Guest are viewing this topic.
François Keller Topic starter
Dev Team member
****
Gender: Male
France France

Posts: 7369


aka Frantz


WWW
« on: November 12, 2006, 02:03:00 pm »

Stats: Gallery statistics by date

This plugin is an adaptation from Nibblers Mod http://forum.coppermine-gallery.net/index.php?topic=34858.0

It add a new menu button for opening a statistic page.

INSTALL:
- unzip package to plugins folder and use plugin manager to install it



LANGUAGE:
english.php italian.php (thank's Lontano) and french.php are avaible in the package. Feel free to translate in your language

New Version
Version 1.1:
-Adding some others stats inspired by Pslawinsky's Mod http://forum.coppermine-gallery.net/index.php?topic=23945.0
-Adding dutch.php lang file (Thank's Hein)
-adding german.php lang file (Thank's M@rk)
-adding spanish.pgp lang file (Thank's Just_some_guy)


* stats_eng.jpg (31.32 KB, 927x176 - viewed 1555 times.)
* stats.zip (8 KB - downloaded 286 times.)
* stats1_1.zip (11.55 KB - downloaded 525 times.)
« Last Edit: October 02, 2007, 06:56:37 am by Frantz » Logged

Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog
Davide Renda
Dev Team member
****
Gender: Male
France France

Posts: 1319


aka "Lontano"


WWW
« Reply #1 on: November 12, 2006, 03:21:34 pm »

Nice, easy and useful! Good work Fratz!
Italian lang file attached

* italian.php.zip (0.86 KB - downloaded 181 times.)
Logged

rphMedia
Contributor
***
Gender: Male
United States United States

Posts: 509


***muvipix.com***


WWW
« Reply #2 on: November 12, 2006, 03:26:01 pm »

Nice work, Frantz (I tried to + Karma and hit smite by accident - I'll be back).

I can toggle the year (2006), but if I try to open any month I get the error processing a database query (2 test sites).  I'll see if I can get more info.
Logged

François Keller Topic starter
Dev Team member
****
Gender: Male
France France

Posts: 7369


aka Frantz


WWW
« Reply #3 on: November 12, 2006, 03:32:14 pm »

@lontano
Thank's for your contrib (it will be added in the pack)
@rphMedia
What is the error message ? I've no problem on my site (see here)
Logged

Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog
rphMedia
Contributor
***
Gender: Male
United States United States

Posts: 509


***muvipix.com***


WWW
« Reply #4 on: November 12, 2006, 03:42:43 pm »

Quote from: Frantz
I've no problem on my site (see here)

Ahh, but you do - not as severe.  Somewhere in your javascript (both IE & FF).

Here's the message I get -

Quote
While executing query "SELECT DAY(msg_date) AS period, COUNT(*) AS number
            FROM cpg146_comments
            WHERE YEAR(msg_date) = 2006
            AND MONTH(msg_date) = 10
            GROUP BY period
            ORDER BY period DESC" on 0

mySQL error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '(msg_date) AS period, COUNT(*) AS number
            FROM cpg146_comme

Also -
...gallery/include/functions.inc.php - Line: 249 (this is an unmodified file)



Logged

Nibbler
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #5 on: November 12, 2006, 03:59:20 pm »

See http://forum.coppermine-gallery.net/index.php?topic=34858.msg172530#msg172530 in the original thread.
Logged

I don't care about what they say, I won't live or die that way.
rphMedia
Contributor
***
Gender: Male
United States United States

Posts: 509


***muvipix.com***


WWW
« Reply #6 on: November 12, 2006, 04:06:18 pm »


That did it, thanks Nibbler.
Logged

François Keller Topic starter
Dev Team member
****
Gender: Male
France France

Posts: 7369


aka Frantz


WWW
« Reply #7 on: November 12, 2006, 05:16:42 pm »

@Nibbler
@rphMedia,
Ok I've correct the code (in version 1.1)

@ All, I've made a new version(1.1) of this plugin, adding some others stats inspired by Pslawinsky's code http://forum.coppermine-gallery.net/index.php?topic=23945.0
demo
See stats_1_1.zip attached on the very first post
« Last Edit: November 17, 2006, 06:27:16 am by Frantz » Logged

Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog
rphMedia
Contributor
***
Gender: Male
United States United States

Posts: 509


***muvipix.com***


WWW
« Reply #8 on: November 12, 2006, 05:50:46 pm »

Works good out-of-the-box !!
Logged

Hein Traag
Dev Team member
****
Gender: Male
Netherlands Netherlands

Posts: 2153


A, B, Cpg


WWW
« Reply #9 on: November 18, 2006, 04:53:55 pm »

Thanks Frantz!
Dutch lang file attached Wink

Cheers!
Hein

Quote
updated dutch.php - <dutch> Tekst klopt nu beter bij de statistiek </dutch>

* dutch.zip (0.89 KB - downloaded 186 times.)
« Last Edit: November 19, 2006, 08:59:17 pm by Hein » Logged

François Keller Topic starter
Dev Team member
****
Gender: Male
France France

Posts: 7369


aka Frantz


WWW
« Reply #10 on: November 18, 2006, 06:14:47 pm »

Thank's Hein,

Original pack updated in the first post with duch lang file
Logged

Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog
docgonzo
Coppermine novice
*
Posts: 30


« Reply #11 on: November 19, 2006, 05:11:56 pm »

I installed this plugin, but cannot get it to work...
It loads the page for about half a minute, and then displays a blank page.

Check http://www.docgonzo.com/index.php?file=stats/stats
Logged
rphMedia
Contributor
***
Gender: Male
United States United States

Posts: 509


***muvipix.com***


WWW
« Reply #12 on: November 19, 2006, 07:21:42 pm »

"25976 files in 294 albums and 37 categories with 13930 comments viewed 7348911 times"  Shocked

I'm guessing that you have too many stats !  It's timing out.
Logged

docgonzo
Coppermine novice
*
Posts: 30


« Reply #13 on: November 19, 2006, 07:45:35 pm »

lol, that could be it...
Although, when i use the stats mod that i found floating around, it does kinda work...
(think it was a mod for this plugin, have searched for the exact location, but can't seem to find it again, i'm talking about stats.zip)
Logged
François Keller Topic starter
Dev Team member
****
Gender: Male
France France

Posts: 7369


aka Frantz


WWW
« Reply #14 on: November 19, 2006, 07:51:01 pm »

This plugin is a mix from two Mods, see links in the first post of this thread
Logged

Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog
docgonzo
Coppermine novice
*
Posts: 30


« Reply #15 on: November 19, 2006, 07:53:02 pm »

This plugin is a mix from two Mods, see links in the first post of this thread
I'm using stats1_1.zip atm
Logged
Nibbler
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #16 on: November 19, 2006, 07:54:53 pm »

http://forum.coppermine-gallery.net/index.php?topic=23945.msg170221#msg170221
Logged

I don't care about what they say, I won't live or die that way.
docgonzo
Coppermine novice
*
Posts: 30


« Reply #17 on: November 19, 2006, 08:01:32 pm »

Tried those, but all i get is 'The selected album does not exist'
Logged
Nibbler
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #18 on: November 19, 2006, 08:37:17 pm »

You cannot possibly get that message by using the code I posted, since the code does not contain the message in the first place.
Logged

I don't care about what they say, I won't live or die that way.
Hein Traag
Dev Team member
****
Gender: Male
Netherlands Netherlands

Posts: 2153


A, B, Cpg


WWW
« Reply #19 on: November 19, 2006, 08:57:54 pm »

Frantz. Updated dutch.php a bit. Attached file to my previous post.

Cheers!
Hein
Logged

Pages: [1] 2 3   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.053 seconds with 18 queries.