WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Modules => Topic started by: doc on December 01, 2006, 07:02:52 PM

Title: Module: User Stats
Post by: doc 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)
Title: Re: Module: User Stats
Post by: onliner45 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
Title: Re: Module: User Stats
Post by: kweitzel on December 01, 2006, 08:56:36 PM
Hi Doc, nice tool ... thanks

cheers

Klaus
Title: Re: Module: User Stats
Post by: burki 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.
Title: Re: Module: User Stats
Post by: doc 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
Title: 'Small wish'
Post by: tonicwater 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
Title: Re: Module: User Stats
Post by: JC on December 21, 2006, 08:58:09 PM
Hi!

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

//JC
Title: Re: Module: User Stats
Post by: doc 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

Title: Re: Module: User Stats
Post by: tonicwater on December 28, 2006, 05:15:11 AM
@Christian -> lovely  :wink:
Title: Re: Module: User Stats
Post by: doc 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
Title: Re: Module: User Stats
Post by: tonicwater 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 !!! <<<
Title: Re: Module: User Stats
Post by: gavjof 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)
Title: Re: Module: User Stats
Post by: doc 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
Title: Module UserStats
Post by: davon 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]
Title: Re: Module UserStats
Post by: pcwacht on December 07, 2007, 09:47:18 AM
Looks good
Title: Re: Module: User Stats
Post by: doc 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
Title: User Stats v0.14 released
Post by: doc 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
Title: Re: Module: User Stats
Post by: fahad4x4 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]
Title: Re: Module: User Stats
Post by: doc 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 (http://addons.WebsiteBaker.org/pages/modules/admin-tools.php#id_122) from the WebsiteBaker addons repository.

Regards Christian
Title: Re: Module: User Stats
Post by: fahad4x4 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
Title: User Statistics support suspended
Post by: doc 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 (http://www.websitebaker2.org/forum/index.php/topic,13040.0.html) or German (http://www.websitebaker2.org/forum/index.php/topic,13041.0.html) 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 (http://www.gnu.org/licenses/gpl.html). The last stable version (http://addons.WebsiteBaker.org/pages/modules/admin-tools.php#id_122) of "User Statistics" can be found on the WebsiteBaker Addons Repository.

Regards Christian
Title: Re: Module: User Stats
Post by: ahikmahin 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...
Title: Re: Module: User Stats
Post by: gks 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 (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
Title: Re: Module: User Stats
Post by: Vasiliy 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.
Title: Re: Module: User Stats
Post by: Xagone 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]
Title: Re: Module: User Stats
Post by: Stefek on May 03, 2010, 09:38:37 PM
Cool.

Like that it's sortable now.
Thanks.

Stefek
Title: Re: Module: User Stats
Post by: evaki on September 15, 2012, 08:10:14 PM
User Statistics 0.32.zip
 *   v0.32 stable (evaki: Sep 15, 2012)
 *   + fixed E_STRICT-Notice in tool.php [function.mktime] (since php 5.1) changed to time()
Greetings, Evaki
Title: Re: Module: User Stats
Post by: evaki on October 29, 2015, 07:21:15 PM
Erneuter Upload des Tools, da "alte" Datei anscheinend defekt
userstat(0.32).zip
userstat(0.32).7z
Letzte Änderung war schlicht
 + fixed E_STRICT-Notice in tool.php [function.mktime] (since php 5.1) changed to time()
MfG. Evaki
Title: Re: Module: User Stats
Post by: sky writer on March 25, 2016, 03:30:25 PM
Is this module safe to use on WB 2.8.3 SP6?
Also, there is a mention of a "sortable" version a couple of posts up, but the attachment has been removed.  Is this version still available?  Not a necessity, just would be a nice addition.
Title: Re: Module: User Stats
Post by: evaki on March 25, 2016, 08:57:31 PM
WB Version 2.8.3 SP6-rc3.19
PHP Version 7.0.3
SQL Server Version 5.6.10
userstats works fine
MfG. Evaki
Title: Re: Module: User Stats
Post by: sky writer on March 25, 2016, 10:04:51 PM
I have it installed on a Stable SP6 site and all seems to work fine, but since there is very little documentation or discussion on the module, I just wanted to get some confirmation that it was not going to cause any issues, especially to do with the security fix.
Thank you.
Title: Re: Module: User Stats
Post by: jacobi22 on March 26, 2016, 12:09:52 AM
problems in this module:
- the redirects in the folder protection files in module root and in the subfolders
- the history in info.php

a No-Go is the IP-Logging and the visible mailadress for every backend user with permissions to admin tools
IP-Adress and Mail are personal datas
Title: Re: Module: User Stats
Post by: jacobi22 on March 26, 2016, 02:01:22 AM
here a new version 1.0.0 with the new module structure
- shows display_name instead of username (username are personal datas)
- remove ip-display and ip-check
- set view permission to this admin tool in your group administration
- set date format in your used language file (EN.php etc)
- if you want a different style, add possible folders css, images/img, js in the themes-folder (template-folder are for the frontend view in modules) - see the example in the form-module
 in the themes folder you add style your own css-style, individual icon's etc - in this case, change the content of the backend.css with a simple import-link like
Code: [Select]
@import url("themes/default/css/backend_default.css");
other translations are welcome

(https://i.gyazo.com/bda465478d406fe04d62138a44a56433.png)
Title: Re: Module: User Stats
Post by: jacobi22 on March 26, 2016, 02:11:19 AM
sortable??

by User- / Display-Name and mayby for inactive time down && up??
Title: Re: Module: User Stats
Post by: sky writer on March 26, 2016, 05:55:15 AM
Thanks for the new version.  I like it much better.

The sorting was mentioned in an earlier version - http://forum.WebsiteBaker.org/index.php/topic,4773.msg120341.html#msg120341
I have one site where the sort function would be potentially helpful, but it is not something important at this moment.

Quote
set view permission to this admin tool in your group administration
I just checked out the permissions for a couple of the groups (managers and members) for a website and I noticed something I didn't realize, and which is not ideal... for me anyway.  This module and others default to all groups having permission to view.  Is this the default for all admin modules when they are installed?  I would much prefer they default to only the super admin having permission to view.  Then if I want to give permission to another group, I would do so manually.  Or am I misunderstanding the permission settings?
Title: Re: Module: User Stats
Post by: evaki on March 26, 2016, 10:38:28 AM
@jacobi22
"IP-Adress and Mail are personal datas"
Schön für old Germany und die EU.
Außerhalb interessiert das möglicherweise niemanden.
WebsiteBaker, the german weisheit odä so, solls hoffentlich nicht werden  :-D
Aber prima, daß Du's für die heimische Flora und Fauna angepaßt hast  (Y)
Frohe Ostertage, Happy Easter...
Evaki
Title: Re: Module: User Stats
Post by: jacobi22 on March 26, 2016, 11:10:41 AM
Quote
Außerhalb interessiert das möglicherweise niemanden.
dann soll jemand außerhalb der EU den alten Code wieder einbauen, das sind nur ein paar Zeilen ;-)
Du wirst doch nicht von jemandem erwarten, ein Modul auszuliefern, das gegen aktuelles Recht verstößt


to the permissions... the old module version has no permission check, that means: every backend user with permissions to AdminTools, can also see the Uster statistic . Since WB 2.8.3 SP5 its possible to set a permission for every admintool separat. so its possible, that only the superadmin see this tool page, if you set no permission for other groups

Here a simple sorter for this two rows, at first, i'll add the feautures from the linked post in the evening
(https://i.gyazo.com/2c5809090ba08c13fe8dd3f217ff74cd.png)
Title: Re: Module: User Stats
Post by: sky writer on March 26, 2016, 02:48:31 PM
Personally, I do not need the IP check, and therefore I found it cluttered up the display.  That's why I commented "I like it much better".  Others might want/need this functionality.

Your sorting of those two columns would be fantastic!  Thank you!
Title: Re: Module: User Stats
Post by: hgs on March 27, 2016, 08:32:14 AM
@jacobi22
(Y) Danke für´s überarbeiten (Y)
Title: Re: Module: User Stats
Post by: jacobi22 on March 27, 2016, 01:08:30 PM
ist noch nicht fertig, nur ein erster Entwurf, eine Sortierung+Anzeige nach active/inactive wird mit Sicherheit noch kommen

module is not finish yet, only a first preview. i add also a sortable row with the active/inactive status
Title: Re: Module: User Stats
Post by: jacobi22 on March 28, 2016, 10:13:30 AM
here the actual version from the last evening - colored lines for active / inactive Users (Superadmin = green, inactive=red), sortable in 3 row's Activity, Users by Name, Inactive Time since..
planed is a display from the last login  on the actual day in minutes or Hours
some users ask about a display for the actual online backend users. its possible, but then, you need a database to save the logins and the activity

(https://i.gyazo.com/652220f7f7c4c948e4463224a4fc773f.png)
Title: Re: Module: User Stats
Post by: hillschmidt on March 29, 2016, 01:29:41 PM
Kann man nicht beide Namen (user_name, display_name) anzeigen, etwa so
Code: [Select]
Hugo Peinlich (hugop)
Title: Re: Module: User Stats
Post by: jacobi22 on March 29, 2016, 01:40:56 PM
Quote
Kann man nicht beide Namen (user_name, display_name) anzeigen

für den Superadmin wird das sicher so okay sein, allgemein wird aber davon abgeraten, den Usernamen (also seinen Login-Namen) irgendwo anzuzeigen, weil dann ein möglicher Angreifer schon mal 50% der Zugangsdaten hätte
Title: Re: Module: User Stats
Post by: hillschmidt on March 29, 2016, 01:50:56 PM
mmm ... wer das Modul angezeigt bekommt, ist doch schon im Backend drinne, oder?
Title: Re: Module: User Stats
Post by: jacobi22 on March 29, 2016, 01:58:09 PM
Quote
mmm ... wer das Modul angezeigt bekommt, ist doch schon im Backend drinne, oder?

jepp, er sieht aber dann die Usernamen aller anderen User

P.S.: alles, was es hier an Sicherheitswarnunge n gab, von dieser letzten bis hin zu einer im letzten Sommer, die hier mit viel Tra-Ra verkündet wurde, betrifft immer nur Leute, die bereits einen Zugang zum Backend hatten.
Wer eine Frontend-Registrierung hat, hat dann eben auch automatisch Backend-User, auch, wenn der sich nur angemeldet hat, um genau so etwas herauszufinden.
Title: Re: Module: User Stats
Post by: jacobi22 on April 04, 2016, 10:52:55 PM
So, after some test's here the stable version. this admin tool use new functions from SP6, it doesnt work in older wb-versions
Thanks to Sky Writer and CodeALot for the translations!  (Y)

Row 1 - show's the account activity status
Row 2 - show's the display-name and Username
Row 3 - date of the last login
Row 4 - time since the last login in minutes, hours or days
Row 5 - Email to this User

Tip: its possible in WB 2.8.3 SP6 to set group permission also to separated admin-tools. if needed, use this settings, to show this user statistic for the admins only

(https://i.gyazo.com/1514eb09baecbfa290a477f3324ba488.png)
Title: Re: Module: User Stats
Post by: dbs on April 06, 2016, 08:42:44 AM
Maybe also show the groups?
(http://i.imgur.com/7KoElrX.jpg)
Title: Re: Module: User Stats
Post by: jacobi22 on April 06, 2016, 11:14:31 AM
Maybe also show the groups?

Version 1.0.2

+ display usergroups

(https://i.gyazo.com/8a20995bce6172a7860e2c2fb32cdcf2.png)
Title: Re: Module: User Stats
Post by: dbs on April 06, 2016, 11:26:10 AM
Nice, Speedy  :-D  (Y)
Title: Re: Module: User Stats
Post by: hgs on April 06, 2016, 12:55:29 PM
 (Y)dito!! (Y)
Title: Re: Module: User Stats
Post by: jacobi22 on April 19, 2016, 01:20:12 PM
hgs reports some problems with php 5.3.28 (missing bracket in cmdTool.inc) and ask about sortable groups. (Thx for this  (Y) )
here the fixed version in the attachement

some infos about the new module structure:
the idea behind this structure is, that we have a default style, delivered from the module autor and a custom style from a user. content of this custom folders are only the output design like htt- or twig-files, css, js, icons/images.
a module upgrade change never the custom files, only the default theme and, if needed, the main files in the cmd-folder.

the template-folder is the frontend-style, the themes-folder the backend-style. both folders has a subfolder, called "default" with the standard design. And you can add your own designs for every used backend-theme like this scheme

themes
---default
------css
------images
------js

---wb_theme
------css
------images
------js

---argos_theme
------css
------images
------js

if somebody want this sort-function, remove a table-rows or like a different style or css, copy the folder modules / userstat / themes /  default into the same themes-folder and rename it to your used default backend-theme (example: wb_theme)
Now you can change the files backend_modify.htt or the CSS in this folder.
For example: if you dont want the sort-function, remove this button in the backend_view.htt
and leaver there only the title
Code: [Select]
<button class="groupsort {GROUPSORTCSS}" type="submit" name="{GROUPSORT}" value="{GROUPSORT}">{TXT_TH_GROUPS}</button></th>
replace with

Code: [Select]
{TXT_TH_GROUPS}
P.S.: in the next version, i add a twig-template. the code has (then) a switch inside, if TWIG is avaiable, use the twig-template, if not, use the htt-file. TWIG is a "new" template-engine. its simple to use and give's more possibility's for the developers.
you can download the third-party-package in the download area (http://wiki.WebsiteBaker.org/doku.php/downloads)
Title: Re: Module: User Stats
Post by: hgs on April 19, 2016, 01:35:42 PM
 (Y) Great, thank you  (Y)
Title: Re: Module: User Stats
Post by: jacobi22 on April 19, 2016, 01:41:36 PM
Sorry Users, i forget to change the module version number in info.php with the effect, that WB shows a error message, module already installed

here a new , fixed version

P.S.: thanks to hgs for report
Title: Re: Module: User Stats
Post by: hgs on April 19, 2016, 01:48:16 PM

Tested with
PHP 5.3.28
PHP 5.4.45
PHP 5.5.33
PHP 5.6.19
PHP 7.0.4

It works anywhere super
Good job
Title: [SOLVED] translation needed
Post by: jacobi22 on December 24, 2017, 02:30:58 PM
hi friends

i build a new version of the user statistic module and combine this module with the addon "user search (https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?id=0E44D091)"

i add 4 new language variables and search now for a native translation in french and in dutch language for this part (here with the english words)

Quote
$MOD_USERSTATS['EDIT_ALERT']         = 'Not possible to edit this account with this tool!';
$MOD_USERSTATS['HELP']                         = 'Help';
$MOD_USERSTATS['ACTIVE']                         = 'active';
$MOD_USERSTATS['INACTIVE']                         = 'inactive';
$MOD_USERSTATS['MY_ACCOUNT']                 = 'My Account';



Title: Re: Module: User Stats
Post by: jacobi22 on December 27, 2017, 11:39:34 AM
Looks, that the Thread is closed for Users(readonly) and not possible to answer.

Thanks to everybody for the translation  (Y) (Y) (Y) via PM and EMail
Title: New Moduleversion - combined User stats & User Search
Post by: jacobi22 on December 30, 2017, 02:21:05 PM
New Version of User Statistics:

VERSION 1.1.0 (12/30/2017)



PLEASE NOTE:
this new module version combined the addons User Statistic and User search in one AdminTool
this module support the languages english, dutch, french and german. for all other user languages, it will show the english text. to build you own language, copy one of the files in the languages-folder, rename it to your used language in the ACP (see example in the wb/languages-folder) and translate step by step every wording

Vers 1.1.0 (jacobi22)
         v1.1 stable (jacobi22: 16.12.2017)
          + combined with user search-module (Autors: Bernd Michna, Daniel Fankhauser (badknight))
          + rename it as wbUserstat
 
Vers 1.0.4 stable (jacobi22: 25.01.2017)
          + fix specialchars problem in displayname && Username (thx to Blueeyes007)
          + add tool icon to show in AdminTools (WB 2.8.3 SP7 + Patch)


KNOW HOW
Further information can be found in this thread.

DOWNLOAD
Download the zip from this download link (https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?id=080CE781).


Uwe (jacobi22)

SCREENSHOT

(https://i.gyazo.com/fb3eff0c738d6a957c8ed3b7f54fa7e0.png)
Title: Re: Module: User Stats
Post by: sky writer on December 30, 2017, 09:03:34 PM
Love it!  (Y)

Found a little bug.

Under "Search users", the first line does not show:
Quote
Here are some advanced functions to search users.
You can combine several criteria to improve your search, if you don't need a criteria, simply left it blank.

There is a typo (an extra < ) on line 79 of  usersearch_form.twi g

Code: [Select]
<p><{{ lang.HOWTO }}</p>should be:
Code: [Select]
<p>{{ lang.HOWTO }}</p>
Hope this helps.

I also have some suggestions for the English Language file... coming soon.
Title: Re: Module: User Stats
Post by: sky writer on December 30, 2017, 09:17:41 PM
The HELP (?) popup is on a timer.  I find it too short to read all the text.  My preference would be to have it only manually toggle on and off.  Just a suggestion.
Title: Re: Module: User Stats
Post by: sky writer on December 30, 2017, 09:54:02 PM
Here is a suggested English Language file.

Hope this helps.
Title: Re: Module: User Stats
Post by: jacobi22 on December 31, 2017, 11:19:34 AM
thanks a lot for the help

 *        v1.1.1 stable (jacobi22: 31.12.2017)
          + repair typofix in twig template
          - remove timer function for the search hint
          + replace english translation with a native translation (thx to Sky Writer)

the timer function is only deactivated as default in the code (usersearch_form.twi g Ln 207). if somebody want this function, remove the double slash in the front of this line

DOWNLOAD
Download the zip from this download link (https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?id=080CE781).
Title: Re: Module: User Stats
Post by: sky writer on December 31, 2017, 03:30:06 PM
Happy to help.

I missed one English Language suggestion.  From the info.php file:
Quote
$module_name            = 'Userstatistic & Search';
"Userstatistic" is not an English word.  I would suggest "User Statistic & Search" as the English module name.


I also wonder if there might be a better heading for this search criterion:
(https://i.gyazo.com/babedcaf5e9d486a3c23b1d9b88f3de2.png)

Instead of "Last login", perhaps "User group"?

Both of these suggestions are not crucial, just something for you to consider.



I am also experiencing some unexpected search results.  Maybe I am not understanding the filters correctly.

When I do a search with the following filters set:
Search term(s)
bill
Within the field(s)
Username
Group
Manager
Last login
 01.12.2016 10:11
AFTER THIS DATE

The results are:
Search term(s)
bill
Within the field(s)
Username
Group
All groups
Last login
Before the 01.12.2016 10:11

Hope this helps.
Title: Re: Module: User Stats
Post by: jacobi22 on January 01, 2018, 01:06:35 PM
so, next try...    :oops: :oops: :oops:
maybe, i'm blind for detail's if i work too long on this module. :|


VERSION 1.1.0 (12/30/2017)

Vers 1.1.2 stable (jacobi22: 01.01.2018)
          + repair POST-Handling, results works with wrong datas (thx to Sky Writer)


DOWNLOAD
Download the zip from this download link (https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?id=080CE781).

Title: Re: Module: User Stats
Post by: evaki on January 01, 2018, 02:39:18 PM
Hab ein Verständnisproblem. Hinter den Einträgen "Letzter Login am" befindet sich noch ein "Letzter Login" exkl. mit Minutenangabe (siehe Anhang). "Krieg ich nicht auf die Reihe" bzw. Brett vorm Kopp?
Woher bekommt das Teil die Daten, das WB-Stat (origin) hatte ich vorher deinstalliert.
MfG. Evaki
Title: Re: Module: User Stats
Post by: jacobi22 on January 01, 2018, 03:39:44 PM
Quote
Hinter den Einträgen "Letzter Login am" befindet sich noch ein "Letzter Login"

Lesen bildet.... (oder Screenshot anschauen)  :wink:

"Letzter Login am"  ist das letzte Login-Datum dieses Users
"Letzter Login" ist die vergangene Zeit seit diesem letzten Login

ich dacht, es sei selbst erklärend... :roll:

Quote
Woher bekommt das Teil die Daten, das WB-Stat (origin) hatte ich vorher deinstalliert.

aus der Users-Tabelle
es handelt sich hier um eine Userstatistik, heißt: alle Leute, die Zugang zum Backend haben,
WB-Stat ist dagegen eine Besucherstatistik fürs Frontend
Title: Re: Module: User Stats
Post by: evaki on January 01, 2018, 04:28:33 PM
Wahrscheinlich sinds die alkoholischen Nachwehen, und die Polenböller.
Deine Erklärung ist für mich beim ersten Eintrag ja einleuchtend.
Bei zweiten und dritten nicht mehr.
9.11.2017 15:41  // vor 53 Minuten
9.12.2017 18:38  // vor 23 Minuten
Also die seitdem Login vergangene Zeit (Minuten) soll das sein?

Vielleicht sinds bei mir ja nicht nur die Nachwehen, sondern schon  die Vollklatsche -upps
Da komm ich im Moment nicht mit. Vielleicht morgen mit viel Kaffee, oder Du zeigts didaktisches Talent, und beseitigst meine Denksperre (das ist schlimm, ich sags Dir, hatte heute schon einmal so ne Situation -peinlich -schäm)

Aber noch 'ne -vielleicht wichtige/wichtigste und unterlassene- Erklärung: Es erscheint mir deshalb sonderlich, weil ich heute nur als Superadmin -also erster Benutzer/erste Zeile- drin war. Da scheinen mir die zweite (admin) und dritte (editor) nicht logisch. Aber vielleicht sollte ichs heute auch einfach nur beiseite legen, bevors schlimmer wird. Aber kannst ja mal schauen, obs reproduzierbar ist, ich nur etwas übersehen habe, oder ich heute tatsächlich komplett von der Rolle bin..
MfG. Evaki
Title: Re: Module: User Stats
Post by: evaki on January 01, 2018, 04:56:24 PM
Es ist übrigens nicht so, daß ich nicht nachvollziehen könnte, wenn "Letzter Login am" der erste an diesem Tag erfolgte Login, und dann in "Letzter Login" die seit diesem Login vergangene Zeit (bis möglicherweise 00:00) angezeigt wird. Die Tabellenbezeichnung macht mir Sorgen, und bringt -bei mir- erstmal mehr Verwirrung, statt unmittelbare Nachvollziehbarkeit .
MfG. Evaki
Title: Re: Module: User Stats
Post by: jacobi22 on January 01, 2018, 05:51:32 PM
hab dein Anliegen garnicht nachvollziehen können, weil beim Blick auf den Bildschirm eine korrekte Anzeige zu sehen war, allerdings nur auf der Ergebnisseite

Ursache war ein = in der Schaltung der Ausgabe für die Minuten >= 0, weil die im Falle der Tagesanzeige ja auch null sind
Hab jetzt noch eine Bedingung mehr eingefügt

Wir testen jetzt erstmal intern weiter, ich denk, viel ist es nicht mehr, aber ich muß halt jedes Mal die Versionsnummer hochsetzen, damit es installierbar bleibt

Dank für dein Engagement  (Y)
Title: Re: Module: User Stats
Post by: jacobi22 on January 01, 2018, 05:57:39 PM
Quote
Die Tabellenbezeichnung macht mir Sorgen, und bringt -bei mir- erstmal mehr Verwirrung

der Grund und der Haken an der Geschichte sind die unterschiedlichen Sprachen , z.b. eben
Last Login: 57 minutes ago

das verhindert, das man schon im Tabellenheader einen besseren Bezeichner einfügt wie z.B.
Letzter Login vor:
Title: Re: Module: User Stats
Post by: evaki on January 01, 2018, 06:58:47 PM
jep = wunnebar!
Title: Re: Module: User Stats
Post by: jacobi22 on January 03, 2018, 11:18:30 AM
So, it looks okay now,
vers. 1.1.4 and vers 1.1.5 are only style changes, no changes in the function
the info icon is now nearly to the search field (where you need it) and all search criteria's now in one single fieldset
Special thanks again to the tester's and reporters!  (Y)


VERSION 1.1.0 (12/30/2017)

 *        v1.1.5  stable (jacobi22: 02.01.2018)
           little bit styling (thx to Sky Writer)

 *        v1.1.4  stable (jacobi22: 01.01.2018)
          replace info-icon (thx to Sky Writer)

 *        v1.1.3 stable (jacobi22: 01.01.2018)
          + time difference output (thx to Sky Writer, evaki)

 *        v1.1.2 stable (jacobi22: 01.01.2018)
          + repair POST-Handling, results works with wrong datas (thx to Sky Writer)

 *        v1.1.1 stable (jacobi22: 16.12.2017)
          + repair typofix in twig template
          - remove timer function for the search hint
          + replace english translation with a native translation (thx to Sky Writer)

 *        v1.1 stable (jacobi22: 16.12.2017)
          + combined with user search-module (Autors: Bernd Michna, Daniel Fankhauser (badknight))
          + rename it as wbUserstat


DOWNLOAD
Download the zip from this download link (https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?id=080CE781).


Title: Re: Module: User Stats Version 1.1.7
Post by: jacobi22 on February 08, 2018, 01:54:44 PM
Some users reports problem in the versions compare and also a missing module-own-css
special thanks to sky writer, dbs and hgs for testing and reports
P.S.: the package included some official w3-color-themes (https://www.w3schools.com/w3css/w3css_color_themes.asp) in folder /themes/default/css/w3-themes
if you want to try one of this color-themes, change the link in backend.css from the original wb-theme to a different color here in line 20:
example
Code: [Select]
@import url("themes/default/css/w3-themes/w3-theme-green.css");
(https://i.gyazo.com/1d61a8fde8dcc4eaebd004c51f686efc.png)

*         v1.1.7 stable (jacobi22: 06.02.2018)
          + change fontsize for username - too small (thx to Sky Writer)
          + check versions check in install.php
          + rename some inc-files to file-type = php (prepared for WB 2.11.x)

*         v1.1.6 stable (jacobi22: 03.01.2018)
          + fix versions compare in install (thx to Sky Writer)
          + add own w3.css for alternative backend theme's

 *        v1.1.5  stable (jacobi22: 02.01.2018)
           little bit styling (thx to Sky Writer)

 *        v1.1.4  stable (jacobi22: 01.01.2018)
          replace info-icon (thx to Sky Writer)

 *        v1.1.3 stable (jacobi22: 01.01.2018)
          + time difference output (thx to Sky Writer, evaki)

 *        v1.1.2 stable (jacobi22: 01.01.2018)
          + repair POST-Handling, results works with wrong datas (thx to Sky Writer)

 *        v1.1.1 stable (jacobi22: 16.12.2017)
          + repair typofix in twig template
          - remove timer function for the search hint
          + replace english translation with a native translation (thx to Sky Writer)

 *        v1.1 stable (jacobi22: 16.12.2017)
          + combined with user search-module (Autors: Bernd Michna, Daniel Fankhauser (badknight))
          + rename it as wbUserstat


DOWNLOAD
Download the zip from this download link (https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?id=080CE781).
Title: Re: Module: User Stats
Post by: jacobi22 on February 10, 2018, 03:08:11 PM
Something go'es wrong in the zip-file of Version 1.1.7 - sorry for that  :oops: :oops: :oops:
It's solved in the actual version 1.1.8

actual VERSION 1.1.8 (02/10/2018)
 *        v1.1.8  stable (jacobi22: 10.02.2018)
            + fix issue in rename files (thx to paulchen)

Tip: install version 1.1.8 like the install of a new module or overwrite the old files from vers. 1.1.7 with the new files from the new version via FTP

DOWNLOAD
Download the zip from this download link (http://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?id=080CE781).
Title: Re: Module: User Stats
Post by: sky writer on February 10, 2018, 04:40:28 PM
Tip: install version 1.1.8 like the install of a new module or overwrite the old files from vers. 1.1.7 with the new files from the new version via FTP

Are you saying that you can't just upgrade from 1.1.7 to 1.1.8 in the usual way - Admin / Add-On / Install Module with "Overwrite newer Files" checked?
Are you saying you must uninstall version 1.1.7 and then install 1.1.8 clean?

Sorry, I am confused by the addition of this tip?
Title: Re: Module: User Stats
Post by: jacobi22 on February 10, 2018, 05:18:11 PM
Quote
Are you saying that you can't just upgrade from 1.1.7 to 1.1.8 in the usual way

i didnt say anything like this and i did'nt found a place in my words, where it is possible, to read something like this!!!

the User "paulchen" reports, that it was not possible for him, to make a uninstall of version 1.1.7, thats why the tip - it is not needed to deinstall the broken version first
Title: Re: Module: User Stats
Post by: sky writer on February 10, 2018, 07:48:16 PM
Calm down.  How on earth was I supposed to know your tip was for "paulchen" specific situation?  Not knowing that the tip was for this user, when I read your words:

Quote
Something go'es wrong in the zip-file of Version 1.1.7
  Tip: install version 1.1.8 like the install of a new module or overwrite the old files from vers. 1.1.7 with the new files from the new version via FTP

It gives me the impression that special circumstances are necessary for install, other than a usual "upgrade".  Otherwise... what purpose would your added tip serve, if all you are saying is install the 1.1.8 module like you would any other module upgrade?  :?
Title: Re: Module: User Stats
Post by: jacobi22 on February 10, 2018, 08:25:47 PM
has nothing to do with the answer to paulchen

nowhere in my words you found a part, that suggest, that we have to use a new install-process
Title: Re: Module: User Stats
Post by: sky writer on February 11, 2018, 05:28:42 PM
nowhere in my words you found a part, that suggest, that we have to use a new install-process

Well, if you say so, in bold text, I guess you know me better than I know myself.  :o

Seriously, why are you reacting in such a combative tone (bold and multiple exclamation points) to my questions which were simply asking for clarification?  You answer me like you perceive I am attacking you.  They were simply friendly follow up questions.

From my comprehension as a fluent English speaker, EVERYTHING in your communication suggests that the normal "upgrade" process is not advised.  This could be the result of nuance in translation, but if it is, I should not be the only one able to recognize this possibility and take some responsibility.

has nothing to do with the answer to paulchen

If that is the case, then your reply to my initial clarification questions further confuses:

the User "paulchen" reports, that it was not possible for him, to make a uninstall of version 1.1.7, thats why the tip - it is not needed to deinstall the broken version first


I use this module (upgrading from version to version) on many websites.  So, in an attempt to get the clarification that I was seeking in my initial questions, I will try to simplify the source of my confusion.  If version 1.1.7 can be upgraded to version 1.1.8 using the normal Upgrade process ( Admin / Add-On / Install Module with "Overwrite newer Files" checked? ), what is the purpose of your tip:

Tip: install version 1.1.8 like the install of a new module or overwrite the old files from vers. 1.1.7 with the new files from the new version via FTP

I have never noticed the inclusion of a special "tip" in your previous version announcements?  So, seeing a "tip" gives the impression that there is something worth special note contained within the tip.  If there is nothing worth noting in the tip... what is the purpose of the tip?  That is all that my question were meant to ascertain.
Title: Re: Module: User Stats
Post by: jacobi22 on February 11, 2018, 05:44:47 PM
okay, okay, you are the winner

i stop my engagement for this and other addons, not possible for me, to talk without problems

regards and bye
Title: Re: Module: User Stats
Post by: johnbroeckaert on February 11, 2018, 06:32:20 PM
@jacobi22 and @sky writer

I am an "outsider" on this post but I do not understand the eager on both sites. As far as I could read the treats it was clear that the tip was for a specific user and the error in this module is solved.             point.
 :-) :-)

Title: Re: Module: User Stats
Post by: jacobi22 on February 11, 2018, 06:45:21 PM
you see, what's happend, if you dont talk in your own, native language and as result, i write my text in the future only in my native language, that included also the public support.
If somebody mean's, he can understand my bad english, he can of course use the private post (email or PM) to talk with me

theme for me closes

regards  Uwe

P.S. my itention for my bad, bad words in the "tip" was the answer from paulchen, that it was not possible for him, to uninstall the module
and in my eye's, it was a good to maybe also for the others - dont try to uninstall the broken version 1.1.7, overwrite it with a simple new install of the repaired version

maybe, it's a translation problem, i ask over 10 german users, what do you think about this? is this a advise for a new install method? 10 answer's with "NO". looks, that it's different for a native english speaker.
but i see now, it is not possible for me to explain simple things in a foreighn language

Title: Re: Module: User Stats
Post by: sky writer on February 11, 2018, 07:40:31 PM
I am an "outsider" on this post but I do not understand the eager on both sites.

I'll explain my seeming eagerness for clarification.  I have dozens of websites with this module installed.  I asked a question because I wanted to ensure I understood the installation tip provided in the version 1.1.8 release post.  That is all.

As far as I could read the treats it was clear that the tip was for a specific user and the error in this module is solved.             point.
 :) :)

Please help me.  How was it clear to you that "the tip was for a specific user" by reading the release post alone - https://forum.WebsiteBaker.org/index.php/topic,4773.msg214196.html#msg214196

I arrived at the same conclusion, "that the tip was for a specific user" after reading the jacobi22's response - https://forum.WebsiteBaker.org/index.php/topic,4773.msg214198.html#msg214198

But then I was told
has nothing to do with the answer to paulchen

So, I asked a follow up question to try to find clarity.  I was not eager to beat up on jacobi22 for "bad English", I was asking a question because I did not understand what he was saying.  Those are two very different things.

P.S. my itention for my bad, bad words in the "tip" was the answer from paulchen, that it was not possible for him, to uninstall the module
and in my eye's, it was a good to maybe also for the others - dont try to uninstall the broken version 1.1.7, overwrite it with a simple new install of the repaired version

Now, I fully understand.  Thank you.
Title: Re: Module: User Stats
Post by: johnbroeckaert on February 11, 2018, 08:05:04 PM
Quote
So, I asked a follow up question to try to find clarity.  I was not eager to beat up on jacobi22 for "bad English", I was asking a question because I did not understand what he was saying.  Those are two very different things.

Maybe, maybe it's more convenient to make your language use sound softer?  :-D :-D
We, here on the forum, are all WB users and I think we are very glad that we can put some questions here.
Title: Re: Module: User Stats
Post by: evaki on February 11, 2018, 08:22:01 PM
>>Maybe, maybe it's more convenient to make your language use sound softer?  :-D :-D
In Germany, there is actually a way of doing this. It's called "Vereinfachte Sprache (german only) (https://de.wikipedia.org/wiki/Leichte_Sprache)" (simplified language ? ? ? )
MfG. Evaki

Title: Re: Module: User Stats
Post by: jacobi22 on February 11, 2018, 08:53:26 PM
Sprecht deutsch und das Thema ist erledigt  :wink:
Title: Re: Module: User Stats
Post by: evaki on February 11, 2018, 11:07:58 PM
Im englischsprachigen Teil des Forums?
Title: Re: Module: User Stats
Post by: sky writer on February 11, 2018, 11:47:44 PM
If somebody mean's, he can understand my bad english, he can of course use the private post (email or PM) to talk with me

First and foremost, it was not a case of you having used "bad english".  It turns out it was a case of you not initially including enough background and/or details for your chosen words to be completely clear to me.

I thought about contacting you through PM, but...

and in my eye's, it was a good to maybe also for the others...

...my motivation for asking the question in the public forum, instead of a PM, was the exact same.  I though maybe some other users might benefit from getting a follow up clarification.

Finally, it matters very little to me what language anyone writes in.  I have Google auto-translation running on the forum.  But regardless if you write in English or your native language... if anyone has a follow up question, they should not be made to feel bad for asking it.
Title: Re: Module: User Stats
Post by: jacobi22 on February 12, 2018, 12:34:41 AM
Im englischsprachigen Teil des Forums?

ich sagte oben bereits, das englischer Support für mich tabu ist ebenso wie das Reparieren oder der Neubau von Modulen. Ich werde diese über meine (deutschsprachige) Homepage vertreiben und wer dann Fragen hat, möchte das bitte auf deutsch tun.

Ich werde hier fertig gemacht für einen Satz, der ein ganz normales Vorgehen beschrieb und nicht etwa etwas komplett Neues, das so wichtig ist für die Gemeinde, das es dringend einer fachgerechten Übersetzung bedarf. Dieser Satz war eindeutig und nirgendwo falsch zu verstehen.
Title: Re: Module: User Stats
Post by: evaki on February 12, 2018, 09:06:20 AM
<offtopic>
Ehrlich gesagt, ich verstehe einiges nicht.
>>Ich werde hier fertig gemacht für einen Satz...
Falls alles andere, als ein Verständigungswille im Vordergrund steht, ist es mit der Gemütlichkeit natürlich schnell vorbei.
>> Ich werde diese über meine (deutschsprachige) Homepage vertreiben
Ist ja irgendwie am Gedanken des Forums vorbei, bin völlig irritiert. 
</offtopic>

MfG. Evaki
Title: Re: Module: User Stats
Post by: dbs on February 13, 2018, 02:33:45 PM
Tested in a 2.11 subfolder installation with PHP 7.0.

If a user is in multiple groups, you cannot see all.
Only the first group found is displayed. Maybe would be nice to see all groups.

The wildcard function could be a checkbox. But this is a luxury feature.  :-D
Modul works without errors.