Author Topic: Module: User Stats  (Read 35446 times)

doc

  • Guest
Module: User Stats
« on: December 01, 2006, 07:02:52 PM »
This module was created as response on a post in the community forum raised by benjamin-do.

Quote
User Stats functionality
The community member asked for a module which provides a table of all registered users and the date of their last login. I´ve added the amount of days the users were inactive and the possibility to send the users an email (via mailto: link).

The tool is realised as admin tool. After installation, you can access it via the "Settings" panel in the backend of WB. After pressing the button: "Show advanced options >>", the new admin tool called: "User Statistics" is available.

You can download the module in the section "Admin Tools" on http://addons.WebsiteBaker.org/pages/modules.php

Have fun
Christian (doc)

Offline onliner45

  • Posts: 18
  • Gender: Male
    • Black Russian Terrier - Schwarze Terrier
Re: Module: User Stats
« Reply #1 on: December 01, 2006, 07:52:21 PM »
Hi doc Christian,

the module works great - I think especially for sites with more than 5 users.
I´ll test it for a school site. Good job - thanks

onliner45

Offline kweitzel

  • WebsiteBaker Org e.V.
  • **
  • Posts: 6983
  • Gender: Male
Re: Module: User Stats
« Reply #2 on: December 01, 2006, 08:56:36 PM »
Hi Doc, nice tool ... thanks

cheers

Klaus

Offline burki

  • Posts: 136
  • Gender: Male
  • bake...bake...
Re: Module: User Stats
« Reply #3 on: December 01, 2006, 11:41:12 PM »
it works.... but how i get back to the site... hmmm  :mrgreen: i miss the back button, there is one at my browsers head.... thats not the way... biut i like it.
CHEERS

doc

  • Guest
Re: Module: User Stats
« Reply #4 on: December 02, 2006, 07:49:51 AM »
@burki
Each Admin tool has some kind of back link at the top (just above the tool headline).

Quote
Have a look for the following lines, they will provide the back links:
"Optionen -> Verwaltungsprogramm e -> User Statistics" (GERMAN)
"Settings -> Admininstration Tools -> User Statistics" (ENGLISH)

The first two provide back link to the Admin panel or directly to the Administration tools itself.

@others: thanks back  :-)

Regards Christian
« Last Edit: December 02, 2006, 07:52:07 AM by doc »

tonicwater

  • Guest
'Small wish'
« Reply #5 on: December 21, 2006, 07:42:55 PM »
Hi Christian,

your module works great! It's a BIG plus :-)

I have a small wish: It would be very useful too, if the login-time were also be listed!

Maybe an idea for the next update release?

thanx
TW
« Last Edit: December 28, 2006, 05:20:07 AM by tonicwater »

Offline JC

  • Posts: 55
  • Gender: Male
Re: Module: User Stats
« Reply #6 on: December 21, 2006, 08:58:09 PM »
Hi!

This is very usefull tool. I love it!!
Great work Doc!

//JC

doc

  • Guest
Re: Module: User Stats
« Reply #7 on: December 22, 2006, 07:40:03 AM »
@tonicwater: will include this feature after the Christams break, shouldn´t be a big thing at all

Regards Christian


tonicwater

  • Guest
Re: Module: User Stats
« Reply #8 on: December 28, 2006, 05:15:11 AM »
@Christian -> lovely  :wink:
« Last Edit: December 28, 2006, 05:18:19 AM by tonicwater »

doc

  • Guest
Re: Module: User Stats
« Reply #9 on: January 02, 2007, 09:37:31 AM »
@tonicwater:
You can customize output and format of the login date via the language files DE.PHP and EN.PHP.

If you want to display also the login time in the second column of the user statistic module, just change the following line in DE.PHP and EN.PHP

Code: [Select]
$MUSERSTAT_TEXT['DATE_FORMAT'] = 'd.m.y';
$MUSERSTAT_TEXT['DATE_FORMAT'] = 'd.m.y | h:m';

Best thing would be to store such settings in the WB database and make them configurable via an additional config panel in the module itself. Maybe I integrate that option in one of the next versions.

Regards Christian
« Last Edit: January 02, 2007, 09:47:56 AM by doc »

tonicwater

  • Guest
Re: Module: User Stats
« Reply #10 on: January 02, 2007, 05:59:07 PM »
@Christian:

thanks for your help. it would be a pleasure to have a solution... 8-)

@all:

>>> WISH YOU A HAPPY AND SUCCESSFUL YEAR 2007 !!! <<<

gavjof

  • Guest
Re: Module: User Stats
« Reply #11 on: January 03, 2007, 04:37:44 PM »
Great module so far!

What would be useful in a future release would be if it also showed the date the users registered.

Thanks for this mod ;0)

doc

  • Guest
Re: Module: User Stats
« Reply #12 on: January 14, 2007, 09:31:17 AM »
Hi,

had a quick look into the database entries WebsiteBaker creates. Seems that no timestamp is stored when a new user registers. Therefore it is not possible to integrate that function in any future release of the user statistics module. To make this happen, some core functions of WebsiteBaker would need to be updated.

Regards Christian
« Last Edit: January 14, 2007, 09:32:58 AM by doc »

davon

  • Guest
Module UserStats
« Reply #13 on: December 06, 2007, 10:42:19 PM »
I've added and changed some things for the userstats module for my own purposes and it works quite nice so far. i wants to give my little work back to the community, because perhaps someone could find it usefull too.

