61
blackrx
Re: Userlog: a new module to log user activities
  • 2013/4/16 13:18

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


Quote:
what php custom pages you meant? are you using a module for creating them or not. are these custom blocks?


it is custom php page not from any module..and i have a custom hit counter with it..thats why maybe the system-root message is displayed

downloaded the latest from svn...

thank you imrtfan....fixed all the problem....no more "Module File for system-root Not Found!" is displayed


Congrats for incoming final release

62
irmtfan
Re: Userlog: a new module to log user activities
  • 2013/4/17 5:37

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Good.
Today I add an important fix:
fix and improveadd eventCoreIncludeFunctionsRedirectheader to log redirects because usually prorammers use exit() after redirect_header function. in include/log.php and preloads/core.php(2013/04/17)


Now it can log redirects which is very important because developers use redirects after submit/delete/edit data to database.

svn:
http://svn.code.sf.net/p/xoops/svn/XoopsModules/userlog/trunk/

download:
http://www.jadoogaran.org/test255/modules/userlog_101_Final.zip

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

zip file updated on Xoops sourceforge: XOOPS2.5_mod_userlog_1.01_final_irmtfan.zip

64
irmtfan
Re: Userlog: a new module to log user activities
  • 2013/4/18 2:52

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Yesterday I tried userlog in xoops26 to test it and find incompatibilities that can be solved by now.
With some small modifications i could make it work in xoops26.
Now it can be installed in xoops26 but you will have some displaying issues as well as some strict errors and notices about missing definitions.
But it is good to test it in xoops26 just for review changes in core
I just update trunk:
http://svn.code.sf.net/p/xoops/svn/XoopsModules/userlog/trunk/

and this download:
http://www.jadoogaran.org/test255/modules/userlog_101_Final.zip

65
chefry
Re: Userlog: a new module to log user activities
  • 2013/4/20 14:32

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I just want to mention one small error

in the admin side is has a link "Go to module" which of course, take you to a white page because it's an admin module, not a user module

you might want delete that link, or at least make it refresh the admin side

66
Mamba
Re: Userlog: a new module to log user activities
  • 2013/4/20 14:44

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
you might want delete that link, or at least make it refresh the admin side

He cannot delete this link, because it is generated by XOOPS Core. In XOOPS 2.6.0 we'll have hopefully a check to make sure that it this link is visible when there is use for it.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

67
timgno
Re: Userlog: a new module to log user activities
  • 2013/4/20 17:13

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


