Back to vBulletin 4.x Template Modifications

Time below the avatar (user Local Time)
Mod Version: 1.00, by filosofo@vodafo

vB Version: 4.0.2 Rating: (1 vote - 5.00 average) Installs: 8
Released: 13 Mar 2010 Last Update: 13 Mar 2010 Downloads: 33
Not Supported Uses Plugins Template Edits  

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

File Type: %1$s Installation.txt (3.7 KB, 33 downloads)

Screenshots

Click image for larger version
Name:	image003.jpg
Views:	155
Size:	79.1 KB
ID:	114031   Click image for larger version
Name:	image004.jpg
Views:	128
Size:	79.4 KB
ID:	114032   Click image for larger version
Name:	image001.jpg
Views:	254
Size:	90.1 KB
ID:	114033   Click image for larger version
Name:	image002.png
Views:	351
Size:	496.2 KB
ID:	114034  

Similar Mods

Show Thread Enhancements Enhanced Post Time: Show poster's local time and date in post Modification Graveyard

vblts.ru supports vBulletin®, 2022-2024