Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Last Seen Online in postbit Details »»
Last Seen Online in postbit
Version: 2.0, by Brad Brad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.0 Rating:
Released: 08-07-2006 Last Update: 08-07-2006 Installs: 306
Re-useable Code Translations  
No support by the author.

This modification will show the last time (and date) the user was online in the postbit template.

Version 2.0 is an improved version of the plug-in I released for vB 3.5.4. One nasty call to can_moderate was removed to save some processing time, all the code was also moved to one plug-in.

If the user is invisible the last online time will not be displayed if you do not have the proper usergroup permissions. The last online time will also not be shown for guest posts.

As far as I know all bugs are fixed in this version. It was tested on vB 3.6 RC3 and vB 3.6.0 (gold). It has not been tested on vBulletin 3.5.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 02-20-2010, 12:35 PM
wolfyman's Avatar
wolfyman wolfyman is offline
 
Join Date: Apr 2005
Posts: 719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it must be a simple process to make it work for 4.x, right?
Reply With Quote
  #73  
Old 03-12-2010, 07:29 PM
TundraSoul TundraSoul is offline
 
Join Date: Mar 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also looking for this mod to work with vB4.x.
Reply With Quote
  #74  
Old 03-18-2010, 01:27 PM
doopz doopz is offline
 
Join Date: Feb 2003
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same here! would be very nice to have it working
Reply With Quote
  #75  
Old 03-26-2010, 08:27 AM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wolfyman View Post
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,
Reply With Quote
  #76  
Old 04-01-2010, 03:14 AM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)">
Reply With Quote
  #77  
Old 04-01-2010, 04:11 AM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How to make it work for vB4?
Reply With Quote
  #78  
Old 04-05-2010, 03:15 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #79  
Old 06-08-2010, 05:45 AM
mgurain's Avatar
mgurain mgurain is offline
 
Join Date: Apr 2005
Location: KSA - Qatif - Al-Jarodiah
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,,
Reply With Quote
  #80  
Old 06-09-2010, 11:08 PM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mgurain View Post
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.
Reply With Quote
  #81  
Old 09-26-2010, 02:53 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by New Joe View Post
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.
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 10:59 AM.


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.04587 seconds
  • Memory Usage 2,329KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_html
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete