Welcome, Guest. Please login or register.
Did you miss your activation email?
February 10, 2012, 04:37:50 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149508 Posts in 21086 Topics by 7530 Members
Latest Member: dwaynebryant
* Home Help Search Login Register
Pages: [1] 2   Go Down
Print
Author Topic: Module: User Stats  (Read 12211 times)
doc
Guest
« 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)
Logged
onliner45

Offline Offline

Posts: 18



WWW
« 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
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6817


WWW
« Reply #2 on: December 01, 2006, 08:56:36 PM »

Hi Doc, nice tool ... thanks

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

burki

Offline Offline

Posts: 136



« Reply #3 on: December 01, 2006, 11:41:12 PM »

it works.... but how i get back to the site... hmmm  afro i miss the back button, there is one at my browsers head.... thats not the way... biut i like it.
Logged

CHEERS
doc
Guest
« 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  smiley

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

Offline Offline

Posts: 9



« Reply #5 on: December 21, 2006, 07:42:55 PM »

Hi Christian,

your module works great! It's a BIG plus smiley

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 » Logged

No worries, mate!
JC

Offline Offline

Posts: 56


« Reply #6 on: December 21, 2006, 08:58:09 PM »

Hi!

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

//JC
Logged
doc
Guest
« 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

Logged
tonicwater

Offline Offline

Posts: 9



« Reply #8 on: December 28, 2006, 05:15:11 AM »

@Christian -> lovely  wink
« Last Edit: December 28, 2006, 05:18:19 AM by tonicwater » Logged

No worries, mate!
doc
Guest
« 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:
$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 » Logged
tonicwater

Offline Offline

Posts: 9



« Reply #10 on: January 02, 2007, 05:59:07 PM »

@Christian:

thanks for your help. it would be a pleasure to have a solution... cool

@all:

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

No worries, mate!
gavjof

Offline Offline

Posts: 89



WWW
« 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)
Logged
doc
Guest
« 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 » Logged
davon
Guest
« 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)
« Last Edit: December 07, 2007, 04:00:21 PM by doc » Logged
pcwacht
Guest
« Reply #14 on: December 07, 2007, 09:47:18 AM »

Looks good
Logged
doc
Guest
« 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
Logged
doc
Guest
« 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 » Logged
fahad4x4

Offline Offline

Posts: 16



WWW
« Reply #17 on: April 02, 2009, 03:47:34 AM »

Hello

Thank you to this addendum

But there is a problem in coding

Logged
doc
Guest
« Reply #18 on: April 02, 2009, 04: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:
'USERNAME' => htmlentities(ucwords($row['username'])),
into:
Code:
'USERNAME' => htmlentities($row['username']),
or:
Code:
'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
Logged
fahad4x4

Offline Offline

Posts: 16



WWW
« Reply #19 on: April 06, 2009, 02:59:17 AM »

Hello

Was the solution to the problem in this code


Code:
'USERNAME' => $row['username'],

I use the Arabic language

Thank you to help
Logged
doc
Guest
« Reply #20 on: April 06, 2009, 07: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, 08:30:34 PM by doc » Logged
ahikmahin

Offline Offline

Posts: 2


« Reply #21 on: April 10, 2009, 11:39:59 AM »

hai...

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

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

Offline Offline

Posts: 3


« 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!  shocked
« Last Edit: February 26, 2010, 05:32:37 PM by gks » Logged

WB 2.8.1
Vasiliy

Offline Offline

Posts: 18


« Reply #23 on: April 02, 2010, 12: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.
Logged
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« Reply #24 on: May 03, 2010, 08: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
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Pages: [1] 2   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!