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 2 [3]   Go Down

Author Topic: Stats: Gallery statistics by date  (Read 58741 times)

0 Members and 1 Guest are viewing this topic.

Gephri

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 235
Re: Stats: Gallery statistics by date
« Reply #40 on: March 04, 2008, 06:47:36 pm »

Could the attached Debug Info help?  The blank page is completely blank when I "View Source" and php does not create an error in the log
Logged

MechMykl

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 33
    • HQubed
Re: Stats: Gallery statistics by date
« Reply #41 on: April 19, 2008, 01:13:54 am »

Great mod :) works just as advertised!

Maybe stat info on how many pictures viewed???
Logged

Nibbler

  • Guest
Re: Stats: Gallery statistics by date
« Reply #42 on: April 19, 2008, 01:19:33 am »

Coppermine doesn't count views per day.
Logged

Audax

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Stats: Gallery statistics by date
« Reply #43 on: May 18, 2008, 01:48:11 am »

Hello,

ist it possible to hide the link in the menu for guest and members and show it only for admins.
Maybe it is possible in further Versions to select usergroup permissions at the cpg configuration.
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9093
  • aka Frantz
    • Ma galerie
Re: Stats: Gallery statistics by date
« Reply #44 on: May 18, 2008, 10:01:34 am »

Quote
ist it possible to hide the link in the menu for guest and members and show it only for admins.
Yes, in codebase.php change
Code: [Select]
function stats_page_start()
{
 
  global $template_sys_menu, $template_sys_menu_spacer, $template_sys_menu_button, $sys_menu_buttons;
    global $CONFIG, $lang_plugin_stats;

    require ('plugins/stats/include/init.inc.php');
 
  stats_add_admin_button('index.php?file=stats/stats',$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link']);
 
}
to
Code: [Select]
function stats_page_start()
{
 
  global $template_sys_menu, $template_sys_menu_spacer, $template_sys_menu_button, $sys_menu_buttons;
    global $CONFIG, $lang_plugin_stats;

    require ('plugins/stats/include/init.inc.php');
  if (USER_IS_ADMIN){
  stats_add_admin_button('index.php?file=stats/stats',$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link'],$lang_plugin_stats['menu_link']);
  }
}
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

Audax

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Stats: Gallery statistics by date
« Reply #45 on: May 18, 2008, 10:18:35 pm »

Thanks for the very quick reply. That's what I needed! 8)
Logged
Pages: 1 2 [3]   Go Up
 

Page created in 0.016 seconds with 20 queries.