PDA

View Full Version : Last Seen Online in postbit


Brad
07 Jun 2005, 10:58
Update

"This e-mail is begin sent to inform all users of my modification that I am ending support for this version today. I have moved on to vBulletin version 3.6.x and will no longer be working with older versions of the software, as such I will no longer be updating or supporting this version of the last seen online modification.

If you're running vBulletin 3.6.x you can find an updated version of the last seen online modification here: http://www.vbulletin.org/forum/showthread.php?t=123366 This new version (dubbed 2.0) includes some misc bug fixes and performance improvements.

If you're running version 1.6 of the modification on vBulletin 3.6, or plan on upgrading to vBulletin 3.6 soon you should do the following:

1) Un-install the Last seen online product via the admin cp.
2) Upgrade to vBulletin 3.6 (if you haven't already).
3) Download the new version from this thread (http://www.vbulletin.org/forum/showthread.php?t=123366) and follow the instructions in the file install.txt

The new version is not tested with 3.5.

Thank you for using my modification! I appreciate all the wonderful feedback I get from you guys via PM, e-mail, and the public forums."

This modification adds a new field to the postbit that shows when the user was last online (date and time included).

----------------------------
New version, 1.6
----------------------------

1.6 has been released, improvements include:

- If a user is a guest or deleted user, last online time is no longer shown in posts.
- Added instructions for editing postbit_legacy to the install files, should clear up any problems people were having with the template edits.

------------------
Install Instructions
------------------

See the file install.txt in the zip file.

----------------------------
Upgrading to latest version
----------------------------

- For users running version 1.5 or higher:

See upgrade.txt in the zip file

- For users running version 1.4 or lower:

See upgrade_legacy.txt in the zip file

-----------------
Install Details
-----------------

2 .xml plug-ins
2 template edits

------------------------
Version log
------------------------

- 1.6

- If a user is a guest or deleted user, last online time is no longer shown in posts.
- Added instructions for editing postbit_legacy to the install files, should clear up any problems people were having with the template edits.
- PHP code was split over two plug-ins (one at postbit_display_complete, the other at postbit_display_start).

- 1.5

- Last online time/date will not be shown if the user is invisible and the person viewing the thread is not a moderator or admin.
- Started using the product system for easier upgrades

- 1.4 and older

- Initial release

Chris M
09 Jun 2005, 23:11
Installed and working fine :)

Satan

Link14716
10 Jun 2005, 01:41
Installed and working fine :)

Satan
Same here. Nice work, Brad. :)

wi11ie1950
11 Jun 2005, 04:45
wi11ie clicks Insalled :)

mholtum
12 Jun 2005, 03:46
/me installs

Nice work, thanks!

Loki12
10 Jul 2005, 10:20
Installed! :) Very useful.

hotrod1
10 Jul 2005, 15:15
Great hack! Thanks

Caiman
20 Jul 2005, 18:42
Thanks, I NEED this little extra :p

*Installed

Michael2
07 Aug 2005, 11:13
Works great, thanks! :)

NetRover
07 Aug 2005, 12:19
Excellent, I really wanted this and it works a treat. Easy to do and worked through new xml system no problem.

GrendelKhan{TSU
08 Aug 2005, 10:18
cool!

3.5 RC 1 installed. :D

hdrmut
10 Aug 2005, 06:08
thanx

Sleepyk
17 Aug 2005, 02:20
will this work on 3.5 rc2?

pyro.699
10 Sep 2005, 00:52
^ yes

umm, want it 2 just be minutes... like, Last online: 256 Minutes ago

Brandon Sheley
10 Sep 2005, 07:25
installs, on rc3 no probs.. ty :)

testpig
09 Oct 2005, 10:33
Nice plugin .....thanks! Worked good straight up!

Quillz
09 Oct 2005, 14:49
Very nice plug-in!

