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]   Go Down

Author Topic: onlinestats plugin  (Read 2362 times)

0 Members and 1 Guest are viewing this topic.

Hanna.

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 178
  • webstar
onlinestats plugin
« on: December 01, 2017, 08:16:18 pm »

Hello everyone! Just checking to see if this one is an easy fix with cpg 1.6? The plugin onlinestats that appears on the bottom?

This plugin is essential to my web pages and it gives out (because I used to have an older cpg)
Code: [Select]
Fatal error: Uncaught Error: Call to undefined function mysql_fetch_row() in /home/minowncu/public_html/addons/kristincavallari.net/gallery/plugins/onlinestats/codebase.php:137 Stack trace: #0 /home/minowncu/public_html/addons/kristincavallari.net/gallery/include/plugin_api.inc.php(218): online_mainpage(Array) #1 /home/minowncu/public_html/addons/kristincavallari.net/gallery/index.php(1128): CPGPluginAPI::filter('plugin_block', Array) #2 {main} thrown in /home/minowncu/public_html/addons/kristincavallari.net/gallery/plugins/onlinestats/codebase.php on line 137
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1258
Re: onlinestats plugin
« Reply #1 on: December 01, 2017, 11:09:35 pm »

Find plugins updated for CPG 1.6 here:  https://github.com/coppermine-gallery/cpg1.6.x-plugins
Logged

JohannM

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 247
Re: onlinestats plugin
« Reply #2 on: March 13, 2019, 12:19:11 am »

Hello

How can I change to see the date format as e.g.  6 Jun 2019 ?

Any help please ?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15759
Re: onlinestats plugin
« Reply #3 on: May 10, 2019, 04:04:33 pm »

Open codebase.php, find
Code: [Select]
printf($lang_plugin_onlinestats['record'], '<strong>'.$CONFIG['record_online_users'].'</strong>', localised_date($CONFIG['record_online_date'], $lang_date['lastcom']));and replace with
Code: [Select]
printf($lang_plugin_onlinestats['record'], '<strong>'.$CONFIG['record_online_users'].'</strong>', localised_date($CONFIG['record_online_date'], '%e %b %Y'));
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.