Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Poster's local time and date in postbit and profile Details »»
Poster's local time and date in postbit and profile
Version: 1.0.1, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 02-02-2008 Last Update: Never Installs: 50
Uses Plugins Template Edits
 
No support by the author.

Poster's local time and date in postbit and profile for vBulletin 3.7.0 beta 4
Version 1.0.1
(By Boofo)

What does this product do?
This product will add the local time and date of posters in the posts and profile. That way you will know what the time and date is where they are located. I use this on my site so I will have an idea if it is the middle of the night, where they are at, or daytime. With your users living in all corners of the globe, this hack is a nice gauge of the different time zones without having to figure out each one in your head.

Note: This will also show the correct time and date of the poster to guests. You do not have to be logged in to know what time it is in someone else's world.

Credits:
Thanks goes out to KirbyDE for pointing me in the right direction for the profile time and helping to verify the original code. And thanks goes out to Chen Avinadav for making the first local time hack for vB2 and allowing me to release it for vB3, vB3.5 and now vB3.7.0 beta 4. A special thanks goes out to Dismounted, a distinguished member of the vb.org Staff, for catching my newbie mistake of not checking for new hook placements.

Version Information:
Version 1.0.1 --Initial release

Installation overview:
Templates to edit: (3)
--postbit
--postbit_legacy
--memberinfo_block_ministats
Products to install: (1)
--product-local_time_bh.xml

Installation Intructions:
Import the product in your Admin CP, do the template edits and you're all set!

NOTE: If you do not click install, you do not need support.

Show Your Support

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

Comments
  #2  
Old 02-04-2008, 12:07 AM
asj's Avatar
asj asj is offline
 
Join Date: Jul 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Composite simple wonderful
Reply With Quote
  #3  
Old 02-04-2008, 12:37 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't forget the install button.

And thank you.
Reply With Quote
  #4  
Old 02-04-2008, 09:41 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i hate the template edits Boofo ...

anyway you're a great coder ... keep up the great job dude ...
Reply With Quote
  #5  
Old 02-05-2008, 03:35 AM
therogueforums's Avatar
therogueforums therogueforums is offline
 
Join Date: Mar 2007
Location: Louisville, KY
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome idea! ...however...

I did the template edits, exactly how the install text instructs... and the postbit is epically screwed up now. Had to revert and uninstall.
Reply With Quote
  #6  
Old 02-05-2008, 03:44 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, the template edit for the postbit is the one I use. The postbit_legacy was a best guess for me as I don't use that one. As long as you have the two phrases and the 2 variables you can put it anywhere.

HTML Code:
   $vbphrase[bf2_local_time]: $post[localtime]
   $vbphrase[bf2_local_date]: $post[localdate]
Reply With Quote
  #7  
Old 02-05-2008, 03:52 AM
therogueforums's Avatar
therogueforums therogueforums is offline
 
Join Date: Mar 2007
Location: Louisville, KY
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The postbit template is the one I was referring to. No worries, though- decided the info that this mod puts in the user profile is enough. Also, I don't like adding too much to the postbit, so this actually works out well.

Again, WONDERFUL idea for boards with lots of members across the globe- time xones are always an issue when trying to plan something. This will help people plan a bit better, IMO.
Reply With Quote
  #8  
Old 02-05-2008, 03:55 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You want the posbit like I have mine? All neatly lined up like in the pic in the first post. It even does a nice break for the location if the location is too long, while lining things up on the left evenly.

I also added the Timezone Image in Profile hack that shows a map and the date/time in the profile.
Reply With Quote
  #9  
Old 02-06-2008, 05:59 PM
Mike-D Mike-D is offline
 
Join Date: Jan 2006
Location: Cologne / Germany
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by therogueforums View Post
Awesome idea! ...however...

I did the template edits, exactly how the install text instructs... and the postbit is epically screwed up now. Had to revert and uninstall.
Time to get TMS. Those things would never happen in using TMS
Reply With Quote
  #10  
Old 02-06-2008, 06:15 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is TMS?
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:36 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.04482 seconds
  • Memory Usage 2,291KB
  • Queries Executed 23 (?)
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_html
  • (1)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
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (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
  • 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