Support > cpg1.6 plugins

onlinestats plugin

(1/1)

Hanna.:
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: ---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
--- End code ---

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

JohannM:
Hello

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

Any help please ?

Αndré:
Open codebase.php, find

--- Code: ---printf($lang_plugin_onlinestats['record'], '<strong>'.$CONFIG['record_online_users'].'</strong>', localised_date($CONFIG['record_online_date'], $lang_date['lastcom']));
--- End code ---
and replace with

--- Code: ---printf($lang_plugin_onlinestats['record'], '<strong>'.$CONFIG['record_online_users'].'</strong>', localised_date($CONFIG['record_online_date'], '%e %b %Y'));
--- End code ---

Navigation

[0] Message Index

Go to full version