Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB3.5 Local time and date in post and profile Details »»
vB3.5 Local time and date in post and profile
Version: 1.0.1, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.5.8 Rating:
Released: 08-22-2005 Last Update: 09-05-2005 Installs: 77
Uses Plugins Template Edits
 
No support by the author.

vB3.5 Local time and date in post and profile
Version 1.0.1
(By Boofo)

What does this product do?
This product will add the local time and date of users 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.

Credits:
Thanks goes out to KirbyDE for pointing me in the right direction for the profile time and helping to verify the code. And everyone who chipped in at vbulletin.org to help me figure out vB3.5's new ways of doing things. A special thanks goes out to Chen Avinadav for making the first local time hack for vB2 and allowing me to release it for vB3 and vB3.5.

Version Information:
Version 1.0.0 --Initial release
Version 1.0.1 --Fixed time where it didn't show right for many people. Thanks to Kirby for the fix.

Installation overview:
Templates to edit: (3)
--postbit
--postbit_legacy
--memberinfo
Products to install: (1)

Show Your Support

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

Comments
  #72  
Old 12-07-2005, 08:33 AM
Jacqueline Jacqueline is offline
 
Join Date: Mar 2005
Location: Florida
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bubble #5
BINGO!

Thanks Boofo! Big fan of your work
Bubble,
Look at post #60 in this thread. I showed the problem with the birthday and the full fix. It has exactly where to put the code and the slight modification to it to make it work there.

The problem with using it next to the current birthday statement is because it is inside an If statement, and if the user has no additional info, it doesn't show up.
Reply With Quote
  #73  
Old 12-07-2005, 03:19 PM
dieselpowered's Avatar
dieselpowered dieselpowered is offline
 
Join Date: Aug 2004
Location: Arizona
Posts: 661
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Boofo, just wanted to let you know that this works with 3.5.2, incase you wanted to change the version at the top of the thread
Reply With Quote
  #74  
Old 12-07-2005, 05:07 PM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Elleth Faewen
Bubble, Look at post #60 in this thread.
Thanks Elleth, (beautiful name by the way ) :nervous:

We jazed the code up a bit to make it look nicer. It didn't make much sense to have it say "Additional Information - N/A" and then list information like the time and date, so we fixed it like this:

Find:
HTML Code:
 <else />
	<em>$vbphrase[n_a]</em>
</if>
</div>

...and replace it with:

HTML Code:
<phrase 1="$userinfo[username]">$vbphrase[time_date_intro]</phrase>

Now go to Phrase Manager > Add New Phrase.

Under Varname add:

HTML Code:
time_date_intro
Under Text add:

HTML Code:
Local time and date for {1}:
Click Save.


We also changed the bold part around to match the rest of the profile. Simply remove the bold from the headings and add it to the output of each command and that's it. You can also add fieldset to the code if you want (we didn't because we are designing an entirely new profile section for our board) but otherwise fieldset will blend the old style in closer. Check it out, it looks much better now and is personalized. Enjoy :nervous:
Reply With Quote
  #75  
Old 12-07-2005, 05:49 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe a pic to show us how it looks now?
Reply With Quote
  #76  
Old 12-07-2005, 06:56 PM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Maybe a pic to show us how it looks now?
LOL. Say pppppppplease :nervous:

This screenshot is how the code above will make it look. I will jazz it up more later with fieldsets that have a mouseover effect and other goodies. I'll post more about this as time permits :up:
Reply With Quote
  #77  
Old 03-09-2006, 01:15 AM
BabyNameAddict BabyNameAddict is offline
 
Join Date: Feb 2006
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love it, love it, love it!!
Reply With Quote
  #78  
Old 03-14-2006, 05:51 PM
jacx jacx is offline
 
Join Date: Mar 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks u kindly
Reply With Quote
  #79  
Old 03-19-2006, 06:01 PM
JaniU JaniU is offline
 
Join Date: Mar 2006
Location: FINLAND
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way.. well of course there is, but could someone do it..
It would be cool to show the local time the post is made in each post!

(Actually I was kinda hoping to get that and didn't read everything through so well but of course after installing this I realized it shows always the users current local time/date...)
Reply With Quote
  #80  
Old 05-11-2006, 09:03 AM
Stop Stop is offline
 
Join Date: Oct 2005
Location: Riyadh
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works on 3.5.4 :banana:
I'm really a big fan of your hacks, Boofo. But in In MEMBERINFO template I add it above this and it works fine.
PHP Code:
<if condition="$show['birthday']"


Thanks a lot Sir.
Reply With Quote
  #81  
Old 05-11-2006, 09:21 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 Stop
Works on 3.5.4 :banana:
I'm really a big fan of your hacks, Boofo. But in In MEMBERINFO template I add it above this and it works fine.
PHP Code:
[b]<if condition="$show['birthday']">[/b]
[
b][/b
Thanks a lot Sir.
Thank you for the kind words, sir.

You can put it wherever it looks good to you in the profile. It should work almost anywhere in there. I just added the instructions of where I had mine.

I will make a suggestion, though. I would add the local date in the postbit along with the time. The reason is that sometimes you will get someone that is a day behind you in time or a day ahead, depending on what time of the day it is. It can be confusing to members trying to figure out what day it would be for that person and if they were ahead or behind in time. Just a suggestion.
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 09:26 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.12774 seconds
  • Memory Usage 2,318KB
  • 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
  • (4)bbcode_html
  • (2)bbcode_php
  • (4)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
  • (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