"Who is online" plugin (onlinestats) - Page 12 "Who is online" plugin (onlinestats) - Page 12
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

"Who is online" plugin (onlinestats)

Started by Joachim Müller, January 16, 2006, 02:34:00 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Nibbler

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


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

Sunnefa

Quote from: Nibbler on July 11, 2007, 12:17:14 AM
Edit that in your language file (eg. lang/english.php)


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


Yes!! Thanks so much :):D

Fabrian

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.

François Keller

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

#224
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

Nibbler

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

ccvortex

#226
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)

Nibbler

Plugin updated to 1.8 - should fix this issue.

ccvortex

Works like a champ, thanks Nib.

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

Nibbler

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.

ccvortex


tim18

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


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

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


just_some_guy

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

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

just_some_guy

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

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

Yes, this solved the issue. Thank-you

Tim

rrwwxx

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
°¿°