Register Members List Search Today's Posts Mark Forums Read

Mod Options
Last online in users profile Details »»
Last online in users profile
Mod Version: 1.00, by zarkov (Member) zarkov is offline
Developer Last Online: Oct 2003 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: Rating: (0 vote - 0 average) Installs: 11
Released: 20 May 2001 Last Update: Never Downloads: 1
Not Supported  

This is a hack i created after installing the "User has started X threads" hack by tube dog.

This is my first hack and im so proud i just had to share it with you all.

I will say that im new to vbb and PHP & MySQL so the code may not be the best.

Version of vbb: RC2

Files needed: getinfo.txt & lastonline.txt See zip file below

Files to modify: member.php

Template to modify: getinfo

Please reply with likes/dislikes/modifications.

The way to install it as as in tubedogs hack

1) Open lastonline.txt
2) Find this code in members.php

// get last post
if ($userinfo[posts]!=0 and $userinfo[lastpost]!=0) {

$getlastposts=$DB_site->query("SELECT thread.title,thread.threadid,thread.forumid,postid,post.dateline FROM post,thread WHERE thread.threadid=post.threadid AND thread.visible = 1 AND post.userid='$userid' ORDER BY post.dateline DESC LIMIT 20");

while ($getlastpost=$DB_site->fetch_array($getlastposts)) {

if ($getperms[canview]) {
} else {
and copy the contents of lastonline in immediatly after it.

3) Upload member.php to your server
4) Then open getinfo.txt
5) Find this code in the getinfo template

<td bgcolor="#DEDEDE"><normalfont><b>Last Post:</b></normalfont></td>
<td bgcolor="#DEDEDE"><normalfont>$lastpostdate $lastposttime<br><a href="$lastposturl">$lastposttitle</a>$nolastpost</normalfont></td>
and copy the contents of getinfo.txt immedietly after it.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Users Shown Online To Admins If Invisible And Online Everywhere 1.1 N9ne vBulletin 2.x Full Releases 13 25 Apr 2003 21:30
Show Invisible Users As Online In Postbit To Admins, If They Are Online. N9ne vBulletin 2.x Full Releases 5 12 Apr 2003 22:28

Old 20 May 2001, 11:30
smelialichu smelialichu is offline
Join Date: Nov 2001
Lovely hack, I think I may try this one outr.
Reply With Quote
Old 20 May 2001, 23:24
zarkov's Avatar
zarkov zarkov is offline
Join Date: Feb 2002
ok I think its good but then i wrote it. lol

I will hopefuly modify it to show if a user is currently online.

heres a screenshot of it in action.
Attached Images
File Type: gif lastonlinehack.gif (4.5 KB, 602 views)
Reply With Quote
Old 22 May 2001, 07:22
Nice.. thanks!
Reply With Quote
Old 25 May 2001, 20:04
Thanks! It works great!
Reply With Quote
Old 26 May 2001, 18:14
Nice hack. Invades users privacy though? Would be kewl if you could add an option to switch this off in the users control panel.
Reply With Quote
Old 27 May 2001, 06:12

Check this out. It lists the last time a person was online... but it is earlier than the last post time.

Why is that?
Reply With Quote
Old 27 May 2001, 15:05
antilife antilife is offline
Join Date: Apr 2002
How would I add this to a column on the members page after the Join Date?
Reply With Quote
Old 01 Jun 2001, 11:24
zarkov's Avatar
zarkov zarkov is offline
Join Date: Feb 2002
Cobra, Personaly I dont consider it an invasion of privacy after all the stuff on the profile pages anyway, Plus its only the last time they logged in and last time they posted , Info that could be got elsewhere anyway, last Post and PM tracking for example.

Sarge, Yea I noticed this too which is why i then changed the titles to say last logged in and last activity rather than last online,
i think that the last logged in date/time is literaly that the last time the cookie was reset, so this will stay the same until either the users cookies are deleted and they login again or they logout and therefore they login again.
The last activity is the last time they did anything at all, not just post but anything.

Antilife, I dont have the code to hand ( im at work ) but all you need to do is edit the template stated in the original post and find the line that displays the info you want to put this after then copy the contents of the txt file to there instead of where i suggested.
Reply With Quote
Old 04 Jul 2001, 13:35
before i had this hack to! but now i lost him! i've got vb 2.0.1 and i can't find the template: getinfo
how does this template now called in vb 2.0.1

Reply With Quote
Old 04 Jul 2001, 17:58
nobody??? there should be someone know the right template??

Reply With Quote
Old 04 Jul 2001, 21:22
Originally posted by Johnny
nobody??? there should be someone know the right template??

You should find it in 2.01.
Reply With Quote
Old 05 Jul 2001, 08:39
i can't find him! when i use the search functie he have no results with the template called getinfo!

i will look again.
Reply With Quote
Old 05 Jul 2001, 10:28
nope i can't find the template!
in which string is the template "getinfo" ??

very weird! i've looked in a other board of a friend and on that board there is too not a template called "getinfo"

Reply With Quote
Old 05 Jul 2001, 11:37
Originally posted by Johnny
nope i can't find the template!
Klick in the CP on [show all] and search again!
do not klick only on [expand list]!
bye bye
Reply With Quote

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
Forum Jump

New To Site? Need Help?

All times are GMT. The time now is 15:55.

Layout Options | Width: Wide Color: