Stats: Gallery statistics by date - Page 2 Stats: Gallery statistics by date - Page 2
 

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

Stats: Gallery statistics by date

Started by François Keller, November 12, 2006, 03:03:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

François Keller

Hein,

QuoteUpdated dutch.php a bit. Attached file to my previous post.
Added in the original pack
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

Hein Traag

Is it possible to enhance the plugin to included how many visitors there were per day including where they came from (IP or country flags etc..) ?

Cheers!
Hein

François Keller

Quote from: Hein on November 20, 2006, 01:06:07 PM
Is it possible to enhance the plugin to included how many visitors there were per day including where they came from (IP or country flags etc..) ?
Not sure, i must look if the data's are stored in the database.
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

mystifiedlala


MarkP

I am getting this error:

While executing query "SELECT YEAR(FROM_UNIXTIME(dateRegistered)) AS period, COUNT(*) AS number
FROM `opshot5_smf1`.smf_members
GROUP BY period
ORDER BY period DESC" on 0

mySQL error:

File: /home/opshot5/public_html/gallery/include/functions.inc.php - Line: 248

debug info provided.


Nibbler

In stats.php, each query that runs on usertable should use the udb link id, like so


...
FROM {$cpg_udb->usertable}
...


$result = cpg_db_query($sql, $cpg_udb->link_id);

3 occurences.

MarkP

#26
huh? I don't understand? Can I get that in English please?  :'( :'(

MarkP

Ok works like a charm. Thanks for not posting a easy answer (step by step) somtimes I need a little nudge as in not posting step by step. After reading your solution a few more times it is crystal clear.  :)

m@rk

Here's my German Translation...

François Keller

Thank's M@rk, will be added in the original pack
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

lifter


just_some_guy

Great plugin Frantz.

spanish lang file attached.


just_some_guy
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

François Keller

thank's just_some_guy,

your lang file is added in the pack in the first post
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

just_some_guy

Hello,

I seem to have an error: the plugin is displaying 1970 as year.

See here: http://www.mysimtractor.com/cpg1412/index.php?file=stats/stats

thanks,
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Nibbler

Check the pictures table for entries with invalid dates and correct them.

just_some_guy

That did the trick, it must have happened when i was making the plugin i am working on, I neve told it to add a time stamp...


Thanks again nibbler!
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Gephri

I've installed v1.1.1 and get a blank page when I go to view stats.

No error message is given.

Any idea what is blocking the page from loading?

Nibbler

Either get the error message from the server error log or enable display of errors. Can't tell anything from a blank page.

Gephri

Ok thanks.

Displaying errors shows the following:

/plugins/stats/include/init.inc.php
    * Notice line 20: Undefined variable: CONFIG


which points to the following as line 20:
if (file_exists("plugins/stats/lang/{$CONFIG['lang']}.php")) {


does that help at all?

Joachim Müller