vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=124907

NoKz 26 Aug 2006 19:28

Awesome, thanks!

Onkel_Tom 27 Aug 2006 00:28

Great Hack!
Many thanks.
Is it possible to add a function to the hack which allows to search only for logins of a specific IP Address or part of IP?
Also a sort by IP Address would be very nice ;)

Black Tiger 27 Aug 2006 01:50

I have installed this one and will test it to consider if I will keep it installed. Thanks!

Abe1 27 Aug 2006 02:13

This hack only logs when someone uses a username and password. Every time a user goes from one page to another they use a cookie.

Abe1 27 Aug 2006 02:15

Quote:

Originally Posted by Onkel_Tom
Great Hack!
Many thanks.
Is it possible to add a function to the hack which allows to search only for logins of a specific IP Address or part of IP?
Also a sort by IP Address would be very nice ;)

I'll see what I can do.

serg472 27 Aug 2006 05:46

Quote:

Originally Posted by Abe1
This hack only logs when someone uses a username and password. Every time a user goes from one page to another they use a cookie.

I can be wrong, but they use sessions between pages and cookies only for logins.

If you take a look at includes/class_core.php, function vB_Session(), there is such piece of code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I think if you insert your log function after this line it should log cookie logins. I tested it a bit and it seems like a right place.

Abe1 27 Aug 2006 14:10

Quote:

Originally Posted by serg472
I can be wrong, but they use sessions between pages and cookies only for logins.

If you take a look at includes/class_core.php, function vB_Session(), there is such piece of code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I think if you insert your log function after this line it should log cookie logins. I tested it a bit and it seems like a right place.

Session if you have the session in the url becuase you are a guest or have cookies disabled. Other wise you would use cookies.

serg472 27 Aug 2006 18:26

When you go from page to page they try to read a session (from url or cookies), if it exists then they associate user with this session. Only if it doesnt exist they try to authenticate user from the cookie as you can see in that part of the code. This is the place where log function can be placed and it will log cookie authorizations (it is not reading sessions).

Anyway, I think I will just go ahead and make the required changes.

serg472 27 Aug 2006 21:46

Quick solution for those who want this mod to log cookie logins as well (UNOFFICIAL, UNSUPPORTED, USE AT YOUR OWN RISK etc.).

The only minor issue after the following modification is that when user logs in using a standart login form it will log this twice - as a standart login and a cookie login. I don't want to modify this hack too much, so I left it as it is.

1. Open product-log_logins.xml and find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

add below:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

2. Open loginlog.php and find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

add below:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

3. Open includes/class_core.php and find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

add below:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

4. Reinstall product.

mIRCnet 03 Sep 2006 17:09

Great hack,
Why not to make the admin have options
* Log Success Logins
* Log Error Logins
* Log All Logins

Beacuse for me I dont find it usefull to log the successed logs, but error logins would be help full for me to track, more over to make it show in the AdminCP under the waiting moderation list in the main page of AdminCP with the Total No. of login logs, so the admin will know whats going on with the users.

Abe1 06 Sep 2006 01:12

Quote:

Originally Posted by mIRCnet
Great hack,
Why not to make the admin have options
* Log Success Logins
* Log Error Logins
* Log All Logins

Beacuse for me I dont find it usefull to log the successed logs, but error logins would be help full for me to track, more over to make it show in the AdminCP under the waiting moderation list in the main page of AdminCP with the Total No. of login logs, so the admin will know whats going on with the users.

An error login is not a login.

mIRCnet 06 Sep 2006 09:33

Quote:

Originally Posted by Abe1
An error login is not a login.

Yep,
I remember before there was a hack which sends an e-mail to the admin if some one try to access the AdminCP this e-mail have the user name, password and also the ip address which was used to access it.
So if the admin was able to track error login tries he will be able to warn the user and so on to reduce the ability of stolen user names.

eclectica 06 Sep 2006 23:14

vBulletin has a way to log all failed logins to a log file. It is in admincp->vBulletin Options->Error Handling & Logging->Log Failed Admin Control Panel Logins to a File

davelacey 07 Sep 2006 00:23

Useful hack.
Thankyou. :)

Lord Zedd 07 Sep 2006 14:19

Quote:

Originally Posted by Abe1
Not sure your question.

Ill try to explain it better.

At my website www.myurl.com/forum I have a vbulletin forum. Members can log in from there. But they visit the website www.myurl.com itself a lot. So on the mainpage www.myurl.com/index.html I would like to have the option that members of the forum be able to log in from the mainpage the www.myurl.com/index.htm :)

Now I got it to work that people who are a member of the forum can log in on the mainpage www.myurl.com/index.html but only one problem there that I don't know how to fix. So the problem is this :


When a member visits the mainpage, he wants to log in to the forums. He logs in ( you get the vbulletin message that you are logged in) but you stay at the mainpage. So you log in on the www.myurl.com/index.html, the logging in part works, but it doesn't bring you to the www.myurl.com/forum. You just stay at the www.myurl.com/index.html

What I want :

mainpage (index.html) > log in > leads to forum

What the problem is :

mainpage (index.html) > log in > mainpage (index.html)


All times are GMT. The time now is 06:29.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.