mauisun
23 Oct 2005, 19:11
this is a bit stupid sounding but where in the postbit do you add
Phrase Type: GLOBAL
Varname: last_seen_loo_postbit
Text: Last Online

I just stuck it downs towards teh bottom but after putting the xml file in place I don't see any changes
..mauisun

xtreme-mobile
24 Oct 2005, 17:51
installed on vb 3.5 gold no probs

clicks install

dastar
24 Oct 2005, 19:09
this is a bit stupid sounding but where in the postbit do you add
Phrase Type: GLOBAL
Varname: last_seen_loo_postbit
Text: Last Online

I just stuck it downs towards teh bottom but after putting the xml file in place I don't see any changes
..mauisun

You don't add that part to the postbit. You have to go to Languages and Phrases in the admin cp and then select Phrase manager then add that phrase :)

folkish
26 Oct 2005, 18:48
Installed. Thanks.

freebase69
26 Oct 2005, 21:24
Cha-ching /install

Chad F.
27 Oct 2005, 11:10
Nice plugin but is there any way that this could not be shown for invisable users?

Lamby1973
10 Nov 2005, 00:18
Sorry have just tried this all seems to be working well but only get,

: Today 01:17

The Last Online text in not there can anyone help?

Lamby1973
10 Nov 2005, 00:21
Have sorted please ignore

Brad
10 Nov 2005, 00:39
Wow I forgot about this little addtion. This little modification has recived more installs then just about anything I've released, thanks to all that have installed/replied.

I see a few suggestions for this one, so I'll be re-coding it soon to make it a bit eaiser to install. I'll also make sure it is working with the latest version.

Nice plugin but is there any way that this could not be shown for invisable users?

I'll put this in the next update. :)

Thanks again all.

slvr ralliart
10 Nov 2005, 01:26
Wow I forgot about this little addtion. This little modification has recived more installs then just about anything I've released, thanks to all that have installed/replied.

I see a few suggestions for this one, so I'll be re-coding it soon to make it a bit eaiser to install. I'll also make sure it is working with the latest version.



I'll put this in the next update. :)

Thanks again all.

I installed your hack and followed the instructions EXACTLY but it's not showing up in my postbit... wanna help?

Brad
10 Nov 2005, 02:01
You will need to provide me with some sample code, can I see your modified template? Also are you sure you turned on the plug-in system?

As promised the new version is now up and is a bit easier to install, you may want to try giving it a shot as I have tested it on version 3.5.1

silurius
10 Nov 2005, 02:19
Updated without a hitch.

Brad
10 Nov 2005, 02:39
Good to hear. :)

I always get a bit worried when I send out the e-mail updates. ;)

slvr ralliart
10 Nov 2005, 05:03
Good to hear. :)

I always get a bit worried when I send out the e-mail updates. ;)

I got it figured out.. i need to edit my postbit_legacy temp


ey...this upgrade, was this released just a few mins ago? beacuse I just installed this not long ago and it doesn't say what version this is that i'm using in my plugin manager. if you did just upgrade what is new and great that I should upgrade?

Brad
10 Nov 2005, 21:22
ey...this upgrade, was this released just a few mins ago? beacuse I just installed this not long ago and it doesn't say what version this is that i'm using in my plugin manager. if you did just upgrade what is new and great that I should upgrade?

I would upgrade, simply because the old version showed the last online time when a user was invisable. :)

darksoulz
11 Nov 2005, 01:41
One thing I've noticed is that if a user gets pruned, their last online date/time shows as 12-31-1969 06:00 PM. I'm assuming that it would be the same on boards that allow unregistered users to post. Any way to not show the line if the user is not registered?

vtx1800
14 Nov 2005, 22:42
Very nice, installed

ggiersdorf
14 Nov 2005, 23:54
is there anyway to change it to say the date like 13/15/05 instead of yesterday 3:14pm etc?? if so where ans how?

Chadi
20 Nov 2005, 18:50
How do I edit the actual time format?

Last Online: 11-20-05 02:39 PM (current)

My choicee
Last Online: 11-20-05

Brad
20 Nov 2005, 22:39
To remove the time simply remove

$post[lastseen_time]

From the postbit template.

is there anyway to change it to say the date like 13/15/05 instead of yesterday 3:14pm etc?? if so where ans how?

This plug-in uses the vBulletin date settings, see this page http://www.vbulletin.com/docs/html/vboptions_group_datetime

Brad
20 Nov 2005, 22:39
One thing I've noticed is that if a user gets pruned, their last online date/time shows as 12-31-1969 06:00 PM. I'm assuming that it would be the same on boards that allow unregistered users to post. Any way to not show the line if the user is not registered?

I'll provide a fix for this soon.

GamerJunk.net
21 Nov 2005, 07:59
Thanks!

Iceburg22
21 Nov 2005, 13:34
thanks

bashy
02 Dec 2005, 20:31
Excellent, cheers m8, have clicked install

tamborinegal
03 Dec 2005, 09:17
Nice, thank you Brad :) Clicked install.

icemann
05 Dec 2005, 00:15
Simple yet effective, thank you Brad. :)

*clicks install*

ShadowOne
06 Dec 2005, 16:56
works great on 3.5.1...

Mudvayne
15 Dec 2005, 17:53
clicked install workin fine :D

TheMusicMan
15 Dec 2005, 21:38
Brad: so this is only so Smods and Admins can see the info?

Danny Diamond
24 Dec 2005, 13:28
I installed your hack and followed the instructions EXACTLY but it's not showing up in my postbit... wanna help?


same problem. nothing is showing up. :ermm:

Danny Diamond
26 Dec 2005, 15:25
*Bump* any help?

Is there any other code besides the ones in the original txt file that needs to be added?

Brad
29 Dec 2005, 23:45
Brad: so this is only so Smods and Admins can see the info?

Depends on if the user shows their online status to public members or not. If not it will only be shown to staff members.

Simon: are you using the legacy postbit template?

YOimYO
30 Dec 2005, 11:24
thx. easy and good :)

rixthemix@aol.c
04 Jan 2006, 12:17
wheres the postbit file located ?

rlamego
07 Jan 2006, 17:28
Thanks =)

dead7
11 Jan 2006, 14:27
same problem. nothing is showing up. :ermm:

Update postbit_legacy if you were just trying postbit.

4number8
13 Jan 2006, 23:16
thanks, installed very easy

Mike, it will not hurt anything editing both files, it is good to do that incase you switch later on and use the postbit (horizontal)

Brad
19 Jan 2006, 10:37
1.6 has been released, see first post for the goodies. :)

YOimYO
19 Jan 2006, 11:17
nice thx

S@NL - BlackBik
19 Jan 2006, 13:09
Thanks Brad.
Upgraded.

Gizmo5h1t3
19 Jan 2006, 17:06
installed on 3.5.1, works fine!!

Chris-777
30 Jan 2006, 14:49
/me clicks install

Didn't see it mentioned, but to remove the timestamp, just comment out the following like so:


// $this->post['lastseen_time'] = vbdate($this->registry->options['timeformat'], $this->post['lastactivity'], true);

S@NL - BlackBik
30 Jan 2006, 14:58
I just removed "$post[lastseen_time]" from the template :)
But this is better. Another less line of code to be executed.

BabyNameAddict
09 Mar 2006, 02:25
Absolutely beautiful! :nervous:

Hornstar
09 Mar 2006, 02:31
so this is still working fine for 3.5.4 Cant believe i have not seen this before now, this is what i wanted a little while back lol

Brandon Sheley
05 Apr 2006, 03:10
yes this still works for the current version of vb ;)

Invalid ID
01 May 2006, 19:56
Really wonderful

jndeakin
08 May 2006, 14:17
Tried this on 3.5.4 and don't see anything. Could I check a few points?

On the details note at the top of this page, it says there are two .xml files. There's only one in the zip file, is that right for the latest version (1.6)?

Does an option need setting in admincp to enable the hack? I can't see anything, but it's easy to miss stuff in there!

In one of the notes earlier in this thread, a user describes adding your patch of code after the marker you search for. In the install notes you say to put it before. Which is right? I put it before.

Am I misunderstanding something fundamental? I'm expecting a line such as "last seen online xxth mmm yy" within the postbit. Is there a screenshot somewhere?

Jim Deakin

Konstantinos
16 May 2006, 13:34
how do we add it in the memberinfo as well below the join date?

JohnBee
21 May 2006, 04:20
Tried this on 3.5.4 and don't see anything. Could I check a few points?

On the details note at the top of this page, it says there are two .xml files. There's only one in the zip file, is that right for the latest version (1.6)?

Does an option need setting in admincp to enable the hack? I can't see anything, but it's easy to miss stuff in there!

In one of the notes earlier in this thread, a user describes adding your patch of code after the marker you search for. In the install notes you say to put it before. Which is right? I put it before.

Am I misunderstanding something fundamental? I'm expecting a line such as "last seen online xxth mmm yy" within the postbit. Is there a screenshot somewhere?

Jim Deakin

I agree completely, I'm not dissing the hack but the instructions are a bit thin. I installed it "template mods" , uploaded the xml now what? where does the condition <if condition="$show['last_seen_online'] come in play?

JohnBee
21 May 2006, 04:21
And it it possible to make a shorter version of the online output? its a bit long for my postbit legacy area

arossphoto
21 May 2006, 23:11
And it it possible to make a shorter version of the online output? its a bit long for my postbit legacy area

I shortened it by removing the time. Just remove this code from the postbit_legacy template:

$post[lastseen_time]

arossphoto
21 May 2006, 23:12
Any suggestions for adding this to the member profile as well? I think that would be cool too.

I love this by the way, it's a great way to see how active your members are.

Cheers,

Andrew

MustangLisa
22 May 2006, 02:45
This is great, thanks. Installing now.

drgonzo120
02 Jun 2006, 14:10
nice hack, i will install it

davelacey
02 Jun 2006, 16:23
Agreed. Nice hack indeed.
*clicks install*
Thankyou. :)

Konstantinos
08 Jun 2006, 15:16
bump. we need to add this info to memberprofile as well

how ?

tamborinegal
11 Jun 2006, 08:41
Hi Brad,

I just upgraded but I'm still seeing my Last online info when I set myself as invisible... that is when I'm logged in on one computer as admin invisible and logged into another computer as a normal user.

Any ideas why it wouldn't be working? I did upgrade following your instructions.

Thanks

Clancy

Rickie3
11 Jun 2006, 09:14
just installed this very handy thanx

Gsmmind
11 Jun 2006, 16:45
ya great installed and working fine.........

Eq4bits
11 Jun 2006, 17:07
bump. we need to add this info to memberprofile as well

how ?

In Member Info Templates: Edit MEMBERINFO as follows:

FIND:<div style="padding:$stylevar[formspacer]px">
$vbphrase[join_date]: <strong>$userinfo[datejoined]</strong>
ADD BELOW: $vbphrase[last_seen_online]:
<strong>$post[lastseen_date] $post[lastseen_time]</strong>

The section after the addition should look like:<div style="padding:$stylevar[formspacer]px">
$vbphrase[join_date]: <strong>$userinfo[datejoined]</strong>
$vbphrase[last_seen_online]:
<strong>$post[lastseen_date] $post[lastseen_time]</strong>
</div>

EDIT: Ooops, need to get a kink or two out.. it shows up when previewing the template from template editor but on the profile it's not.. just the ':' is... will keep working on it...

