41
Cesagonchu
Re: Userlog: a new module to log user activities

Zip file updated to your latest version.

42
irmtfan
Re: Userlog: a new module to log user activities
  • 2013/4/8 9:45

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


It is because php function (mkdir) cannot create a folder inside xoops_data folder when its chmod is below 755.

There is no automatic folder creation code for that.

there is only 2 solutions for this issue:

1- user should create folder xoops_data/userlog manually and set chmod=755

2- we should decide move that folder to xoops_data/caches/userlog (which is not a good location for important logs)

I only could add more error checking to the codes.(I commit to the svn now) but you should follow one of the above solutions.
please create "userlog" folder manually and let me know if you have any more issues.
thank you.

43
Cesagonchu
Re: Userlog: a new module to log user activities

Ok, I will test in few hours, with your latest version.

Maybe the solution is to specify somewhere users to chmod 777 the xoops_data folder.

44
xoobaru
Re: Userlog: a new module to log user activities
  • 2013/4/8 14:29

  • xoobaru

  • Just can't stay away

  • Posts: 494

  • Since: 2010/12/2


Does this use a php runonce, or a javascript tag you have to install, or does it use the database?.

Does it create a tracking cookie?

45
irmtfan
Re: Userlog: a new module to log user activities
  • 2013/4/9 2:37

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:

Maybe the solution is to specify somewhere users to chmod 777 the xoops_data folder

Yes i add that chmod check in the userlog/admin/index.php (actually 755 is enough)
but it seems it is better to add another sentence to tell user to create the folder manually.

46
Cesagonchu
Re: Userlog: a new module to log user activities

Quote:

irmtfan wrote:
Yes i add that chmod check in the userlog/admin/index.php (actually 755 is enough)
but it seems it is better to add another sentence to tell user to create the folder manually.

Why?

So, which version I test?

47
irmtfan
Re: Userlog: a new module to log user activities
  • 2013/4/9 5:53

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


@Cesag:
I added chmod check in old revisions. so you should see the below message in admin/index.php if the xoops_data chmod is under 755. e.g. 750:
Quote:

The folder 'home/blabla/public_html/xoops255/xoops_data' must be with a chmod '755' (it's now set on 750).'


but some minutes ago i add these if your xoops_data folder is under 755:

Quote:

Could not create any folder inside 'home/blabla/public_html/xoops255/xoops_data' because its chmod is under 755.
If you need to store logs in file, you should create folder 'home/blabla/public_html/xoops255/xoops_data/userlog' and set chmod = 755 manually using Cpanel.


Now IMO its completely clear for the user.


Quote:

Does this use a php runonce, or a javascript tag you have to install, or does it use the database?.

Does it create a tracking cookie?


IMO the help is completely clear. (install module and read in userlog > help)

but if you can clear it more, i will be glad to add it.

userlog will log users by getting the user_id group_ids and visitor ip from any visitor:

eg: for anone user: uid=0 gid=3 visitor ip = 66.249.66.1
for an admin it would be uid=123 gid=array(1,2,4,6,9) ip= IP

then it check the caches folder (you can find them in xoops_data/caches/xoops_cache) to find a match setting.
priorities are:
IF EXIST uid get it
ELSE IF EXIST gid get it
ELSE IF EXIST ip get it
ELSE IF Unique id = 0 log all users

if there is not any cache setting file then it check database with the above priority.
if there is not any setting for this visitor it will leave it otherwise the user will be logged.
in addition:
once it finds a setting in database it create a cache file for future access for better performance.

48
blackrx
Re: Userlog: a new module to log user activities
  • 2013/4/9 11:34

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


imrtfan thank you for this module

1. how to make referer url clickable ?
2. I cant have more than 1 setting... is this normal ?
3. column option not removed after updating setting


XOOPS Version XOOPS 2.5.5
PHP Version 5.3.20
mySQL Version 5.1.68-cll
Server API cgi-fcgi
OS Linux
safe_mode Off
register_globals Off
magic_quotes_gpc On
allow_url_fopen Off
fsockopen On
post_max_size 8M
max_input_time 60
output_buffering
max_execution_time 30
memory_limit 50M
file_uploads On
upload_max_filesize 12M

49
blackrx
Re: Userlog: a new module to log user activities
  • 2013/4/9 11:36

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


i have this message in xoops admin front page after installing userlog

Module File for system-root Not Found!

50
Mamba
Re: Userlog: a new module to log user activities
  • 2013/4/9 11:51

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
1. how to make referer url clickable ?

+1
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

Login

Who's Online

323 user(s) are online (179 user(s) are browsing Support Forums)


Members: 0


Guests: 323


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits