Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Add Last Visit field to AdminCP Details »
Add Last Visit field to AdminCP
Mod Version: 1.00, by TalkVirginia (Coder) TalkVirginia is offline
Developer Last Online: Mar 2013 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (1 vote - 5.00 average) Installs: 6
Released: 23 May 2011 Last Update: Never Downloads: 0
Not Supported Code Changes  

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:

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

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.


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

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

Click image for larger version

Name:	admincp_lastvisit.png
Views:	207
Size:	33.3 KB
ID:	129366  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
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  
Old 23 May 2011, 01:32
Special Pages Special Pages is offline
 
Join Date: Nov 2010
Real name: Edward J.
This is cool. Thanks again!
Reply With Quote
  #3  
Old 23 May 2011, 02:18
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
What is difference between last activity and last visit? In image it's the same time.
Reply With Quote
  #4  
Old 23 May 2011, 02:46
TalkVirginia's Avatar
TalkVirginia TalkVirginia is offline
 
Join Date: Oct 2008
Real name: Jim
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
Reply With Quote
  #5  
Old 23 May 2011, 19:57
Da-Vinci Da-Vinci is offline
 
Join Date: Mar 2010
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.
Attached Images
File Type: png Capture.PNG (28.9 KB, 264 views)
Reply With Quote
  #6  
Old 23 May 2011, 20:44
TalkVirginia's Avatar
TalkVirginia TalkVirginia is offline
 
Join Date: Oct 2008
Real name: Jim
Originally Posted by Da-Vinci View Post
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.
Ok. As I mentioned in a post or two up, the screen shot I took is from the "Add new user" screen. It's shows what it looks like after the code change.
__________________
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:03.

Layout Options | Width: Wide Color: