Advanced search  

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]

Pages: 1 [2] 3   Go Down

Author Topic: Stats: Gallery statistics by date  (Read 204753 times)

0 Members and 1 Guest are viewing this topic.

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Stats: Gallery statistics by date
« Reply #20 on: November 19, 2006, 10:44:24 pm »

Hein,

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

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Stats: Gallery statistics by date
« Reply #21 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..) ?

Cheers!
Hein
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Stats: Gallery statistics by date
« Reply #22 on: November 20, 2006, 01:18:57 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.
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

mystifiedlala

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Stats: Gallery statistics by date
« Reply #23 on: November 23, 2006, 05:56:33 am »

great plugin!!
Logged

MarkP

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Stats: Gallery statistics by date
« Reply #24 on: November 28, 2006, 03:07:59 am »

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.

Logged

Nibbler

  • Guest
Re: Stats: Gallery statistics by date
« Reply #25 on: November 28, 2006, 12:34:57 pm »

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

Code: [Select]
...
FROM {$cpg_udb->usertable}
...

Code: [Select]
$result = cpg_db_query($sql, $cpg_udb->link_id);
3 occurences.
Logged

MarkP

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Stats: Gallery statistics by date
« Reply #26 on: November 29, 2006, 03:14:40 am »

huh? I don't understand? Can I get that in English please?  :'( :'(
« Last Edit: November 30, 2006, 02:27:44 am by MarkP »
Logged

MarkP

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Stats: Gallery statistics by date
« Reply #27 on: December 01, 2006, 03:31:02 pm »

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.  :)
Logged

m@rk

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 39
German Translation
« Reply #28 on: December 12, 2006, 01:35:28 am »

Here's my German Translation...
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Stats: Gallery statistics by date
« Reply #29 on: December 12, 2006, 07:28:25 am »

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

lifter

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
Re: Stats: Gallery statistics by date
« Reply #30 on: September 01, 2007, 04:03:31 am »

any chance of adding VIEWS by day?  ::)
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Stats: Gallery statistics by date
« Reply #31 on: October 01, 2007, 10:48:30 pm »

Great plugin Frantz.

spanish lang file attached.


just_some_guy
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Stats: Gallery statistics by date
« Reply #32 on: October 02, 2007, 07:57:39 am »

thank's just_some_guy,

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

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Stats: Gallery statistics by date
« Reply #33 on: October 08, 2007, 08:38:20 pm »

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,
Logged
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

  • Guest
Re: Stats: Gallery statistics by date
« Reply #34 on: October 08, 2007, 08:41:42 pm »

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

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Stats: Gallery statistics by date
« Reply #35 on: October 08, 2007, 08:46:18 pm »

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!
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 235
Re: Stats: Gallery statistics by date
« Reply #36 on: March 03, 2008, 11:03:47 pm »

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?
Logged

Nibbler

  • Guest
Re: Stats: Gallery statistics by date
« Reply #37 on: March 03, 2008, 11:10:15 pm »

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

Gephri

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 235
Re: Stats: Gallery statistics by date
« Reply #38 on: March 03, 2008, 11:57:18 pm »

Ok thanks.

Displaying errors shows the following:

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

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

does that help at all?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Stats: Gallery statistics by date
« Reply #39 on: March 04, 2008, 08:02:29 am »

Error messages, not notices!
Logged
Pages: 1 [2] 3   Go Up
 

Page created in 0.024 seconds with 20 queries.