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
  #52  
Old 09-28-2005, 03:54 AM
Crow's Avatar
Crow Crow is offline
 
Join Date: Jan 2005
Location: Detroit,Mich
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

clicks install.. nice one!
Reply With Quote
  #53  
Old 09-28-2005, 04:14 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Then you have something else interfering with it then. There's no way it can be off with the code Kirby fixed. I'm also running it on RC 3 and it is right on the dot.
:ermm: Well I guess I will have to disable some hacks to test it again. I did do come slight modification to remove the <BR> tags because i wanted to place this in a diffrent section of the member profile. When I placed it above the last activity code it would break the labels and time/date into diffrent lines. It has been working fine up untill a few days ago.
Reply With Quote
  #54  
Old 09-28-2005, 04:20 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh, so you did something to it in editing it.
Reply With Quote
  #55  
Old 09-28-2005, 05:14 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes I did! But the thing is it was working fine after the edit, not sure how long though. Then i noticed it was off the other day.

Here is the section of my member info template:
PHP Code:
    <td><img src="$userinfo[avatarurl]$userinfo[avatarsizealt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
   <else />
    <
td>&nbsp;</td>
   </if>
   <
td class="smallfont" valign="bottom" align="$stylevar[right]">
<!-- 
Local Date and Time in Profile -->$vbphrase[bf2_local_time]:$userinfo[localtime]<br/>$vbphrase[bf2_local_date]: $userinfo[localdate]
<!-- 
Local Date and Time in Profile -->
    <if 
condition="$show['lastactivity']">
     <
div>$vbphrase[last_activity]: $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span>&nbsp;</div>
    </if>
    <if 
condition="$show['currentlocation']">
     <
div>$userinfo[action$userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time]&nbsp;</div>
    </if>
</
td>
  </
tr>
  </
table>
 </
td>
</
tr>
</
table>
<!-- / 
main info avatarprofilepic etc. --> 
I assume removing the line breaks is causing a problem?
Reply With Quote
  #56  
Old 09-28-2005, 05:28 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have no idea what is going on. It has to be something you either added or chnanged from when it was working fine before. Just backtrack to that time and leave it at that and you should be ok.
Reply With Quote
  #57  
Old 09-29-2005, 03:50 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will test some hacks and see if there casuing a problem.

PHP Code:
<!-- Local Date and Time in Profile -->$vbphrase[bf2_local_time]:$userinfo[localtime]<br/>$vbphrase[bf2_local_date]: $userinfo[localdate]
<!-- 
Local Date and Time in Profile --> 
But there should be no problem with this cide right?
Reply With Quote
  #58  
Old 09-29-2005, 04:17 PM
dieselpowered's Avatar
dieselpowered dieselpowered is offline
 
Join Date: Aug 2004
Location: Arizona
Posts: 661
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well done, I like it!!

**clicks install**

Forgive me for a second, however, was it intentially done so that if someone does not have their b-day filled out that this does not show on MEMBERINFO?
Reply With Quote
  #59  
Old 09-30-2005, 01:28 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 xtremeoff-road
Well done, I like it!!

**clicks install**

Forgive me for a second, however, was it intentially done so that if someone does not have their b-day filled out that this does not show on MEMBERINFO?
The b-day has nothing to do with this mod. You must have included it in an if statement for the b-day by accident.
Reply With Quote
  #60  
Old 10-15-2005, 05:14 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My code worked fine. Just reinstaled the plug in.
Reply With Quote
  #61  
Old 12-04-2005, 12:19 PM
Jacqueline Jacqueline is offline
 
Join Date: Mar 2005
Location: Florida
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
The b-day has nothing to do with this mod. You must have included it in an if statement for the b-day by accident.
I wound up doing this too when I followed the instructions in 3.5.1. The birthday phrase it said to look for wasn't there exactly, but one close to it was. It said to look for this:
Code:
<if condition="$userinfo['birthday']">
, which did not exist.
I found this instead.
Code:
<if condition="$show['birthday']">
This wound up putting it inside the If statement so that if there was additional userinfo, it showed, but if not, it did not show and just put an N/A in the field.

To fix it, I looked for this code:
Code:
<else />
	<em>$vbphrase[n_a]</em>
</if>
</div>
Then put this code after it:
Code:
<!-- Begin Local Date and Time in Profile -->
<span class="fieldset">
   <table>
	  <tr>
		 <td><strong>$vbphrase[bf2_local_time]</strong>:<br />$userinfo[localtime]</td>
	  </tr>
	  <tr>
		 <td><strong>$vbphrase[bf2_local_date]</strong>:<br />$userinfo[localdate]</td>
	  </tr>
   </table>
</span>
<!-- End Local Date and Time in Profile -->
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 05:36 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.10412 seconds
  • Memory Usage 2,333KB
  • 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_code
  • (2)bbcode_php
  • (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
  • (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