Welcome, Guest. Please login or register.
July 04, 2009, 05:52:47 PM

Login with username, password and session length
Search:     Advanced search
You wanna join the Website Baker team?
For more Informations read here or on our Startpage.
85231 Posts in 13116 Topics by 8209 Members
Latest Member: e-platon
* Home Help Search Login Register
+  Website Baker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Module: User Stats
Pages: [1] 2 Go Down Print
Author Topic: Module: User Stats  (Read 6643 times)
doc
A Baker's Baker
*****
Offline Offline

Posts: 2975

Never mind, love it, change it or leave it.


« 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
Pending Apprentice Baker
**
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 Team
A Baker's Baker
*****
Offline Offline

Posts: 4833


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

Hi Doc, nice tool ... thanks

cheers

Klaus
Logged

http://www.weitzel.biz
PM has been disabled
burki
Junior Baker
****
Offline Offline

Posts: 136


bake...bake...

burkichat
« 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
A Baker's Baker
*****
Offline Offline

Posts: 2975

Never mind, love it, change it or leave it.


« 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 -> Verwaltungsprogramme -> 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
Pending Apprentice Baker
**
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
Pending Apprentice Baker
**
Offline Offline

Posts: 40


« 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
A Baker's Baker
*****
Offline Offline

Posts: 2975

Never mind, love it, change it or leave it.


« 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
Pending Apprentice Baker
**
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
A Baker's Baker
*****
Offline Offline

Posts: 2975

Never mind, love it, change it or leave it.


« 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
Pending Apprentice Baker
**
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
Apprentice Baker
***
Offline Offline

Posts: 89


Grammaton Cleric 1st Class


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
A Baker's Baker
*****
Offline Offline

Posts: 2975

Never mind, love it, change it or leave it.


« Reply #12 on: January 14, 2007, 09:31:17 AM »

Hi,

had a quick look into the database entries Website Baker 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 Website Baker 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
A Baker's Baker
*****
Offline Offline

Posts: 2975

Never mind, love it, change it or leave it.


« 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
A Baker's Baker
*****
Offline Offline

Posts: 2975

Never mind, love it, change it or leave it.


« 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
Pending Apprentice Baker
**
Offline Offline

Posts: 12


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

Hello

Thank you to this addendum

But there is a problem in coding

Logged
doc
A Baker's Baker
*****
Offline Offline

Posts: 2975

Never mind, love it, change it or leave it.


« 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:
'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 Website Baker addons repository.

Regards Christian
Logged
fahad4x4
Pending Apprentice Baker
**
Offline Offline

Posts: 12


« Reply #19 on: April 06, 2009, 03: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
Pages: [1] 2 Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!