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

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.

rrwwxx

(why do I always ask first and find my own solution shortly after?) I could answer the first question from above myself.

The modification of this routine to make the stats only visible to users being logged in would need a change in codebase.php and the function online_mainpage(). The code would now start as follows:

function online_mainpage()
{
        global $AUTHORIZED, $CONFIG, $cpg_udb, $matches, $lang_plugin_onlinestats, $lang_plugin_onlinestats_date_fmt;

        if($matches[1] != 'onlinestats') {
          return $matches;
        }
        if (USER_ID) {
          require ('./plugins/onlinestats/include/init.inc.php');

etc, the rest remains unchanged but it needs a second closed bracket } at the end of this function before the commening line labeled // Install.
cu,
Roli
°¿°

cyberboy

I got error...
when I click install . it shows:

QuoteFatal error: require() [function.require]: Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:') in /volume1/web/cpg/plugins/onlinestats/codebase.php on line 46

how can i do?? thxx

cyberboy

Quote from: cyberboy on August 16, 2007, 05:49:35 AM
I got error...
when I click install . it shows:

how can i do?? thxx

solved... ;D

Hein Traag

Quote from: cyberboy on August 16, 2007, 05:58:07 AM
solved... ;D

Great! Why not share it with us all what your solution was. Others might benefit from it.  ;)

bluedevil

Quote from: Hein on August 16, 2007, 07:30:09 AM
Great! Why not share it with us all what your solution was. Others might benefit from it.  ;)


Yeah...how you solved this?  I have the same error :'(

bluedevil

Ok.  This is line 46.  What am i missing?

function online_configure()

bluedevil

Quote from: bluedevil on August 17, 2007, 07:55:09 PM
Ok.  This is line 46.  What am i missing?

function online_configure()

bump

OzButcher

Quote from: Horizon on June 12, 2007, 04:13:15 PM
is it be possible to change 10 Minutes to 1 day?

I would also like to change mine... to say 24 hours (I only have a small gallery for family/friends). Atm the installer only asks for minutes so instead of:

Registered members online in the last 1440 Minutes:

how can I make it like this?:

Registered members online in the last 24 Hours:

François Keller

Quote from: bluedevil on August 17, 2007, 07:55:09 PM
Ok.  This is line 46.  What am i missing?

function online_configure()
try to reupload all the plugin files on your server
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

OzButcher

tried having a go myself.... I edited codebase.php:

Line 160:
echo $lang_plugin_onlinestats['reg_members'].$lang_plugin_onlinestats['since'].$CONFIG['mod_updates_duration'].$lang_plugin_onlinestats_config['minute'].": ". $logged_in_names."</td></tr>";


Line 56:
<td><?php echo $lang_plugin_onlinestats_config['minute'];?></td>

I tried changing all 3 of the [minutes] to [hours] but I'm guessing its not as simple as I thought :)

Fizzolo

How can i change date format for record users connected?
From the code, value UNIX_TIMESTAMP() is insert into db. I can't find the way to fix quickly..
Since my site is in italian, i don't want to see 'Gio, Ago.23.2007 at 16:26', but 'Gio, 23.Ago.2007 at 17:26' (yes, the hour is +1) or another date format more pretty  :-*

Thanks for every Re: ;)

François Keller

modify the date format in the plugin  lang file (italian.php for you)
$lang_plugin_onlinestats_date_fmt='%A, %B.%d.%Y at %H:%M';
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

Fizzolo

wow.. it was very very simple.. and i was very very down  ;D
Thanksss a lot

lifter

Quote from: cyberboy on August 16, 2007, 05:49:35 AM
I got error...
when I click install . it shows:

how can i do?? thxx

I get this error as well and the original punk who posted this error didn't post how he fixed it...

Hein Traag

Quote from: lifter on August 28, 2007, 08:11:26 PM
I get this error as well and the original **** who posted this error didn't post how he fixed it...

Lifter, talking like that makes you just as nice a person as those who do not post how they fixed a problem.

Frantz, do you have a piece of wisdom to share with lifter ?

François Keller

QuoteFrantz, do you have a piece of wisdom to share with lifter ?
not at all, try to reupload a fresch package from the plugin and be sure to unzip the entire plugin folder in the plugins directory.
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

Sami

Quote
Fatal error: require() [function.require]: Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:') in /volume1/web/cpg/plugins/onlinestats/codebase.php on line 46
Quote
Said that you don't have init.inc.php under include folder of onlinestats plugin , So re-upload the file will solve the problem
‍I don't answer to PM with support question
Please post your issue to related board

lifter

Yeah - had to upload the files into the plugin folder manually and it worked fine as opposed to using the plugin manager to upload from a zip  :)

n0rb3rt

if somebody needs this is Polish to Onlinestats 1.8

Best regards
Norbert

grvsunny

Hello all I downloaded this plugin and after that when I clicked on intall button and then it asked me for time duration when I clicked on it it is taking me to this url http://pluginmgr.php/?op=install&p=onlinestats and not installing the plugin please let me know what to do