Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Postbit last date and time online Details »»
Postbit last date and time online
Version: 1.00, by justicechick justicechick is offline
Developer Last Online: Jul 2015 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.x Rating:
Released: 07-11-2013 Last Update: 07-12-2013 Installs: 35
Uses Plugins Template Edits
Re-useable Code  
No support by the author.

Postbit last date and time online


This is a simple mod that will place the last date and time online in the postbit.

Installation:

(1) Product To Upload Via:
Acp > Plugins & Products > Manage Products > Add/Import Product
(1) Simple Template To Edit Via:
Acp > Styles & Templates > postbit or postbit_legacy template


This works on 4.0.0 up to 4.2.1 (see attached pics of 4.2.1)

Date and time in postbit

Date only in postbit


If you wish to only use the last date online in the postbit, without the time, use the XML titled LastdatePB

Download Now

File Type: zip Product last d&t online.zip (2.7 KB, 201 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
iiioroh

Comments
  #2  
Old 07-12-2013, 11:26 AM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That did the trick.....

One question, is it possible to take out the time of day? Currently it reads

Last Online:1 Minute Ago @ 12:24

How do I change it to read Last Online:1 Minute Ago

Thanks for all you have done....

Edit: Nevermind, common sense really, I figured it out...

Cheers...
Reply With Quote
Благодарность от:
justicechick
  #3  
Old 07-12-2013, 01:37 PM
justicechick justicechick is offline
 
Join Date: Oct 2012
Location: Arkansas
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DemOnstar View Post
That did the trick.....

One question, is it possible to take out the time of day? Currently it reads

Last Online:1 Minute Ago @ 12:24

How do I change it to read Last Online:1 Minute Ago


Thanks for all you have done....

Edit: Nevermind, common sense really, I figured it out...

Cheers...
Great! Im glad it worked for you.
Reply With Quote
  #4  
Old 07-12-2013, 04:16 PM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any ideas how much this will slow down page load?

Also how to show just today, yesterday,... 100days ago?

Thank you
Reply With Quote
Благодарность от:
justicechick
  #5  
Old 07-12-2013, 04:37 PM
justicechick justicechick is offline
 
Join Date: Oct 2012
Location: Arkansas
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by goxy63 View Post
Any ideas how much this will slow down page load?

Also how to show just today, yesterday,... 100days ago?

Thank you
This is the first modification I have attempted, and its a pretty simple modification. Im sorry though that option isnt available with this modification. As far as slowing down the page load , there has been none noticed since the installation of this on my board.
Reply With Quote
  #6  
Old 07-12-2013, 11:28 PM
justicechick justicechick is offline
 
Join Date: Oct 2012
Location: Arkansas
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those that may have already installed this , have updated the zipfile. If you only want to use the last date online in the postbit please use the following code.

<!-- LAST ONLINE DATE START -->
<vb:if condition="$post['lastactivity']">
<dt>{vb:rawphrase last_online_activity}</dt><dd>{vb:raw post.lastactivity_date} </dd>
</vb:if>
<!-- / LAST ONLINE DATE END -->
Reply With Quote
  #7  
Old 07-13-2013, 03:39 AM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good job justicechick... Keep it up..
Reply With Quote
  #8  
Old 07-16-2013, 02:37 PM
Jonm Jonm is offline
 
Join Date: May 2011
Location: Staffordshire
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

done...
Reply With Quote
Благодарность от:
justicechick
  #9  
Old 07-16-2013, 02:38 PM
Jonm Jonm is offline
 
Join Date: May 2011
Location: Staffordshire
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But how can I remove the AM/PM part?
Reply With Quote
  #10  
Old 07-20-2013, 11:39 PM
justicechick justicechick is offline
 
Join Date: Oct 2012
Location: Arkansas
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jonm View Post
But how can I remove the AM/PM part?
Use the "LastdatePB" XML that is included in the zip

and use the following when modifying your template.

<!-- LAST ONLINE DATE START -->
<vb:if condition="$post['lastactivity']">
<dt>{vb:rawphrase last_online_activity}</dt><dd>{vb:raw post.lastactivity_date} </dd>
</vb:if>
<!-- / LAST ONLINE DATE END -->
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 08:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04512 seconds
  • Memory Usage 2,319KB
  • Queries Executed 24 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (4)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete