Feckie said:Are you using 3.7 because 2.5 does not work on 3.6
leonpadi said:Please Feckie, can you please inform us about which is the latest vBShout's version running on 3.6.7 (and a link if you are able )
Thanks for your time!
$T4 = $infernoshout->vbulletin->db->query_first("select count(*) as `T4` from " . TABLE_PREFIX . "infernoshout where s_time > " . (TIMENOW - (60 * 60 * 24)));
$T4 = vb_number_format($T4['T4']);
datastream + "securitytoken="
datastream + "&securitytoken="
How can we change the time displayed on shouts?
Even if the forum has the corrected local time, the shoutbox takes server's local time, instead of forum's changed time.
By some researchings I found those lines in infernoshout.php
Code:$T4 = $infernoshout->vbulletin->db->query_first("select count(*) as `T4` from " . TABLE_PREFIX . "infernoshout where s_time > " . (TIMENOW - (60 * 60 * 24))); $T4 = vb_number_format($T4['T4']);
What i really want to achieve is this.The shoutbox shows for example
[55 minutes ago 08:02] [John]: Hello people!
and i want to show +2 hours , this means...
[55 minutes ago 10:02] [John]: Hello people!
In the above example the 1st line shows the server's local time , and in the 2nd line the correct local time.
This little problem is shown ONLY in shoutbox module.All the other sections of forum use the corrected local times...
KrazyFire said:To fix the issue manually, you can edit the file: ./clientscript/vbulletin_global.js
Find:
Code:datastream + "securitytoken="
Replace this with:
Code:datastream + "&securitytoken="
Save and upload!
Make sure you have uncompressed javascript files to do so the comprssed ones do not have this code ^^
bcaksk said:thank u very much Spinifex
i solved problem
I sent to the webhosting company an email asking to change their server's time and they replied the bellow...How can we change the time displayed on shouts?
Even if the forum has the corrected local time, the shoutbox takes server's local time, instead of forum's changed time.
By some researchings I found those lines in infernoshout.php
Code:
$T4 = $infernoshout->vbulletin->db->query_first("select count(*) as `T4` from " . TABLE_PREFIX . "infernoshout where s_time > " . (TIMENOW - (60 * 60 * 24)));
$T4 = vb_number_format($T4['T4']);
What i really want to achieve is this.The shoutbox shows for example
[55 minutes ago 08:02] [John]: Hello people!
and i want to show +2 hours , this means...
[55 minutes ago 10:02] [John]: Hello people!
In the above example the 1st line shows the server's local time , and in the 2nd line the correct local time.
This little problem is shown ONLY in shoutbox module.All the other sections of forum use the corrected local times...
We are using GMT time on our servers. This makes it easy to calculate to calculate your local time from it. E.g. if your time zone is -3 you simply subtract three hours from the GMT time in your script to get your local time..
If you are using PHP this function may also help you:
PHP: localtime - Manual