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
  #22  
Old 09-26-2013, 01:37 AM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

THANKS Ozzy, appreciate you taking the time to write that up :up:
Reply With Quote
Благодарность от:
ozzy47
  #23  
Old 09-26-2013, 01:39 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not a problem, glad to help.
Reply With Quote
Благодарность от:
justicechick
  #24  
Old 09-27-2013, 06:50 AM
justicechick justicechick is offline
 
Join Date: Oct 2012
Location: Arkansas
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
What you could do is create a new plugin.
  1. Log into the ACP.
  2. On the side menu expand "Products & Plugins"
  3. Click on "Plugin Manager"
  4. At the very bottom there is a link to "Add New Plugin"
  5. On that page put in the following information-

    Product: vBulletin (this should be default)
    Title: Replace Minutes In Postbit
    Hook: postbit_display_complete (from a drop-down list)
    Execution Order: 5 (default value)
Code:
$vbulletin->templatecache['postbit_legacy'] = str_replace('Minutes','Mins',$vbulletin->templatecache['postbit_legacy']);
I tested this with the word Minutes directly in the postbit, and it works, I did not test it with this mod, but it should work.
Thanks for taking the time to do that Ozzy. When I posted this I thought that I had warned users this was my first attempt at anything like this. Looking back now, I see that I seems to have not included that warning ....LOL

Thanks for looking out and lending a helping hand to us all... :up: Much appreciated!

I did check this out though with and without the code you supplied and I couldnt get it to change it. Im sure that I must be missing something.
Reply With Quote
  #25  
Old 09-27-2013, 09:23 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dunno, as I said I did not try this with your mod, I will a bit later today when I get home from work and see what's going on.
Reply With Quote
  #26  
Old 09-27-2013, 04:12 PM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by justicechick View Post
I did check this out though with and without the code you supplied and I couldnt get it to change it. Im sure that I must be missing something.
I don't think it's on your end justicechick. It's not working here either. I eventually changed the phrase but not sure if that's the safe thing to do I'm sure ozzy will figure it out.
Reply With Quote
Благодарность от:
justicechick
  #27  
Old 09-27-2013, 07:47 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah I will look into it, it may be how the plugins run in order. I will look somtime either tonight, or tomorrow, got alot going on ATM.
Reply With Quote
  #28  
Old 10-01-2013, 07:56 PM
justicechick justicechick is offline
 
Join Date: Oct 2012
Location: Arkansas
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bubble #5 View Post
I don't think it's on your end justicechick. It's not working here either. I eventually changed the phrase but not sure if that's the safe thing to do I'm sure ozzy will figure it out.
Thanks Bear lol...just making sure,
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 12:57 AM.


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.08119 seconds
  • Memory Usage 2,306KB
  • 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
  • (1)bbcode_code
  • (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
  • (8)post_thanks_box
  • (4)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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