![]() |
Add Last Visit field to AdminCP
1 Attachment(s)
What does it do?
This code change will add the Last Visit time field to the user edit screen in the AdminCP. Not sure why this hasn't been added to the standard code set but I've been wanting this for a while. I figured others might too. This does make a simple change to the vbulletin user.php file. What to do: To make the change do the following. Anytime you make a change you may want to make a copy of the file in case for some strange reason the fille get corrupted. Either that or just replace it with the originial file from the distribution zip. 1. Open the user.php file in your AdminCP folder in Notepad++ or your favor text editor. 2. Go to line 473. On or about line 478 will be the array element for lastpost. Insert a new lastvisit array element after the lastpost array element which should look like the following: PHP Code:
3. Find the "TIME FIELDS SECTION" of code which starts on or about line 935. 4. Insert the following line of code below the last activity field which is on or about line 941. PHP Code:
You're done. Log into your adminCP and check your work. You should now have the Last Visit time field in the user edit screen. |
This is cool. Thanks again!
|
What is difference between last activity and last visit? In image it's the same time.
|
Your last activity can be different than your last visit. Your last activity changes like when you post or blog, etc. You can login and not do anything therefore your last activity may not change.
What you see on the screen shot is from "Add new user" edit screen. Join date, Last activity, and last visit default to the current date. |
1 Attachment(s)
Just checked my ACP on my own user profile and I get this.
https://vborg.vbsupport.ru/external/2011/05/20.jpg I've just logged into my forum, not done anything else and the last Activity shows today's date and the time is from 3 minutes ago when I took the screen shot. |
Quote:
|
All times are GMT. The time now is 01:56 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|