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 ... 8 9 10 11 [12] 13 14 15 16 17   Go Down

Author Topic: "Who is online" plugin (onlinestats)  (Read 442699 times)

0 Members and 1 Guest are viewing this topic.

Nibbler

  • Guest
Re: "Who is online" plugin (onlinestats)
« Reply #220 on: July 11, 2007, 12:17:14 am »

Edit that in your language file (eg. lang/english.php)

Code: [Select]
// Day of weeks and months
$lang_day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
Logged

Sunnefa

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: "Who is online" plugin (onlinestats)
« Reply #221 on: July 11, 2007, 12:29:33 am »

Edit that in your language file (eg. lang/english.php)

Code: [Select]
// Day of weeks and months
$lang_day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');

Yes!! Thanks so much :):D
Logged

Fabrian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 126
Re: "Who is online" plugin (onlinestats)
« Reply #222 on: July 18, 2007, 06:11:51 am »

Just downloaded and installed v.1.7.  The word "registered" is spelled wrong on two instances (the file I downloaded anyway). It's missing the "E" before the "R".  Thought someone might wanna know.
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: "Who is online" plugin (onlinestats)
« Reply #223 on: July 18, 2007, 07:57:22 am »

You can correct it in the lang/english.php file from your plugin
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

ccvortex

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: "Who is online" plugin (onlinestats)
« Reply #224 on: July 21, 2007, 08:26:26 pm »

Coppermine 1.4.12 (Stable)

Onlinestats v. 1.7

Plugin is uploaded and installed via Plugin Manager.
Plugins are Enabled.

Content of Main Page entry:
breadcrumb/catlist/alblist/random,2/lastup,2/onlinestats
generates this error:
There was an error while processing a database query

It does this for all themes.

Any ideas what's wrong?

Thanks all
« Last Edit: July 21, 2007, 08:55:42 pm by ccvortex »
Logged

Nibbler

  • Guest
Re: "Who is online" plugin (onlinestats)
« Reply #225 on: July 21, 2007, 08:54:39 pm »

Enable debug mode and post the actual mysql error message you get when you replicate the error.
Logged

ccvortex

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: "Who is online" plugin (onlinestats)
« Reply #226 on: July 21, 2007, 09:09:26 pm »

There was an error while processing a database query.

While executing query "SELECT COUNT(*) FROM `clancc_smf4`.smf_members" on 0 mySQL error:


File: /home/clancc/public_html/gallery/include/functions.inc.php - Line: 249


I noticed in the configuration.php file that's it's using "Onlinestats", not "onlinestats".
Since *nix is case sensitive, I changed the Content of Main Page entry to:
breadcrumb/catlist/alblist/random,2/lastup,2/Onlinestats
I no longer get a dB error, but the new block isn't showing up either...

Install is bridged with SMF 1.1.3
http://www.collectiveconspiracy.com
http://www.collectiveconspiracy.com/gallery (registered access only)
« Last Edit: July 21, 2007, 09:19:56 pm by ccvortex »
Logged

Nibbler

  • Guest
Re: "Who is online" plugin (onlinestats)
« Reply #227 on: July 21, 2007, 10:24:37 pm »

Plugin updated to 1.8 - should fix this issue.
Logged

ccvortex

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: "Who is online" plugin (onlinestats)
« Reply #228 on: July 21, 2007, 10:34:35 pm »

Works like a champ, thanks Nib.

If I may ask, what did you change to fix it?
Logged

Nibbler

  • Guest
Re: "Who is online" plugin (onlinestats)
« Reply #229 on: July 21, 2007, 11:11:02 pm »

If you have your forum configured with different mysql details to Coppermine we need to manage 2 database connections. Database queries that access Coppermine run over one connection and queries that access the forum need to use the second connection. The plugin was not enforcing this correctly.
Logged

ccvortex

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: "Who is online" plugin (onlinestats)
« Reply #230 on: July 22, 2007, 12:21:54 am »

Ok, thanks Nib.
Logged

tim18

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 22
Re: "Who is online" plugin (onlinestats)
« Reply #231 on: August 11, 2007, 03:00:11 pm »

Hello, This plugin sounds perfect. Only problem is i get a fatal error when i try to install it through the plugin manager.

Code: [Select]
Fatal error: require() [function.require]: Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mohr/public_html/hub/plugins/onlinestats/codebase.php on line 46
All help appreciated.

Tim
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: "Who is online" plugin (onlinestats)
« Reply #232 on: August 11, 2007, 08:48:56 pm »

^^^^I got the same error.^^^^^
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: "Who is online" plugin (onlinestats)
« Reply #233 on: August 11, 2007, 08:52:21 pm »

I didn't.
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: "Who is online" plugin (onlinestats)
« Reply #234 on: August 11, 2007, 08:53:23 pm »

error at line 42:

require ('./plugins/onlinestats/include/init.inc.php');

Checked the ftp and there is no includse folder inside onlinestats.

what should i do?
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: "Who is online" plugin (onlinestats)
« Reply #235 on: August 11, 2007, 08:55:34 pm »

There is. Maybe it's not getting extracted properly. Extract the plugin locally and then upload and install it.
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: "Who is online" plugin (onlinestats)
« Reply #236 on: August 11, 2007, 09:00:06 pm »

That did it, thanks, but it is saying the most users where online in 1970
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

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: "Who is online" plugin (onlinestats)
« Reply #237 on: August 11, 2007, 09:02:13 pm »

It ok , its fixed. I think it just needed a refresh
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

tim18

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 22
Re: "Who is online" plugin (onlinestats)
« Reply #238 on: August 12, 2007, 01:54:12 am »

Yes, this solved the issue. Thank-you

Tim
Logged

rrwwxx

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 51
Display only visible to registered users?
« Reply #239 on: August 12, 2007, 04:52:27 am »

I would like to ask for two modifications on this plugin because it would fit my own needs better if only registered users could see these statistics on the album view.
Is it possible to modify the code so that these stats would only be visible to users being logged in (alternatively only to admins)?
And is it difficult to change the stats in a way to get the number of guests counted and displayed too?
Thanks for an answer,
cu,
Roli
°¿°
Logged
Pages: 1 ... 8 9 10 11 [12] 13 14 15 16 17   Go Up
 

Page created in 0.024 seconds with 20 queries.