vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - [OzzModz] Log Selected Members Login/Logout IP (https://vborg.vbsupport.ru/showthread.php?t=303614)

ozzy47 10-19-2013 10:00 PM

[OzzModz] Log Selected Members Login/Logout IP
 
Another mod brought to you by,
https://vborg.vbsupport.ru/external/2015/01/1.png

Here is a small modification you can use to log selected users or usergroups IP's when they login or log out of your site.

Q. Why do I need such a thing, you ask?

A. Sometimes members, or you and your staff, feel their accounts are being compromised and without the hacker posting etc, no IP's are logged and there is no proof. Now you will have a log for such a thing. Also it was requested by, Loget, here Log IP addresses.


It is a simple installation, upload the file, ozzmodz_log_login.log, in the UPLOAD folder, to your forum root, then import the product XML, product-ozzmodz_log_login_ip

You can edit the options under the settings, OzzModz: Log Login/Logout IP Settings

Complete Feature List
  • Option to disable the mod completely.
  • Option to change the name of the file, so you can make it unique to your site, keeps it out of prying eyes.
  • Option to set which userid's to log.
  • Option to set which usergroups to log.
Frequently Asked Questions.

Q. Why do I need such a thing, you ask?

A. Sometimes members, or you and your staff, feel their accounts are being compromised and without the hacker posting etc, no IP's are logged and there is no proof. Now you will have a log for such a thing. Also it was requested by, Loget, here Log IP addresses.

Q. How do I view the log?

A. Navigate to the log file, in your forum root, via FTP, and view it from there.

Q. How do I clear the log entries?

A. You can clear the log by deleting the entries and saving.

Q. How do I read the log?

A. It will have the info in this format, Date, Time, Userid, Username, IP Address.


-------------------------------------------------------------------------------------------

If you like this mod please hit the https://vborg.vbsupport.ru/external/2015/08/1.png button to the right ---->

Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.

* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.

I appreciate the support!
-------------------------------------------------------------------------------------------

v1.0.0 Initial release.
v1.1.0 Added logging of usergroups ability.

Skyrider 10-20-2013 10:34 AM

Awesome! Though this would be really useful if it logs by usergroup(s) as well. Easier to set than setting it per userID.

ozzy47 10-20-2013 10:35 AM

So you think their is a whole usergroup that may be compromised?

Skyrider 10-20-2013 10:37 AM

Oh, no. There's a forum that I manage that often has people that attempts to scam other people (real money). It's Team Fortress 2 related. The more systems we have in place that logs IP's, shared account information, etc, the better. This would be a good system to have in place as well with the additional logging systems we have already.

ozzy47 10-20-2013 10:41 AM

Ok give me a bit, it should be a simple addition. I should have it done some time today.

Skyrider 10-20-2013 10:41 AM

Thanks, appreciate it.

ozzy47 10-20-2013 11:02 AM

Done. v1.1.0 Added logging of usergroups ability.

Remember to mark as installed if you are using the mod. :)

Skyrider 10-20-2013 11:04 AM

Installed, though out of curiosity. Isn't ozzmodz_log_login.log viewable for all if installed in root? I just tried it, and it just downloaded the *.txt file, of which anyone can download. Bit of a security risk. Can't the logs be placed under the AdminCP logs like other log statistics?

ozzy47 10-20-2013 11:07 AM

That is why you have the ability to rename it, the people would have to know the name of the file in order to see it.

ozzy47 10-20-2013 11:34 AM

So you can move the file into your admincp folder, then in the setting use this.

Code:

admincp/ozzmodz_log_login.log

Loget 10-20-2013 12:09 PM

Great modification! If the logs showed in admincp only, on a page, say ip_logs.php that would be wonderful! :)

Marked as installed.

ozzy47 10-20-2013 12:22 PM

I think it is better the way it is, you can save the file to your comp this way, and have a hard copy. :) Thanks for marking as installed.

Nirjonadda 10-20-2013 02:39 PM

Have you any chance to add option for Log view on Admin CP ? I would like to Log view on Admin CP without cPanel !

ozzy47 10-20-2013 02:52 PM

No as this is stored in a file, not in the DB.

You can download the log by typing the location and name of the log in your browser,
Code:

http://mysite.com/forums/ozzmodz_log_login.log
That is why you should also rename the file, and possibly load it into a different folder, then edit the setting, Log File Name and add the folder location, like so, admincp/ozzmodz_log_login.log

Nirjonadda 10-20-2013 02:58 PM

That good it not use DB !Can you add Admin CP Nav than add option view log location ozzmodz_log_login.log?

ozzy47 10-20-2013 03:02 PM

No, as I would not know what you named the new file to, or what folder you put it in. And as far as I know, there is no way to get that info from the settings, and tie it into a link.

As I said above, just navigate to the file in your browser. It would be the same thing if I was able to add a link in the ACP, you would still be prompted to download the log, or open it with a program.

Nirjonadda 10-20-2013 03:25 PM

I Could Have Done This Myself ! I want share add a menu Login/Logout IP log view on Admin Panel , So Login/Logout IP user can use this Features !

Instructions for Use:

1.Download the XML below.
2.You?ll need a program like Notepad++. Open the XML up in your chosen software and make your adjustments.

Code:

http://www.yoursite.com/ozzmodz_log_login.log
3.Finally, upload the file to your forum/includes/xml/ directory.