I get mysql error:
0.000811 INSERT INTO `mod_userlog_log` (`log_time`, `uid`, `uname`, `admin`, `groups`, `last_login`, `user_ip`, `user_agent`, `url`, `script`, `referer`, `pagetitle`, `pageadmin`, `module`, `module_name`, `request_method`, `session`, `cookie`, `header`) VALUES (1366477887,1,'admin',1,'g1g2',1366477601,'::1','Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31','/xoops-2.5.5test/htdocs/modules/userlog/admin/stats.php','stats.php','http://localhost/xoops-2.5.5test/htdocs/modules/userlog/admin/file.php','Userlog',1,'userlog','Userlog','GET','{"xoopsUserId":"1","xoopsUserGroups":["1","2"],"xoopsUserTheme":"themefactory-html5","protector_last_ip":"::1","xortify":{"7D713-d6C01-E92c4-67A1E-5a6A9":{"module":{"modinfo":null,"adminmenu":null,"_msg":null,"vars":{"mid":{"value":"55","required":false,"data_type":3,"maxlength":null,"changed":false,"options":"","enumeration":""},"name":{"value":"Xortify (Client)","required":true,"data_type":1,"maxlength":150,"changed":false,"options":"","enumeration":""},"version":{"value":"401","required":false,"data_type":3,"maxlength":null,"changed":false,"options":"","enumeration":""},"last_update":{"value":"1363865891","required":false,"data_type":3,"maxlength":null,"changed":false,"options":"","enumeration":""},"weight":{"value":"1","required":false,"data_type":3,"maxlength":null,"changed":false,"options":"","enumeration":""},"isactive":{"value":"1","required":false,"data_type":3,"maxlength":null,"changed":false,"options":"","enumeration":""},"dirname":{"value":"xortify","required":true,"data_type":7,"maxlength":null,"changed":false,"options":"","enumeration":""},"hasmain":{"value":"0","required":false,"data_type":3,"maxlength":null,"changed":false,"options":"","enumeration":""},"hasadmin":{"value":"1","required":false,"data_type":3,"maxlength":null,"changed":false,"options":"","enumeration":""},"hassearch":{"value":"0","required":false,"data_type":3,"maxlength":null,"changed":false,"options":"","enumeration":""},"hasconfig":{"value":"1","required":false,"data_type":3,"maxlength":null,"changed":false,"options":"","enumeration":""},"hascomments":{"value":"0","required":false,"data_type":3,"maxlength":null,"changed":false,"options":"","enumeration":""},"hasnotification":{"value":"0","required":false,"data_type":3,"maxlength":null,"changed":false,"options":"","enumeration":""}},"cleanVars":[],"_isNew":false,"_isDirty":false,"_errors":[],"_filters":[]},"moduleConfig":{"xortify_username":"","xortify_password":"","xortify_seconds":3600,"xortify_ip_cache":86400,"server_cache":604800,"xortify_records":3600,"xortify_providers":["xortify","protector","stopforumspam.com","projecthoneypot.org"],"protocol":"rest_json","xortify_urirest":"http:\/\/xortify.com\/rest\/","xortify_urisoap":"http:\/\/xortify.com\/soap\/","xortify_uricurl":"http:\/\/xortify.com\/curl\/","xortify_urijson":"http:\/\/xortify.com\/json\/","xortify_uriserial":"http:\/\/xortify.com\/serial\/","xortify_urixml":"http:\/\/xortify.com\/xml\/","save_banned":1,"save_blocked":1,"save_monitored":1,"octeta":92,"octetb":15,"octetc":2,"email_freq":2,"email_lastseen":7257600,"uname_freq":2,"uname_lastseen":7257600,"ip_freq":2,"ip_lastseen":7257600,"logdrops":2419200,"crontype":"preloader","croninterval":7200,"fault_delay":600,"curl_timeout":40,"curl_connecttimeout":20,"google":1},"eventCoreIncludeCommonEnd":1366564287.5881,"eventCoreFooterEnd":1366552864.3547,"ImageAdmin":"Frameworks\/moduleclasses\/icons\/32","XortifyImageAdmin":"modules\/xortify\/images\/icons\/32","eventCoreHeaderCacheEnd":1366526720.4394}},"XOOPS_TOKEN_SESSION":{"0":{"id":"4ab3d4dbfb7be2cf111861652407cda6","expire":1373641043},"1":{"id":"00e562ef814c9b471996d068ec22a1c9","expire":1373641044},"2":{"id":"274a245409432c347100e38829c09ebb","expire":1373641055},"3":{"id":"aa20d6c6af34fe459019decf09a1bd01","expire":1373641056},"5":{"id":"15c27f7bcf03c68372e5903386393c08","expire":1374072322},"7":{"id":"33dd31241fe1df1bccf63a90444831eb","expire":1374072436},"8":{"id":"b188f9078a1d73ab892323adace85991","expire":1374081423},"9":{"id":"c68bf2684539312001f4588fc851bc6d","expire":1374081424},"11":{"id":"752ebd0a77729b547e67a24aef7bf8cb","expire":1374084456},"12":{"id":"e10f2c9aaab35b6a318ef00821419eef","expire":1374084734},"13":{"id":"6f789197bdc422844b6c3606f322bfec","expire":1374084734},"14":{"id":"b257c644a17c3ff133fc68e5d0c310e6","expire":1374084976},"15":{"id":"55867d80d82befc1a5a24f5b4cea4210","expire":1374084977},"16":{"id":"9e75adcaa023c012a707f785dfb80145","expire":1374084978},"17":{"id":"764cc8b8669a924370a9adcb9e3dce22","expire":1374084978},"18":{"id":"cbac7e9f02fd4ffd6026126b95c65617","expire":1374085001},"19":{"id":"d8c09eb46934be0e448b6179dd87f7fc","expire":1374085001},"21":{"id":"92221e139fa5977c0517a5e74ada6fd2","expire":1374085098},"23":{"id":"d8caf3642fbe29406032ba737af2a587","expire":1374085231},"24":{"id":"6c478d5938cdf204228571c26424d911","expire":1374085626},"25":{"id":"98352b4529b8684a2ffbb81f7c11b1dd","expire":1374085627},"27":{"id":"a2c39c95edb75b447eace90a52197a66","expire":1374085738},"29":{"id":"5308934b4058c78d03798c9ade4ad206","expire":1374085971},"31":{"id":"83ae311d8d7e424622067e3961728414","expire":1374086076},"33":{"id":"ec349b0aebd6ecb851e37b11ac533222","expire":1374086217},"35":{"id":"68a63920566dfdd1e24631dc2fc47745","expire":1374086279},"37":{"id":"94ca5c0bb45e4429fdc210ad204b0bcc","expire":1374086438},"39":{"id":"1f16ff1375927b6835505ff0cc5b0d11","expire":1374086715},"41":{"id":"1ba43ca6b4dce3dcfa47d004d386f7d1","expire":1374092234},"42":{"id":"555b9321525cc58acd3998f5bcad82d7","expire":1374092710},"43":{"id":"abb084b817e517db57f777b31364164a","expire":1374092710},"44":{"id":"940e76c4e89c245b0ed1bbdd78d49f50","expire":1374092769},"45":{"id":"bf53ceffb2744ca4d972d69664a1b628","expire":1374092770},"46":{"id":"7caaf6e8ddc13623a304ec60df5f137b","expire":1374092897},"47":{"id":"0f4f88d9b1df308128682a31da3759c6","expire":1374092897},"48":{"id":"0d27c2f83ed5365a95e858cd40cfeea4","expire":1374092913},"49":{"id":"ea8fc73a6a807bbda1bdeda0bf927adc","expire":1374092913},"51":{"id":"3a86426d866a5c0d0daa3f2fc4743588","expire":1374195686},"53":{"id":"d8e50028f4f37dbbade81db447fadfc9","expire":1374196625},"54":{"id":"5b8aa7fde38d0f107a5a39709c33d9ac","expire":1374196639},"55":{"id":"cf60f1d437041d0170a7ee229eeb4259","expire":1374196640},"56":{"id":"6233334c8c9571a01d206518961700fc","expire":1374196644},"57":{"id":"87722bdbdcc2e44e82b0628778cca282","expire":1374196645},"58":{"id":"1d160cbf89fe3738999cba01db2a766f","expire":1374196672},"59":{"id":"af61a0a576aa3e5ec16ac441e1996b8f","expire":1374196673},"60":{"id":"8b59ff9c9a3f2c88b97256d4f1dad56f","expire":1374196678},"61":{"id":"afca672bd46398322de53659de3424ec","expire":1374196678},"62":{"id":"bf0493f0f01d85b68ad97b5b632b298f","expire":1374196679},"63":{"id":"51b54c7ce5a46dc549f0cfd38a1e8bca","expire":1374196679},"64":{"id":"f2b18e11c5840a03963deec191e859d9","expire":1374196727},"65":{"id":"6947106afd41a231b623dc79e956182e","expire":1374196728},"66":{"id":"6b263f358c8edc392b6a7649df9d89a4","expire":1374196735},"67":{"id":"9598bd0dc1270ddb300574dd2b0d3be2","expire":1374196736},"68":{"id":"cd61f2fa948fe51f6f687314e0af1797","expire":1374196867},"69":{"id":"7cda981234bbdee58509092db812c4f8","expire":1374196867},"70":{"id":"7b903ec1144ab591c2c12541e038ba8c","expire":1374196867},"71":{"id":"39adf1ffe1eb5e0dcb234f950c0c1bde","expire":1374196867},"73":{"id":"71e4d36fb6e671cc495223c0d5cb3c61","expire":1374327897},"74":{"id":"f9bca243c7d5f996d024fbe9e619f948","expire":1374327911},"75":{"id":"2f0cd4207857697e6e45b61a67d0aa0f","expire":1374327912},"76":{"id":"3ccbe49fc6fe52ca0782adae3abfb296","expire":1374327916},"77":{"id":"7f6ea49e522b2a090d0dead035beeffa","expire":1374327916},"78":{"id":"57dc8cb5c56ad9a8790187db62a199fc","expire":1374327944},"79":{"id":"f9ab56c3fda794b21458f1a853e2d7ef","expire":1374327945},"81":{"id":"155ebaed198b8e375897668470f247c7","expire":1374329010},"82":{"id":"f757e8cd3a2c7a27b77390aa1e811c3b","expire":1374329048},"83":{"id":"ca52e70534fbede0ac610018e4127a15","expire":1374329049},"84":{"id":"0efe329d2dc4b3de377772a566b02197","expire":1374329071},"85":{"id":"2b5cca6b2cd23e42bf75a95173c74a60","expire":1374329072},"86":{"id":"0a9df30edeb82d0cf4c130c67203c59d","expire":1374329118},"87":{"id":"1341d74a95db58c7a053057b72e45dff","expire":1374329119},"88":{"id":"1904556bb45e5e886e12452201336418","expire":1374329965},"89":{"id":"7c6fb8e66b3cb6c015bd2630aa556932","expire":1374329965},"90":{"id":"80a5eb1a862700fe01e53661c711d2da","expire":1374330009},"91":{"id":"75f41d07ce8bdb4fa8f9ba391172866d","expire":1374330010},"92":{"id":"f3c107310f0612b5eaf974147885257a","expire":1374461502},"93":{"id":"e9485337aba7bf66e16bd96db9808e90","expire":1374461503},"94":{"id":"682cffdc5e64bc539df625cd3036424c","expire":1374461761},"95":{"id":"4cc004f5f5e0834628df0df3e78e9045","expire":1374461763},"96":{"id":"b9e263b68de6688accc899b2acde423e","expire":1375353690},"97":{"id":"8bc0ba3665f7c052f5ad75a5adb5d6d0","expire":1375353723},"98":{"id":"2d890f16861d5b61117025aed5bafdbf","expire":1375353733},"99":{"id":"3051dc1bd6909c0c8d25345c4b62c3d5","expire":1375353750},"100":{"id":"0042e254eda184142174933320401475","expire":1375440514},"101":{"id":"1a32c9687b5f9e257d641e15724b4c41","expire":1375440526},"102":{"id":"ec38879b10b38bf89524667370735af0","expire":1375440966},"103":{"id":"de4596231f3428971be4d83e7cdbb7dc","expire":1375441031},"104":{"id":"53b368228bc7d04cbad95147bd8d82fd","expire":1375441068},"105":{"id":"039d18e40e1760493ebf9a0fe5d10c20","expire":1375441081},"106":{"id":"2c36baea8005d3a909f217b8354f65f3","expire":1375441116},"107":{"id":"22f8b50bef840af20ab330c01cadba9c","expire":1375441145},"108":{"id":"2f9e5327f9b94c6ff1a2407c58da4ae7","expire":1375441167},"109":{"id":"5a60edf22b639e864ff2ca3d421c5357","expire":1375441277},"110":{"id":"a469a8410bd1dc3f78880bddbaec9389","expire":1375441277},"111":{"id":"300ec4e459a17d8d85554f8944dc0b55","expire":1375441277},"112":{"id":"8d18b7fecf07b4f16648ea5ae0100b71","expire":1375441277},"113":{"id":"8a3f66a634b92f19d8919f7f582abe40","expire":1375441277},"114":{"id":"82ac224914d110d7fe764641f45af484","expire":1375441277},"115":{"id":"b4aca055b5e624fbe9b8270c23eb0e37","expire":1375441277},"116":{"id":"09104be75fe917e1eb47c5eef0946dab","expire":1375441277},"117":{"id":"88a781684f7d34270e3e17f23068adf4","expire":1375441277},"118":{"id":"4bf66e3bcb42bc7b718eab9d882b21fd","expire":1375441277},"119":{"id":"00c38eaa35692e772f66579630e49902","expire":1375441277},"120":{"id":"e551af008f9e4d44e05b640c67e6ece0","expire":1375441333},"121":{"id":"86c2dffe7cea614d7a1633bfd2748d5b","expire":1375441524},"122":{"id":"59d01f0d4d6a68f1ffda8ffc483fe46b","expire":1375441530},"123":{"id":"6b0c3a293cadfcaf1417ee2cb664cd27","expire":1375441532},"124":{"id":"f82b5b47ac3a5c0e71f6bdb2d7f5c510","expire":1375446226},"125":{"id":"bcd69c2a11d2dbbcc358a6471b540a96","expire":1375458995},"126":{"id":"59f2f17fe3e22f6106289fd325a61a75","expire":1375462284},"127":{"id":"e2b5ab4f06146e7548d32de936cab4ed","expire":1375463465},"128":{"id":"cd852b97213042f2b3ff37e2ce7acf00","expire":1375463470}},"items_count":"0","xos_opal_ThemeFactory":{"defaultTheme":"themefactory-html5"},"xoops_inbox_count":0,"xoops_inbox_count_expire":1366464409,"XOOPS_TOKEN_REQUEST_SESSION":[{"id":"1c7901d08577d353c61313cca5cbda42","expire":1366462595},{"id":"e860a07ab553ca6eb6176dd683380a60","expire":1366462619},{"id":"c1901a8575a841e617a9c6a59e9242e7","expire":1366462644}],"xoops_member_info":{"uname":"admin","uname_expire":1366464409,"name":"","name_expire":1366464409,"email":"admin@txmodxoops.org","email_expire":1366464409,"user_avatar":"avatars\/blank.gif","user_avatar_expire":1366464409,"url":"http:\/\/localhost\/xoops-2.5.5test\/htdocs\/","url_expire":1366464409,"user_icq":"","user_icq_expire":1366464409,"user_aim":"","user_aim_expire":1366464409,"user_yim":"","user_yim_expire":1366464409,"user_msnm":"","user_msnm_expire":1366464409,"posts":"1","posts_expire":1366464409,"user_from":"","user_from_expire":1366464409,"user_occ":"","user_occ_expire":1366464409,"user_intrest":"","user_intrest_expire":1366464409,"bio":"","bio_expire":1366464409,"user_sig":"","user_sig_expire":1366464409}}','{"xoops_user255testTDMCreate139":"1-b8c455c932e8e5f65e2fefaa177499e0","xoops_user260":"1-45a76575fae16593feb41bd7781962c8","plg_tracking_identifier":"a2pm29ft58dqh7k0m5m8vgfss3","plg_tracking_referer":"http:\/\/localhost\/","plg_tracking_date":"2013-04-09","3bbe35d4457652f4afbb45875fa7cc55":"51 3505E1941 C 9 9444D175743 8 2 E5441 2455B C 9165550 F5F B17 243 35A5E404257424011571656135D1059 9591B44 45F5646465110145E48","SESSb30749d1823af84ed33fd7cf82bf4666":"sesu6ej4deas-5kOp5oz4rpyHFtVvx5Aozii-6fgXkc","xoops_session_tdmcreate":"0b4els83pvrspftlprgh2v5kp0","xoops_user":"1-e75099929fe91e4bac5e40e2f73d9c78","xoops_session255testTDMCreate139":"lmignh1af68th6dmnr4rg5bec1","install_118f20a34a8733e60660fbb49a315f31":"4r7ucvl5i85ph66b8alb964gg0","install_a346482d2501cd8b6c14d031c459f643":"cnilrv8veeqld76885us6rugi6","xoopsModsView":"large","PHPSESSID":"fo582h2jurgigsinaoaku653e3","xoops_session_test":"fo582h2jurgigsinaoaku653e3","XOLOGGERVIEW":"queries"}','["X-Powered-By: PHP\/5.3.8","Set-Cookie: PHPSESSID=fo582h2jurgigsinaoaku653e3; path=\/","Set-Cookie: xoops_session_test=fo582h2jurgigsinaoaku653e3; expires=Fri, 02-Aug-2013 21:11:27 GMT; path=\/","Content-Type:text\/html; charset=UTF-8","Expires: Mon, 26 Jul 1997 05:00:00 GMT","Last-Modified: Sat, 20 Apr 2013 17:11:27 GMT","Cache-Control: no-store, no-cache, must-revalidate","Cache-Control: post-check=0, pre-check=0","Pragma: no-cache"]')
Error number1054
Error message
Unknown column 'pageadmin' in 'field list'


