Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
Time below the avatar (user Local Time) Details »»
Time below the avatar (user Local Time)
Version: 1.00, by filosofo@vodafo filosofo@vodafo is offline
Developer Last Online: Jul 2010 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.2 Rating:
Released: 03-12-2010 Last Update: 03-12-2010 Installs: 8
Uses Plugins Template Edits
 
No support by the author.

That makes this mod?
building the script timer that already have vbulletin so we run and show the result below the avatar
Thus each user shows local time which chosen in your profile according to your time zone. (User Local Time).
Installation:
The installation is very easy, we agree to ACP <> language and phrases <> manage phrases <> new making phrase
Code:
 
type of phrase: postbit
product: vbulletin
variable name: all_times_are_gmt_x_time_now_is_y
text: <font size="4" color="black"><b>GMT{1} | {2}</b></font>
save
Now we are going to styles and templates
Choose the style to modify
and edit the template postbit
Find in the template:
Code:
<div class="userinfo<vb:if condition="!$show['avatar']">_noavatar</vb:if>">
   <div class="contact">
    <vb:if condition="$show['avatar']">
     <a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
      <vb:if condition="$post.avatarurl">
       <img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
      <vb:else />
       <img src="{vb:stylevar imgdir_misc}/unknown.gif" />
      </vb:if>
     </a>
    </vb:if>
Add below:
Code:
 
<!--TAB HORA-->
<vb:if condition="$show['dst_correction']">
 <!-- auto DST correction code -->
  <form action="profile.php?do=dst" method="post" name="dstform">
   <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
   <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
   <input type="hidden" name="do" value="dst" />
  </form>
  <script type="text/javascript">
  <!--
   var tzOffset = {vb:raw bbuserinfo.timezoneoffset} + {vb:raw bbuserinfo.dstonoff};
   var utcOffset = new Date().getTimezoneOffset() / 60;
   if (Math.abs(tzOffset + utcOffset) == 1)
   { // Dst offset is 1 so its changed
    document.forms.dstform.submit();
   }
  //-->
  </script>
  <!-- / auto DST correction code -->
 </vb:if>
<div class="eti_postbit">    
<div id="footer_time" class="shade footer_time">{vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div>
 </div>
<!--TAB HORA END-->
save
----------------------------------------------------------------------------------
in the template postbit_legacy:
To find:
Code:
<vb:if condition="$show['avatar']"> 
 
            <div class="eti_postbit"=a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}"> 
            <center>     
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" /> 
</center> 
            </a> 
            </div></vb:if>
Add below:
Code:
 
<!--TAB HORA-->
<vb:if condition="$show['dst_correction']">
 <!-- auto DST correction code -->
  <form action="profile.php?do=dst" method="post" name="dstform">
   <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
   <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
   <input type="hidden" name="do" value="dst" />
  </form>
  <script type="text/javascript">
  <!--
   var tzOffset = {vb:raw bbuserinfo.timezoneoffset} + {vb:raw bbuserinfo.dstonoff};
   var utcOffset = new Date().getTimezoneOffset() / 60;
   if (Math.abs(tzOffset + utcOffset) == 1)
   { // Dst offset is 1 so its changed
    document.forms.dstform.submit();
   }
  //-->
  </script>
  <!-- / auto DST correction code -->
 </vb:if>
<div class="eti_postbit">    
<div id="footer_time" class="shade footer_time">{vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div>
 </div>
<!--TAB HORA END-->
save
enjoy it.
Please Mark as Installed

Download Now

File Type: txt Installation.txt (3.7 KB, 31 views)

Screenshots

File Type: jpg image003.jpg (79.1 KB, 0 views)
File Type: jpg image004.jpg (79.4 KB, 0 views)
File Type: jpg image001.jpg (90.1 KB, 0 views)
File Type: png image002.png (496.2 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 03-13-2010, 12:05 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is military time or 24 hour time the only way or can you use 12 hour time?
Reply With Quote
  #3  
Old 03-13-2010, 02:35 PM
filosofo@vodafo's Avatar
filosofo@vodafo filosofo@vodafo is offline
 
Join Date: Jun 2008
Location: Lleida (Spain)
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The format is the default forum administrator and can be 24 or am/pm system. The users can determine his time zone, but the format 24 or am/pm only administrator because it uses the Forum script.
Reply With Quote
  #4  
Old 03-17-2010, 03:29 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed

thanxxx man
keep it up
Reply With Quote
  #5  
Old 04-18-2011, 03:30 PM
shadowquest1 shadowquest1 is offline
 
Join Date: Sep 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks i try it out
Reply With Quote
  #6  
Old 04-18-2011, 04:02 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You guys did know about this mod, correct?

https://vborg.vbsupport.ru/showthread.php?t=243379
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 07:20 PM.


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.08634 seconds
  • Memory Usage 2,275KB
  • Queries Executed 20 (?)
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
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete