Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User's Local Time and Date in Postbit and Profile for vB 4 Details »»
User's Local Time and Date in Postbit and Profile for vB 4
Version: 1.0.0, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.3 Rating:
Released: 05-26-2010 Last Update: 05-26-2010 Installs: 105
Uses Plugins
 
No support by the author.

User's Local Time and Date in Postbit and Profile for vB 4
Version 1.0.0
(By Boofo)

What does this product do?
This product will show the local time and date of users in their 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 Andreas 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 vB 2 and allowing me to release it for vB 3, vB 3.5, vB 3.7 and now vB 4.

Version Information:
Version 1.0.0 --Initial release for vB 4

Installation Overview:
----------------------------
1 Product XML (4 Plugins, 2 Phrases and 2 templates)

Installation Instructions:
-------------------------------
Go to your Admin CP
Scroll down to 'Plugin System'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the product-boofo_date_time.xml file on your computer
---------------------------------------------------

Done!
Enjoy!

Code:
if ($mark_as_installed != 'clicked')
{
	$you_get = 'squat';
}
else
{
	$you_get = 'support';
}

Download Now

File Type: zip Local_Date_and_Time_in_Postbit_and_Profile.zip (6.0 KB, 409 views)

Screenshots

File Type: png postbit_time.png (15.4 KB, 0 views)
File Type: png profile_time.png (14.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
fxdigi-cash, mjfan227

Comments
  #22  
Old 11-29-2010, 12:57 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks like you might have to. What postbit are you using? The legacy?
Reply With Quote
  #23  
Old 11-29-2010, 02:53 AM
MoonDaemon MoonDaemon is offline
 
Join Date: Oct 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup, the PostBit Legacy; I've been needing to do this for a few other mods too, so it's old news to me. I'm still getting the hang of editing those templates, but I guess that I'll need to put the code for this mod somewhere in the PostBit Legacy template
Reply With Quote
  #24  
Old 11-29-2010, 03:09 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MoonDaemon View Post
Yup, the PostBit Legacy; I've been needing to do this for a few other mods too, so it's old news to me. I'm still getting the hang of editing those templates, but I guess that I'll need to put the code for this mod somewhere in the PostBit Legacy template
Look in the xml file and you will see that I use a template hook in the postbit_legacy template. Just look for that hook in the template of the custom skin and see what is going on there.
Reply With Quote
  #25  
Old 12-12-2010, 01:11 PM
Munkholm Munkholm is offline
 
Join Date: Dec 2010
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great plugin - Thank you.

One problem for a newbie here... I´d like to change the text "Local Time" to "Current Local Time", but have not been able to find anywhere to change it.
Apreciate the help - Thank you.

Edit: Located it in the .xml file, so uninstalled, changed text in .xml and reinstalled again ! Works like a charm - Thank you.
Reply With Quote
  #26  
Old 03-23-2011, 05:37 AM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working

4.1.2
Reply With Quote
  #27  
Old 03-23-2011, 06:44 PM
XiTCLUB XiTCLUB is offline
 
Join Date: Jan 2010
Location: Lahore, Pakistan
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, Thanks
Reply With Quote
  #28  
Old 04-17-2011, 03:29 PM
steve1966 steve1966 is offline
 
Join Date: Dec 2007
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nominated great mod
Reply With Quote
  #29  
Old 04-29-2011, 10:17 PM
wally07 wally07 is offline
 
Join Date: Sep 2010
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfectly on 4.1.3!

I LOVE this mod!! Thanks a million boofo!
Reply With Quote
  #30  
Old 05-31-2011, 12:42 PM
AWithers04 AWithers04 is offline
 
Join Date: May 2011
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works Great. Any idea how I can make the postbit title bold like below

Local Date: 05-31-2011
Local Time: 10:58 AM
Reply With Quote
  #31  
Old 05-31-2011, 12:52 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look in the phrases for the mod.
Reply With Quote
Reply


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 11:33 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.05884 seconds
  • Memory Usage 2,334KB
  • Queries Executed 26 (?)
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
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (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
  • 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