0.000195 SELECT uid,groups,pagetitle,pageadmin,module,module_name,script,item_name,item_id,log_idCOUNT(*) AS count FROM mod_userlog_log WHERE ((log_time '1366391488')) GROUP BY uidgroupspageadminmodulescriptitem_nameitem_id ORDER BY count DESC LIMIT 010
Error number
1054
Error message
Unknown column 'pageadmin' in 'field list'

68
Mamba
Re: Userlog: a new module to log user activities
  • 2013/4/20 17:46

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Timgno, for code errors it's better to use "code" tag than the "quote" tag, as it takes less space, since it provides a scroll bar.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

69
timgno
Re: Userlog: a new module to log user activities
  • 2013/4/20 17:47

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Quote:

Mamba wrote:
Timgno, for code errors it's better to use "code" tag than the "quote" tag, as it takes less space, since it provides a scroll bar.


ok good for the next

70
irmtfan
Re: Userlog: a new module to log user activities
  • 2013/4/21 2:22

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


@chefry:
It should keep you to that admin page when you click on "Go to Module" and not a new white page.

@timgno: seems you have not field pageadmin in database. I added this field in older versions (In ALPHA2 and before BETA1 in 2013/03/21)
so you downloaded old svn in the past and now copy new files, but upgrade was not provided from ALPHA version to BETA.
so you either should uninstall old version and install most recent Final version.
OR
add pageadmin field yourself using phpmyadmin.


Login

Who's Online

249 user(s) are online (142 user(s) are browsing Support Forums)


Members: 0


Guests: 249


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