![]() |
|
Mod Options |
![]() |
|||||||||||||||||||
Add Last Visit field to AdminCP
![]() Developer Last Online: Mar 2013 ![]() ![]() ![]()
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:
This array element will initialize the Last Visit Time field when manually adding a new member through the "Add new user" screen. 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.
5. Save the file. 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. Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Forum Home Enhancements Visit Statistics 1.1 - Visit Counter for vBulletin | sunrise2006 | vBulletin 3.6 Add-ons | 115 | 29 Feb 2012 21:13 |
Comments |
#2
|
|||
|
|||
This is cool. Thanks again!
No members have liked this post.
|
#3
|
||||
|
||||
What is difference between last activity and last visit? In image it's the same time.
No members have liked this post.
|
#4
|
||||
|
||||
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.
__________________
Jim - Webadmin 3:33am Paranormal Research - History will always repeat itself but sometimes the past never leave vb4.x Email Reminders for Inactive Users, Add Mass Child Forums for vb3.8.6 & vb4.1.2 No members have liked this post.
|
#5
|
|||
|
|||
Just checked my ACP on my own user profile and I get this.
![]() 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. No members have liked this post.
|
#6
|
||||
|
||||
Originally Posted by Da-Vinci
Ok. ![]()
![]()
__________________
Jim - Webadmin 3:33am Paranormal Research - History will always repeat itself but sometimes the past never leave vb4.x Email Reminders for Inactive Users, Add Mass Child Forums for vb3.8.6 & vb4.1.2 No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 19:42.