EDIT: UGH, needs another hook in the xml, that stuff confoozles me, any chance of someone bein able to figure that part out?

Eq4bits
11 Jun 2006, 23:25
I figured how to get the last visit to show up on the profile (MEMBERINFO) but it doesn't utilize this particular product.. the only problem is it doesn't convert the date/time from the server time (I guess that's what you call it) it shows up as
Join Date: 01-01-1999
Last Visit: 1150051053

I used the following in the MEMBERINFO template:
<tr valign="top">

<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">

<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[join_date]: <strong>$userinfo[datejoined]</strong>
</div>
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[last_visit]:
<strong>$userinfo[lastvisit]</strong>
</div>
</div>

Anyone have a clue?

Note to MOD.. if this needs to be moved to a different thread, please do so... I posted it here since it kind of developed out of this thread... ;)

Brad
13 Jun 2006, 04:44
Hi Brad,

I just upgraded but I'm still seeing my Last online info when I set myself as invisible... that is when I'm logged in on one computer as admin invisible and logged into another computer as a normal user.

Any ideas why it wouldn't be working? I did upgrade following your instructions.

Thanks

Clancy
I will look into this. :)

As for memberinfo template: It's already shown there by default under the profile picture.

Sorry for the delay in support, I'm busy these days...

futuredood
25 Jun 2006, 09:30
I figured how to get the last visit to show up on the profile (MEMBERINFO) but it doesn't utilize this particular product.. the only problem is it doesn't convert the date/time from the server time (I guess that's what you call it) it shows up as


I used the following in the MEMBERINFO template:
<tr valign="top">

<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">

<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[join_date]: <strong>$userinfo[datejoined]</strong>
</div>
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[last_visit]:
<strong>$userinfo[lastvisit]</strong>
</div>
</div>

Anyone have a clue?

Note to MOD.. if this needs to be moved to a different thread, please do so... I posted it here since it kind of developed out of this thread... ;)

hey eq did you figure how to convert the code yet?

tamborinegal
25 Jun 2006, 10:05
I will look into this. :)

Thanks Brad. I appreciate the hack even the way it's working now. It's one of my favorites.

Clancy

SHalliday
02 Jul 2006, 18:22
Installed and works nicely in the postbit template. Was unable to get it to work in the memberinfo page. Hoping someone will be able to post a solution for that.

Thank you for the hack and I "Click Install".

criscokid
08 Aug 2006, 12:22
For the benefit of possible future users of this hack here's a copy of the email that Brad (developer of this mod) sent out today:

"This e-mail is begin sent to inform all users of my modification that I am ended support for this version today. I have moved on to vBulletin version 3.6.x and will no longer be working with older versions of the software, as such I will no longer be updating or supporting this version of the last seen online modification.

If you're running vBulletin 3.6.x you can find an updated version of the last seen online modification here: http://www.vbulletin.org/forum/showthread.php?t=123366 This new version (dubbed 2.0) includes some misc bug fixes and performance improvements.

If you're running version 1.6 of the modification on vBulletin 3.6, or plan on upgrading to vBulletin 3.6 soon you should do the following:

1) Un-install the Last seen online product via the admin cp.
2) Upgrade to vBulletin 3.6 (if you haven't already).
3) Download the new version from this thread (http://www.vbulletin.org/forum/showthread.php?t=123366) and follow the instructions in the file install.txt

The new version is not tested with 3.5.

Thank you for using my modification! I appreciate all the wonderful feedback I get from you guys via PM, e-mail, and the public forums."

Brad
08 Aug 2006, 13:19
Update added to first post. :)

I will try to support this version as long as possible, however do not expect me to be here everyday. :)

Konstantinos
17 Dec 2006, 07:19
does it work for 3.6.4 ?

Smoothie
17 Dec 2006, 21:51
does it work for 3.6.4 ?There's one here for 3.6. Search away....

Eq4bits
19 Dec 2006, 02:27
it does for me