vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Last Seen Online in postbit (https://vborg.vbsupport.ru/showthread.php?t=123366)

deezelpope 04-09-2007 08:34 PM

Smooth install! Thank you!

IAWBody 04-10-2007 04:24 PM

I've had this installed for a while, and I just wanted to say thank you. :D

Aveal 05-03-2007 08:34 PM

nice!

works fine with Version 3.6.5

Majest 05-13-2007 05:15 AM

Installed on 3.6.5.

BadgerDog 07-01-2007 07:34 PM

Quote:

Originally Posted by Mudvayne (Post 1087366)
The function you are asking is a default vBulletin function.

You can try
HTML Code:

<if condition="$show['last_seen_online']"><div>$vbphrase[last_seen_online]: <br />$post[lastseen_date] $post[lastseen_time]</div></if>
That 'll just split into two line.


Thanks .... :)

I prefer this change visually.... :up:

Regards,
Badger

BadgerDog 07-01-2007 07:44 PM

Quote:

Originally Posted by Rich (Post 1094828)
I don't have this installed but I am guessing you can wrap the template code in this:

Code:

<if condition="is_member_of($bbuserinfo, x)">
Template Edit Here
<else />
&nbsp;
</if>

"x" is the usergroup you want to see this. You can add multiple usergroups by writing x,y,z

The default admin usergroup is 6. For admin only, you would change the "x" to a 6.


Thanks Rich.... :)

Used this part as well .... :up:

Regards,
Badger

Ville 07-27-2007 05:26 PM

Installed in 3.6.8.. still working fine! :up:

MeMySelfNi 09-28-2007 04:06 AM

><installed><

redlabour 01-29-2008 05:08 PM

Works with 3.7?

Freesteyelz 01-29-2008 10:52 PM

I hope so...I've been running it from 3.6.8 --> 3.7 Beta 4. :)

Mecho 05-17-2008 04:46 PM

yes , it works in latest version too (3.7 Gold)

gnubittol 05-18-2008 07:25 AM

it works in version 3.6.10 :)

Deadly Assassin 06-15-2008 10:57 AM

Nice one thanks

Boofo 06-15-2008 12:02 PM

If you want it to show when you hover over the avatar:

Find:

HTML Code:

alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>"

REPLACE it with:

HTML Code:

alt="<if condition="$show['last_seen_online']">$vbphrase[last_seen_online]: $post[lastseen_date] at $post[lastseen_time]<else /><phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase></if>"

This will show Username's Avatar to guests and those who are unable to view the last online.

Serenity 06-15-2008 04:17 PM

ty Boofo!!

Michael2 06-17-2008 06:37 PM

Installed on 3.7, works great, thanks!

Eq4bits 07-16-2008 01:46 AM

just reinstalled after upgrading to 3.7.2PL1
works a charm :D

Brad 08-20-2008 02:50 PM

Good to hear it works for 3.7, I've not updated it in ages. :)

NetRover 10-03-2008 05:21 PM

Just going to update this as I'm still using the old version which still works on 3.7.2

I'm just hope changing over is easy because this is definitely one of thos must have mods my users would never want to be without.

Hornstar 11-07-2008 07:55 PM

Quote:

Originally Posted by Brad (Post 1603082)
Good to hear it works for 3.7, I've not updated it in ages. :)

Will you be updating it for 3.8 when it goes gold? It is such a great mod, it would be nice knowing that it is working the best it can. :)

Loki12 11-28-2008 04:35 AM

Works great on 3.7.4.

I have a question though ... I've seen on another forum, it would show like this:

Last Seen: 11 Minutes ago

etc ... how can it be edited so it shows in this format?

tafreeh 12-02-2008 04:39 AM

how come its not working wid vb3.7 ?

anthroforum 12-02-2008 05:51 PM

Quote:

Originally Posted by Loki12 (Post 1674390)
Works great on 3.7.4.

I have a question though ... I've seen on another forum, it would show like this:

Last Seen: 11 Minutes ago

etc ... how can it be edited so it shows in this format?

Yeah I would like it in that format too.

redlabour 12-18-2008 05:34 AM

Will it work with 3.8?

Ville 01-10-2009 07:01 AM

Quote:

Originally Posted by redlabour (Post 1687791)
Will it work with 3.8?

Yes, it seems to be working fine with 3.8.0! :up:

The Coon 04-24-2009 10:13 AM

And 3.8.2 thx!

Robru 07-08-2009 05:30 PM

And 3.8.3 :)

m_k 08-05-2009 06:59 PM

Working great on 3.7.6 :-)

Don't forget however that this hack requires one manual template edit - until I figured that out it wasn't working after my upgrade to 3.7.x

Kosmic1 11-19-2009 12:14 PM

Quote:

Originally Posted by Robru (Post 1845233)
And 3.8.3 :)

And 3.8.4 too :)

Nice mod! :up:

New Joe 02-16-2010 04:37 AM

It would be good to have this for vB4.

wolfyman 02-20-2010 12:35 PM

it must be a simple process to make it work for 4.x, right?

TundraSoul 03-12-2010 07:29 PM

Also looking for this mod to work with vB4.x.

doopz 03-18-2010 01:27 PM

Same here! would be very nice to have it working

New Joe 03-26-2010 08:27 AM

Quote:

Originally Posted by wolfyman (Post 1987254)
it must be a simple process to make it work for 4.x, right?

It is if you know about coding Mods, wish someone could do it,

Alan_SP 04-01-2010 03:14 AM

If you want just certain usergroups to know last activity, use code like this:

<if condition="is_member_of($bbuserinfo,6)"><div>$vbph rase[join_date]: $post[lastseen_date] $post[lastseen_time]</div></if>

In this <if condition="is_member_of($bbuserinfo,6)"> number 6 represents usergroup that has access to this information. 6 is default for administrators. If you want to enable this for moderators and supermoderators too, use:

<if condition="is_member_of($bbuserinfo,5,6,7)">

New Joe 04-01-2010 04:11 AM

How to make it work for vB4?

Alan_SP 04-05-2010 03:15 PM

I just played a bit more with this add-on. There's info for last post user made. And it's also in this cryptic format, so you need to edit add-on and find:

PHP Code:

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

Add this code:

PHP Code:

$this->post['lastpost_time'] = vbdate($this->registry->options['timeformat'], $this->post['lastpost'], true);
$this->post['lastpost_date'] = vbdate($this->registry->options['dateformat'], $this->post['lastpost'], true); 

You should now have this:

PHP Code:

$this->post['lastseen_time'] = vbdate($this->registry->options['timeformat'], $this->post['lastactivity'], true);
$this->post['lastseen_date'] = vbdate($this->registry->options['dateformat'], $this->post['lastactivity'], true);
$this->post['lastpost_time'] = vbdate($this->registry->options['timeformat'], $this->post['lastpost'], true);
$this->post['lastpost_date'] = vbdate($this->registry->options['dateformat'], $this->post['lastpost'], true); 

To add it in postbit (or postbit legacy), just use lastpost_time and lastpost_date the way you like it and where you like it.:up:

mgurain 06-08-2010 05:45 AM

Hi,
this is a great mod, I wonder why it's not a default or an option in vbulletin ?
Do you have it updated for 3.8.5 ? I searched but find nothing other than this version.

Thanks,,

New Joe 06-09-2010 11:08 PM

Quote:

Originally Posted by mgurain (Post 2050274)
Hi,
this is a great mod, I wonder why it's not a default or an option in vbulletin ?
Do you have it updated for 3.8.5 ? I searched but find nothing other than this version.

Thanks,,

I just installed it on vB 3.8.5 and it worked.

Alan_SP 09-26-2010 02:53 PM

Quote:

Originally Posted by New Joe (Post 2013840)
How to make it work for vB4?

I just tested it on my upgrade testing site and it works with vB4 too. You only need to change code you put in postbit (legacy or new one, which I don't use).

My code looks like this (and just to let you know, I use last time user posted in postbit):

HTML Code:

<vb:if condition="is_member_of($bbuserinfo,5,6,7,11)"><dt>Zad.Akt</dt> <dd>{vb:raw post.lastseen_date} {vb:raw post.lastseen_time}</dd></vb:if>

<vb:if condition="is_member_of($bbuserinfo,5,6,7,11)"><dt>Zad.Post</dt> <dd>{vb:raw post.lastpost_date} {vb:raw post.lastpost_time}</dd></vb:if>

To explain:

This part
HTML Code:

<vb:if condition="is_member_of($bbuserinfo,5,6,7,11)">
checks if the user is part of this usergroups (I allow it just for moderators and up to see this info). You can check for different conditions.

This is where actual message is written in postbit:
HTML Code:

<dt>Zad.Akt</dt> <dd>{vb:raw post.lastseen_date} {vb:raw post.lastseen_time}</dd>
. This part:
HTML Code:

<dt>Zad.Akt</dt>
, you put your own text respectively, what you want users to see as description for info. Don't forget to close if statement, do it with:
HTML Code:

</vb:if>
I don't used any phrasing, it's a bit different if you want to use phrases. You'll need to create phrase and use it.

This add-on can be put to vB4 section with no problem. :)


All times are GMT. The time now is 01:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01496 seconds
  • Memory Usage 1,835KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (8)bbcode_html_printable
  • (3)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete