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: Displaying number of members in index page  (Read 3701 times)

0 Members and 1 Guest are viewing this topic.

tysoh

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Displaying number of members in index page
« on: November 19, 2006, 03:33:29 am »

In the index page, its shows: "84 files in 40 albums and 1 categories with 2 comments downloaded 4208 times"

I would like to show the number of members that have registered with us also, pls advice, thanks in advance.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Displaying number of members in index page
« Reply #1 on: November 19, 2006, 12:06:00 pm »

Then you need extra mysql query to count the number of members from xxx_users table and then add it to $statistics variable under get_cat_list() function of index.php (tip:you can run your mysql query under that function ;D )
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Displaying number of members in index page
« Reply #2 on: November 19, 2006, 12:38:16 pm »

Nibbler's onlinestats plugin shows the number of registered users, however not in the gallery stats you mentioned

tysoh

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Displaying number of members in index page
« Reply #3 on: December 01, 2006, 02:14:22 am »

Then you need extra mysql query to count the number of members from xxx_users table and then add it to $statistics variable under get_cat_list() function of index.php (tip:you can run your mysql query under that function ;D )


Would mind showing me a step-by-step how to do it? Thanks in advance...
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Displaying number of members in index page
« Reply #4 on: December 01, 2006, 11:42:49 am »

Take a look at Nibbler's onlinestat plugin that sramm suggested it will help you to get the idea
Logged
‍I don't answer to PM with support question
Please post your issue to related board
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 20 queries.