Login to your Admin cp and the new links will be showing under Login/Logout IP.

Attachment 146906

ozzy47 10-20-2013 03:47 PM

Yeah that will work, as long as the users add their file name and location to the file. I don't like doing stuff like that, I prefer it to be automatic. :)

Don't forget to mark as installed if you are using the mod.

Nirjonadda 10-20-2013 03:54 PM

I am not installed or using the mod. I just put my opinion !

ozzy47 10-20-2013 04:01 PM

Not a problem, thanks for your input. :)

00pavan00 10-25-2013 09:30 AM

A suggesting instead saving in a log file if we show user his previous ip and present ip in forum home then user can easily undertsand who logged his account before.

OR

Another better option is show last 5 login ips.

ozzy47 10-25-2013 09:47 AM

Maybe something to consider for future versions.

ezak 10-25-2013 01:39 PM

thanks for this mod, but can you make the store data in Database instead of file. so can be open the log from admincp and sorting data with ip, or date, or username (see how many ip use the member for that account)
also can clear the log from database, also can clear log for exact time only ...

ozzy47 10-25-2013 02:34 PM

TBH I avoided putting it in the db don't need unnecessary stuff being stored in there. If you stay on top of the log you will see patterns quickly.

mikez006 03-11-2014 03:52 PM

Im getting a ton of "unregistered" lines in the log file.

I have no userIDs entered and about 6 usergroups selected, unregistered is not one of them so I don't know why they are being added to the log file.

The time stamp also seems to be off

03-11-2014,11:48 PM,
03-11-2014,11:48 AM
03-11-2014,03:48 PM
03-11-2014,11:48 PM
03-11-2014,11:48 AM
03-11-2014,11:48 AM

1) Times are switching from AM to PM
2) there's a random 3:48 time listed (is this based on members time zones not the site time zone?

ozzy47 03-11-2014 06:58 PM

Not totally sure, I have not seen that before.

mikez006 03-28-2014 02:16 PM

doesn't seem to be working for me. Had a member login 2 days in a row, send PMs, but no posts and he's not listed in the log file.

ozzy47 03-28-2014 08:44 PM

Is his user ID set to be recorded, or is he in a group set to be recorded?

Silviu 09-04-2014 05:54 AM

Quote:

Originally Posted by mikez006 (Post 2486448)
Im getting a ton of "unregistered" lines in the log file.

I have no userIDs entered and about 6 usergroups selected, unregistered is not one of them so I don't know why they are being added to the log file.

The time stamp also seems to be off

03-11-2014,11:48 PM,
03-11-2014,11:48 AM
03-11-2014,03:48 PM
03-11-2014,11:48 PM
03-11-2014,11:48 AM
03-11-2014,11:48 AM

1) Times are switching from AM to PM
2) there's a random 3:48 time listed (is this based on members time zones not the site time zone?

Same issue here, Unregistered is showing up even though only two usergroups are selected.

Here's the kicker though: if I choose "No" for the Product Is Active option, it works as intended. Barring the fact that the plugin is not deactivated as it should be, the IPs are logged correctly just for the usergroups selected in the AdminCP.

However, the time reported for the logins is still out of whack regardless if the product is set to active or not. E.g (time should be 09:51 for all of them):

04-09-2014,09:51
04-09-2014,09:51
04-09-2014,08:51
04-09-2014,09:51
04-09-2014,08:51
04-09-2014,06:51
04-09-2014,09:51
04-09-2014,06:51

Glitch in the Matrix? :confused:

ozzy47 09-04-2014 09:07 AM

Not sure, I'll have to look into this some more.

vBStu 11-06-2014 04:21 PM

Awesome plugin, Any chance we can look usernames up in the admincp instead of manually going into FTP to check?

ozzy47 11-06-2014 04:25 PM

It has been asked about that before, and to be honest I had no intention of adding tables to the db to store the information. :)

Inzvestor 01-03-2015 09:13 PM

I too am getting lots of lines showing Unregistered, and I only have 2 users selected
Any suggestions?

ps Have marked as installed

ozzy47 01-03-2015 09:20 PM

Try this just for the heck of it.

Quote:

Here's the kicker though: if I choose "No" for the Product Is Active option, it works as intended. Barring the fact that the plugin is not deactivated as it should be, the IPs are logged correctly just for the usergroups selected in the AdminCP.

gsmlover4u 01-05-2015 10:13 AM

i upload in admincp
and using link mysite.com/forum/admincp/ozzmodz_log_login.log

its show me only white page
also i upload cpnav_log_pannel.xml xml file in include/xml folder then also same white page
also edit xml file to link mysite.com/forum/admincp/ozzmodz_log_login.log

ozzy47 01-05-2015 10:36 AM

Well, you can not access the log on the site at all.

Q. How do I view the log?

A. Navigate to the log file, in your forum root, via FTP, and view it from there.

gsmlover4u 01-05-2015 11:43 AM

sir mean to say we can see detail after download logfile ?
and cant see log detail in admincp ?

ozzy47 01-05-2015 01:06 PM

Correct. :)

Wolver2 02-03-2015 01:11 PM

Great seems to work!
Btw how can I disable the "Unregistered" to be logged?

ozzy47 02-03-2015 03:23 PM

It only logs them if they are logging in.


All times are GMT. The time now is 10:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01293 seconds
  • Memory Usage 1,820KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete