Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: 1 ... 10 11 12 13 [14] 15 16 17   Go Down

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

0 Members and 1 Guest are viewing this topic.

JohannM

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 223
Re: "Who is online" plugin (onlinestats)
« Reply #260 on: January 23, 2008, 01:46:33 pm »

Hi

I have upgraded my server and get this now with the online stats plugin:

"Most users ever online: 11 on Jan 01, 1970 at 12:00 AM"

What can be wrong ?

Thanx in advance
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: "Who is online" plugin (onlinestats)
« Reply #261 on: January 23, 2008, 04:47:15 pm »

Don't double-post nor cross-post! You have already started a separate thread on this issue, and you got a reply to your individual thread. >:(
Logged

Mimer

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 129
    • Fjotte
Re: "Who is online" plugin (onlinestats)
« Reply #262 on: January 26, 2008, 04:41:22 pm »

Hi

I've translated the language file for "Who is online" 1.8 to danish.

Mimer  8)
Logged

kary4ever

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 4
    • Lovely Brooke
Re: "Who is online" plugin (onlinestats)
« Reply #263 on: January 31, 2008, 06:27:22 am »

Hi, i'd try to install the plugin by clicking on the "i" button, and i have this error:

Fatal error: require(): Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:/usr/local/lib/php') in /home/0/1/starscentral.123.fr/www/gallery/plugins/onlinestats/codebase.php on line 46

Could somebody help me? I'm not very good at php and i don't know what to do.

Edit : My problem is solved! I manually upload the files on the server and it worked! Thanks.
« Last Edit: January 31, 2008, 06:45:43 am by kary4ever »
Logged

ladyofthelight

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
  • No regrets, No apologies
    • Reminiscent Designs
Re: "Who is online" plugin (onlinestats)
« Reply #264 on: February 12, 2008, 11:40:14 am »

Hi, i'd try to install the plugin by clicking on the "i" button, and i have this error:

Fatal error: require(): Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:/usr/local/lib/php') in /home/0/1/starscentral.123.fr/www/gallery/plugins/onlinestats/codebase.php on line 46

Could somebody help me? I'm not very good at php and i don't know what to do.

Edit : My problem is solved! I manually upload the files on the server and it worked! Thanks.

Thansk, I had actually the same problem - Solved with your tip.

Sam
Logged

ladyofthelight

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
  • No regrets, No apologies
    • Reminiscent Designs
Re: "Who is online" plugin (onlinestats)
« Reply #265 on: February 12, 2008, 11:56:12 am »

Just wanted to say thank you... Useful tool.  ;)

Sam
Logged

burnedbrass

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: "Who is online" plugin (onlinestats)
« Reply #266 on: February 24, 2008, 05:30:53 am »

Hello, I am not sure if I needed to create a new thread or continue here.

I am running CPG 1.4.16 with Onlinestats V1.8 and get the following error:

Fatal error: online_configure() [function.require]: Failed opening required './plugins/onlinestats/include/init.inc.php'

after uploading the onlinestats and clicking (the i).

My "The content of the main page" is as follows
"breadcrumb/catlist/alblist/random,2/anycontent/lastup,2/onlinestats"

I do have plugins/lang/english.php

I did read Joachim's 1/16/06 thread plus the others to no avail. Any assistance is appreciated/
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: "Who is online" plugin (onlinestats)
« Reply #267 on: February 24, 2008, 08:28:33 am »

be sure to have uploaded all the plugin files in th eplugin directory (it seems you have not the ./plugins/onlinestats/include/init.inc.php file on your server
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

burnedbrass

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: "Who is online" plugin (onlinestats)
« Reply #268 on: February 24, 2008, 09:12:18 am »

Kary4ever, ladyofthelight and Francois THANKS!

I FTP (manually uploaded) Onlinestats and it installed:

Onlinestats directory with the following:

  lang
  Include
  schema.sql
  readme.txt
  lisez-moi.txt
  configuration.php
  codebase.php

Thanks again
Logged

onuzu

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: "Who is online" plugin (onlinestats)
« Reply #269 on: March 28, 2008, 08:34:56 pm »

Hello I used the plugin in it works fine for a while but now the most ever online doesn't work. It's stuck at 29 even though I get at least 40 users per day. My gallery is at http://lurrenzinc.com/photos [Edit GauGau] Warning: link not safe for work [/Edit]

What should I do?
« Last Edit: March 28, 2008, 09:10:03 pm by Joachim Müller »
Logged

hgl

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: "Who is online" plugin (onlinestats)
« Reply #270 on: April 14, 2008, 02:56:42 pm »

Hi Sir

Could you please tell me how to hide the online state when the manager online

I am look forward to receiving your reply soon

Many Thanks

Hgl
Logged

Maik

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: "Who is online" plugin (onlinestats)
« Reply #271 on: April 21, 2008, 11:21:48 pm »

Hi,

i have a question, i used by the config the standard button, after that i had a problem with my database.. and i can't find the problem at the moment.

i set the debug mode on 1 and see the following problem,

Quote
While executing query "DELETE FROM cpg131_testmod_online WHERE last_action < NOW() - INTERVAL  MINUTE" on 0

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
/include/functions.inc.php - Regel: 249 

I updated the complete coppermine script with the online mod and i used the update.php funtion.

Do someone have an great idee for this problem.. see here http://gallery.digitaleplaza.com

Many Thanks,

Maik
Logged

Nibbler

  • Guest
Re: "Who is online" plugin (onlinestats)
« Reply #272 on: April 22, 2008, 10:31:10 am »

Disable the plugin using phpmyadmin.
Logged

aldog

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: "Who is online" plugin (onlinestats)
« Reply #273 on: April 25, 2008, 09:00:43 pm »

hey squad, I had the same problem as you, I searched the forum and found this post
Hi, i'd try to install the plugin by clicking on the "i" button, and i have this error:

Fatal error: require(): Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:/usr/local/lib/php') in /home/0/1/starscentral.123.fr/www/gallery/plugins/onlinestats/codebase.php on line 46

Could somebody help me? I'm not very good at php and i don't know what to do.

Edit : My problem is solved! I manually upload the files on the server and it worked! Thanks.
mine works fine after uploading the onlinestats folder via ftp.


make sure you add "/onlinestats" in
  • config
    album list view
    The content of the main page
Logged

ceskobassman

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: "Who is online" plugin (onlinestats)
« Reply #274 on: May 05, 2008, 09:51:49 pm »

Hi, great plugin! I'm looking a way to show the actual server time with the other informations.

If someone is interested I've translated the informations shown in italian
Code: [Select]
starttable("100%", "Chi &egrave online");
        echo '<tr><td class="tableb">';
        echo ($num_users == 1) ? "C'&egrave 1 utente registrato<br>" : "Ci sono {$num_users} utenti registrati<br>";
        echo "L'ultimo utente registrato &egrave <a href=\"profile.php?uid={$newest_user_id}\">{$newest_user_name}</a><br>";
        echo ($num_online == 1) ? "C'&egrave 1 utente online" : "Ci sono {$num_online} utenti online";
        echo ($num_reg_online == 1) ? " :: 1 Registrato, e " : " :: {$num_reg_online} Registrati, e ";
        echo ($num_guests == 1) ? "1 Ospite<br>" : "{$num_guests} Ospiti<br>";
        echo 'Record di utenti online: ' . $CONFIG['record_online_users'] . " il " . localised_date($CONFIG['record_online_date'], $comment_date_fmt ) . "<br>";
        echo "Registrati e online: {$logged_in_names}</td></tr>";

        endtable();
Logged

Vikitty

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: "Who is online" plugin (onlinestats)
« Reply #275 on: May 18, 2008, 08:09:35 pm »

Wow, great plugin! So easy to install!

I was wondering if there's a way to show the IPs of guests browsing the gallery? (as a mouseover tooltip or something)
Logged

MadMaxx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: "Who is online" plugin (onlinestats)
« Reply #276 on: June 26, 2008, 11:48:22 am »

hi
i read this thread and did a search but couldn't find what i needed:
how to place the onlinestats only on the main page?

thank you
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: "Who is online" plugin (onlinestats)
« Reply #277 on: June 26, 2008, 01:11:24 pm »

normally the onliestats block is only displaye on the main page
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

MadMaxx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: "Who is online" plugin (onlinestats)
« Reply #278 on: June 26, 2008, 11:53:59 pm »

normally the onliestats block is only displaye on the main page

hi, thanks for the reply.
it shows in the main page and in every Category page only, not in any other page.
i would like it to show in the main page only.

i used this code from Nibbler http://forum.coppermine-gallery.net/index.php/topic,37830.0.html
to show last added and random in the main page only, so i tought that
Code: [Select]
if ($cat == 0) {would probably work but i'm new at php so i don't know where to put it.

thanks
Logged

MadMaxx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: "Who is online" plugin (onlinestats)
« Reply #279 on: July 05, 2008, 01:22:59 pm »

ok found it

in plugins/onlinestats/codebase.php
changed code starting line 175 to line 185

Code: [Select]
       starttable("100%", $lang_plugin_onlinestats['name']);
        echo '<tr><td class="tableb">';
        echo ($num_users == 1) ? $lang_plugin_onlinestats['have']."<b>1</b>".$lang_plugin_onlinestats['reg_member']."<br />" : $lang_plugin_onlinestats['have']."<b>".$num_users."</b>".$lang_plugin_onlinestats['reg_members']."<br />";
        echo $lang_plugin_onlinestats['most_recent']."<a href=\"profile.php?uid={$newest['user_id']}\">{$newest['user_name']}</a><br />";
        echo ($num_online == 1) ? $lang_plugin_onlinestats['is']."<b>1</b>".$lang_plugin_onlinestats['user'] : $lang_plugin_onlinestats['are']."<b>".$num_online."</b>".$lang_plugin_onlinestats['users'];
        echo ($num_reg_online == 1) ? ": <b>1</b>".$lang_plugin_onlinestats['reg_member'].$lang_plugin_onlinestats['and'] : ": <b>".$num_reg_online."</b>".$lang_plugin_onlinestats['reg_members'].$lang_plugin_onlinestats['and'];
        echo ($num_guests == 1) ? "<b>1</b>".$lang_plugin_onlinestats['guest']."<br />" : "<b>".$num_guests."</b>".$lang_plugin_onlinestats['guests']."<br />";
        echo $lang_plugin_onlinestats['record']."<b>". $CONFIG['record_online_users']."</b>" .$lang_plugin_onlinestats['on']."<b>". localised_date($CONFIG['record_online_date'], $lang_plugin_onlinestats_date_fmt ) ."</b><br />";
        echo $lang_plugin_onlinestats['reg_members'].$lang_plugin_onlinestats['since'].$CONFIG['mod_updates_duration'].$lang_plugin_onlinestats_config['minute'].": ". $logged_in_names."</td></tr>";

        endtable();

with:

Code: [Select]
        $qs = $_SERVER['QUERY_STRING'];
        if(!$qs){
        starttable("100%", $lang_plugin_onlinestats['name']);
        echo '<tr><td class="tableb">';
        echo ($num_users == 1) ? $lang_plugin_onlinestats['have']."<b>1</b>".$lang_plugin_onlinestats['reg_member']."<br />" : $lang_plugin_onlinestats['have']."<b>".$num_users."</b>".$lang_plugin_onlinestats['reg_members']."<br />";
        echo $lang_plugin_onlinestats['most_recent']."<a href=\"profile.php?uid={$newest['user_id']}\">{$newest['user_name']}</a><br />";
        echo ($num_online == 1) ? $lang_plugin_onlinestats['is']."<b>1</b>".$lang_plugin_onlinestats['user'] : $lang_plugin_onlinestats['are']."<b>".$num_online."</b>".$lang_plugin_onlinestats['users'];
        echo ($num_reg_online == 1) ? ": <b>1</b>".$lang_plugin_onlinestats['reg_member'].$lang_plugin_onlinestats['and'] : ": <b>".$num_reg_online."</b>".$lang_plugin_onlinestats['reg_members'].$lang_plugin_onlinestats['and'];
        echo ($num_guests == 1) ? "<b>1</b>".$lang_plugin_onlinestats['guest']."<br />" : "<b>".$num_guests."</b>".$lang_plugin_onlinestats['guests']."<br />";
        echo $lang_plugin_onlinestats['record']."<b>". $CONFIG['record_online_users']."</b>" .$lang_plugin_onlinestats['on']."<b>". localised_date($CONFIG['record_online_date'], $lang_plugin_onlinestats_date_fmt ) ."</b><br />";
        echo $lang_plugin_onlinestats['reg_members'].$lang_plugin_onlinestats['since'].$CONFIG['mod_updates_duration'].$lang_plugin_onlinestats_config['minute'].": ". $logged_in_names."</td></tr>";
        endtable();
}
Logged
Pages: 1 ... 10 11 12 13 [14] 15 16 17   Go Up
 

Page created in 0.027 seconds with 21 queries.