![]() |
Fix vbShout Timezone problem
This vbShout plugin: http://www.vbhackers.com/f76/ajax-fl...ut-2-1-a-4536/
Has a serious bug with Time Zone changing to that of the last person to post in the shout box. Here is a fix so that each user will see the time in their local timezone correctly. 1. Open template forumhome_vbshout_shout Find this (should be at the very beginning): Code:
<tr> Code:
<td nowrap align="left" valign="top"> 2. Open template forumhome_vbshout Find: Code:
Shouts.innerHTML = '<table cellpadding="1" cellspacing="3" border="0" width="95%" align="left">' + ShoutRequest.handler.responseText + '</table>' Code:
var formatMe = ShoutRequest.handler.responseText Find this: Code:
function sb_CollectHV(sbForm) Code:
// replaces <date> tags 3. Open file vbshout.php FInd this (There are similar code blocks, this should be in the function rewrite_shoutbox_flatfile() around line 226): Code:
$Shout['time'] = buildTime($Shout['s_time']); Code:
// $Shout['time'] = buildTime($Shout['s_time']); This should now pass the date as UTC and JavaScript will convert it on the client side to the appropriate date. |
Gave it a whirl and checked the edits twice. It's only showing "Loading"...
|
i was looking for this.
thank's. |
Works great... can we have 12 hour time instead? How about the date being more simple like instead of 4/9/2007 have it as 4/9? How about adding brackets to the timestamps?
Overall, it's running great on my site. Thanks! |
Quote:
|
i am getting random number's instead of date, like this "1176175903".
|
Quote:
|
Quote:
|
Quote:
"replaceDates(s)" Here: Code:
ret = ret + (date.getMonth()+1) + "/" + |
Quote:
|
All times are GMT. The time now is 12:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|