My changes are:

+ Added an IP Check
~ Changed the rows so everything fits in
~ Changed displaying the full email adress into "Mailto" with mouseover Mailto (Title) tag
+ Updated the language files EN / DE

btw, Info.php is updated too and i named the module archive into v1.3 - i hope everything is ok so far. please click on the small screenshot to get an impression

Note: Attached zip file was removed. The module is released on the Add-ons repository - thanks for this nice contribution; regards (doc)

[gelöscht durch Administrator]
« Last Edit: December 07, 2007, 04:00:21 PM by doc »

pcwacht

  • Guest
Re: Module UserStats
« Reply #14 on: December 07, 2007, 09:47:18 AM »
Looks good

doc

  • Guest
Re: Module: User Stats
« Reply #15 on: December 07, 2007, 10:36:33 AM »
Have merged the new thread with the original thread (was in the archive). Think we should not archive module threads per default.

Regards Christian

P.S.: Nice addition, will have a look on it and if ok release it on the addons-site

doc

  • Guest
User Stats v0.14 released
« Reply #16 on: December 07, 2007, 03:58:21 PM »
Hello davon,

have fixed one bug (login information was displayed wrong for user never logged into the WB backend) in the tool.php (already present since my very first release) and uploaded version v0.14 to the addons repository.

The additions from davon were taken over without any changes. Thanks for your contribution.
Have deleted the zip file of your post to avoid a mixing up of files.

Regards Christian
« Last Edit: December 07, 2007, 05:12:00 PM by doc »

Offline fahad4x4

  • Posts: 16
  • Gender: Male
  • الله أكبر
    • موقع عائلة الغثبر
Re: Module: User Stats
« Reply #17 on: April 02, 2009, 04:47:34 AM »
Hello

Thank you to this addendum

But there is a problem in coding



[gelöscht durch Administrator]

doc

  • Guest
Re: Module: User Stats
« Reply #18 on: April 02, 2009, 05:50:47 PM »
Hi,

seems to be an issues with the character encoding of template and database. What is the backend language you are using? Can you check it with English as backend language? Maybe a problem with string conversion functions and UTF-8 values in the database.

If English does not solve the problem, try to change the following line in modules/userstat/tool.php from:
Code: [Select]
'USERNAME' => htmlentities(ucwords($row['username'])),into:
Code: [Select]
'USERNAME' => htmlentities($row['username']),or:
Code: [Select]
'USERNAME' => $row['username'],
Let me know if this solves your problem. If you do not know how to change those lines, try the admin tool Addon File Editor from the WebsiteBaker addons repository.

Regards Christian

Offline fahad4x4

  • Posts: 16
  • Gender: Male
  • الله أكبر
    • موقع عائلة الغثبر
Re: Module: User Stats
« Reply #19 on: April 06, 2009, 03:59:17 AM »
Hello

Was the solution to the problem in this code


Code: [Select]
'USERNAME' => $row['username'],
I use the Arabic language

Thank you to help

doc

  • Guest
User Statistics support suspended
« Reply #20 on: April 06, 2009, 08:41:48 PM »
Hi,

please note that I have suspended the support for "User Statistics" in favor of the admin tool "user search" developed by the forum member "BerndJM".

Details about the admin tool "user search" can be found in the English or German forum thread.

If someone wants to develop or maintain the "User Statistics" module any further, please feel free to do so, but keep in mind  that the module is licensed under GNU GPL. The last stable version of "User Statistics" can be found on the WebsiteBaker Addons Repository.

Regards Christian
« Last Edit: June 01, 2009, 09:30:34 PM by doc »

ahikmahin

  • Guest
Re: Module: User Stats
« Reply #21 on: April 10, 2009, 12:39:59 PM »
hai...

when i had 300-400 members is was working awsome.... but.. i got more than 1000+ members ...now.. it doesnt work  :?

any suggessions???please/// i love this mod...

Offline gks

  • Posts: 44
  • Gender: Male
Re: Module: User Stats
« Reply #22 on: February 26, 2010, 03:00:29 PM »
I don't know, where else I could inform you about a wrong link on the website

http://www.websitebaker2.org/de/add-ons/module/admin-tools.php

where the link to the admin-addon user stats is wrong (by clicking the link one gets a swift-gallery-file).

Greetings,
gks

Edit: Wow, only a few hours later the wrong link is fixed. Many thanks!  :-o
« Last Edit: February 26, 2010, 05:32:37 PM by gks »
WB Version 2.8.3+SP7 (r1646)
PHP5.4.45
SQL Server: 5.5.49-log ( NON STRICT )

Offline Vasiliy

  • Posts: 35
  • Gender: Male
Re: Module: User Stats
« Reply #23 on: April 02, 2010, 01:41:20 PM »
But there is a problem in coding
I have the same problem with the encoding of user names.
I used russian language.
I am change
'USERNAME' => htmlentities(ucwords($row['username'])),
to
'USERNAME' => $row['username'],
Problem solved.

Offline Xagone

  • Posts: 482
  • Gender: Male
  • Developper
    • Xagone Inc
Re: Module: User Stats
« Reply #24 on: May 03, 2010, 09:08:28 PM »
i've mod this module a little, and make it available to you all :

changes :
- added french language
- added active status
- grayed out inactive users
- now able to order by active status, username, or last login

[gelöscht durch Administrator]
Xagone Inc. (formerly VotreEspace)
http://xagone.com/