PDA

View Full Version : Last Seen Online in postbit


Brad
06-06-2005, 10:00 PM
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: https://vborg.vbsupport.ru/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 (https://vborg.vbsupport.ru/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
06-09-2005, 10:11 PM
Installed and working fine :)

Satan

Link14716
06-10-2005, 12:41 AM
Installed and working fine :)

Satan
Same here. Nice work, Brad. :)

wi11ie1950
06-11-2005, 03:45 AM
wi11ie clicks Insalled :)

mholtum
06-12-2005, 02:46 AM
/me installs

Nice work, thanks!

Loki12
07-10-2005, 09:20 AM
Installed! :) Very useful.

hotrod1
07-10-2005, 02:15 PM
Great hack! Thanks

Caiman
07-20-2005, 05:42 PM
Thanks, I NEED this little extra :p

*Installed

Michael2
08-07-2005, 10:13 AM
Works great, thanks! :)

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

GrendelKhan{TSU
08-08-2005, 09:18 AM
cool!

3.5 RC 1 installed. :D

hdrmut
08-10-2005, 05:08 AM
thanx

Sleepyk
08-17-2005, 01:20 AM
will this work on 3.5 rc2?

pyro.699
09-09-2005, 11:52 PM
^ yes

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

Brandon Sheley
09-10-2005, 06:25 AM
installs, on rc3 no probs.. ty :)

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

Quillz
10-09-2005, 01:49 PM
Very nice plug-in!

mauisun
10-23-2005, 06:11 PM
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
10-24-2005, 04:51 PM
installed on vb 3.5 gold no probs

clicks install

dastar
10-24-2005, 06:09 PM
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
10-26-2005, 05:48 PM
Installed. Thanks.

freebase69
10-26-2005, 08:24 PM
Cha-ching /install

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

Lamby1973
11-09-2005, 11:18 PM
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
11-09-2005, 11:21 PM
Have sorted please ignore

Brad
11-09-2005, 11:39 PM
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
11-10-2005, 12:26 AM
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
11-10-2005, 01:01 AM
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
11-10-2005, 01:19 AM
Updated without a hitch.

Brad
11-10-2005, 01:39 AM
Good to hear. :)

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

slvr ralliart
11-10-2005, 04:03 AM
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
11-10-2005, 08:22 PM
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-11-2005, 12:41 AM
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
11-14-2005, 09:42 PM
Very nice, installed

ggiersdorf
11-14-2005, 10:54 PM
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
11-20-2005, 05:50 PM
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
11-20-2005, 09:39 PM
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
11-20-2005, 09:39 PM
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
11-21-2005, 06:59 AM
Thanks!

Iceburg22
11-21-2005, 12:34 PM
thanks

bashy
12-02-2005, 07:31 PM
Excellent, cheers m8, have clicked install

tamborinegal
12-03-2005, 08:17 AM
Nice, thank you Brad :) Clicked install.

icemann
12-04-2005, 11:15 PM
Simple yet effective, thank you Brad. :)

*clicks install*

ShadowOne
12-06-2005, 03:56 PM
works great on 3.5.1...

Mudvayne
12-15-2005, 04:53 PM
clicked install workin fine :D

TheMusicMan
12-15-2005, 08:38 PM
Brad: so this is only so Smods and Admins can see the info?

Danny Diamond
12-24-2005, 12:28 PM
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
12-26-2005, 02:25 PM
*Bump* any help?

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

Brad
12-29-2005, 10:45 PM
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
12-30-2005, 10:24 AM
thx. easy and good :)

[email protected] vbmenu_register("postmenu_864152", true);
01-04-2006, 11:17 AM
wheres the postbit file located ?

rlamego
01-07-2006, 04:28 PM
Thanks =)

dead7
01-11-2006, 01:27 PM
same problem. nothing is showing up. :ermm:

Update postbit_legacy if you were just trying postbit.

4number8
01-13-2006, 10:16 PM
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
01-19-2006, 09:37 AM
1.6 has been released, see first post for the goodies. :)

YOimYO
01-19-2006, 10:17 AM
nice thx

S@NL - BlackBik
01-19-2006, 12:09 PM
Thanks Brad.
Upgraded.

Gizmo5h1t3
01-19-2006, 04:06 PM
installed on 3.5.1, works fine!!

Guest210212002
01-30-2006, 01:49 PM
* Guest210212002 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
01-30-2006, 01:58 PM
I just removed "$post[lastseen_time]" from the template :)
But this is better. Another less line of code to be executed.

BabyNameAddict
03-09-2006, 01:25 AM
Absolutely beautiful! :nervous:

Hornstar
03-09-2006, 01:31 AM
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
04-05-2006, 02:10 AM
yes this still works for the current version of vb ;)

Invalid ID
05-01-2006, 06:56 PM
Really wonderful

jndeakin
05-08-2006, 01:17 PM
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
05-16-2006, 12:34 PM
how do we add it in the memberinfo as well below the join date?

JohnBee
05-21-2006, 03:20 AM
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
05-21-2006, 03:21 AM
And it it possible to make a shorter version of the online output? its a bit long for my postbit legacy area

arossphoto
05-21-2006, 10:11 PM
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
05-21-2006, 10:12 PM
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
05-22-2006, 01:45 AM
This is great, thanks. Installing now.

drgonzo120
06-02-2006, 01:10 PM
nice hack, i will install it

davelacey
06-02-2006, 03:23 PM
Agreed. Nice hack indeed.
*clicks install*
Thankyou. :)

Konstantinos
06-08-2006, 02:16 PM
bump. we need to add this info to memberprofile as well

how ?

tamborinegal
06-11-2006, 07:41 AM
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
06-11-2006, 08:14 AM
just installed this very handy thanx

Gsmmind
06-11-2006, 03:45 PM
ya great installed and working fine.........

Eq4bits
06-11-2006, 04:07 PM
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
06-11-2006, 10:25 PM
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
06-13-2006, 03:44 AM
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
06-25-2006, 08:30 AM
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
06-25-2006, 09:05 AM
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
07-02-2006, 05:22 PM
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-08-2006, 11:22 AM
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: https://vborg.vbsupport.ru/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 (https://vborg.vbsupport.ru/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-08-2006, 12:19 PM
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
12-17-2006, 06:19 AM
does it work for 3.6.4 ?

Smoothie
12-17-2006, 08:51 PM
does it work for 3.6.4 ?There's one here for 3.6. Search away....

Eq4bits
12-19-2006, 01:27 AM
it does for me