Time below the avatar (user Local Time)
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> 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> 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--> ---------------------------------------------------------------------------------- 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> 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--> enjoy it. Please Mark as Installed Download
Installation.txt (3.7 KB, 33 downloads) Screenshots |
Similar Mods
Show Thread Enhancements Enhanced Post Time: Show poster's local time and date in post | Modification Graveyard |