vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Local time and date in post, pm, usernotes and profile v1.5 (https://vborg.vbsupport.ru/showthread.php?t=60863)

Boofo 04-03-2004 05:38 AM

Quote:

Originally Posted by Gary W
This hack doesn't seem to be working for me, the time shown is 8 hours ahead of the real time (when checking my own post 'Local Time').

Also, shouldn't this hack have support for phrases?

I think this hack belongs in the Beta Hacks forum still, until it gets fixed ;)

This hack goes off of the server time so if your setting in the Admin CP vBulletin Options is not set to the correct server time, it will be off. Please read the thread before makiing assumptions.

https://vborg.vbsupport.ru/showpost....4&postcount=83

If you want phrase support, you are more then welcome to make whatever phrases you need.

This hack is working for me and everyone else that has installed it, so, no, it doesn't belong on beta. I think you're thinking about most of YOUR hacks, Gary.

Gary King 04-03-2004 01:24 PM

Why do you always have to make things so personal? If you want to move my hacks to Beta hacks, then that's fine with me. As you have seen in ALL my previous posts (except my last one in this thread) when I was talking to you, I have tried to steer away from the path of having a personal fight, while you kept on walking right back on that path.

If you want to move my hacks to Beta releases now, since you are now a mod, then I don't mind at all. I release hacks because people request them and want them; if someone wants to do something about it, maybe delete some of my hacks because of some silly reasons that they can come up with, then sure go ahead; they'd also be taking away a hack that at least one person would really love to have on their forums. Yes probably some of my hacks are small, but they do their jobs.

--------------------

Anyhow, back on topic, this hack, I have my server settings set properly in my admin cp, and my timezone is obviously set correctly in my user cp.

I read your last post in this thread and you talked about several improvements that you could make to this hack, so I don't see what you mean by this hack working well, especially not for everyone.

Take a look at these posts:

https://vborg.vbsupport.ru/showpost....6&postcount=98
https://vborg.vbsupport.ru/showpost....1&postcount=87

Anyhow, not too many posts I could get because not many have installed this and/or replied back to this thread.

--------------------

I don't want to play the blame game, if most have seen me, I try not to be rude or point fingers, unlike some people I will not name.

If this post gets deleted, it just goes to show that what has been said in this post really is all true.

Boofo 04-03-2004 01:49 PM

As far as moving your hacks, me being a mod has no effect on that. I don't move threads to beta hacks. That is up to the higher staff. I'm just a mod, nothing more. As far as this being personal, you made it that way when you jumped in my thread and said I should move this hack to beta when there is no reason to as the hack DOES work if the person installing it has the setting in the Admin CP set to their ACTUAL server time, not just the time the want the new users to see. This hack is the exact same hack as Chen released for vB2 except that the variable names have changed. Now, if it worked so well for vB2, why should it not work the same way for vB3? The only thing different in vB3 is that they no longer user the server timne to get the time. But this hack DOES.

You set your server time to where the server actually is and the hack will work for you. If not, then don't install it. You didn't hit the install button anyway, so what does it matter?

Now, if you want help getting this hack to work, I will put any contempt I have for you aside and help you get the hack to work. I support my hacks and I get them fixed if someone has problems. You included. It's up to you, but don't tell me my hack doesn't work because you are having problems with it. How many times have you run into the same thing and found out it was an install error or someone didn't follow instructions properly?

And if not to many people have replied to the thread, that must mean it is working for those people, huh? ;)

If you want to carry this further, take it to pm.

Boofo 04-07-2004 10:16 AM

Anyone having problems with the time being off an hour after the DST change needs to make the following update to this hack.

Thnak goes out to NTLDR for coming up with the correct fix. ;)

functions_showthread.php
usernote.php
member.php

find:

PHP Code:

       $post['tzoffset'] = $post['timezoneoffset'];

       if (
$post['dstonoff'])
        {
        
// DST is on, add an hour
        
$post['tzoffset']++;
       } 

REPLACE it with:

PHP Code:

       $post['tzoffset'] = $post['timezoneoffset'];

if (!
$post['dstonoff']) { 
    
$post['tzoffset']--; 


In private.php find:

PHP Code:

    $pm['tzoffset'] = $pm['timezoneoffset'];
    if (
$pm['dstonoff'])
     {
        
// DST is on, add an hour
        
$pm['tzoffset']++;
    } 

REPLACE it with:

PHP Code:

    $pm['tzoffset'] = $pm['timezoneoffset'];
if (!
$pm['dstonoff']) { 
    
$pm['tzoffset']--; 



kall 06-24-2004 10:18 PM

*waits ever-so-patiently for 'goes of setting time, not server time version*

Being that my host is located halfway round the world from me, and with me running a site kinda pointed at locals, things get a little confusicating for people. :)

Boofo 06-25-2004 02:47 AM

Quote:

Originally Posted by kall
*waits ever-so-patiently for 'goes of setting time, not server time version*

Being that my host is located halfway round the world from me, and with me running a site kinda pointed at locals, things get a little confusicating for people. :)

LOL If you figure out how to do the "setting time", let me know. I'd be interested in that myself.

As long as you have the setting in the Admin CP set to the actual server time, your user's local time will show fine. It does for me and almost everyone else who installed this. ;)

kall 06-25-2004 11:17 AM

Quote:

Originally Posted by Boofo
LOL If you figure out how to do the "setting time", let me know. I'd be interested in that myself.

As long as you have the setting in the Admin CP set to the actual server time, your user's local time will show fine. It does for me and almost everyone else who installed this. ;)

Oh, yes, indeed it does.

However, when a NZer comes on as a guest at 12PM and the board says last posts were made at 3AM yesterday, that's what is confusing.

If they're logged in, all is good and works like it should do.

Boofo 06-25-2004 12:12 PM

Quote:

Originally Posted by kall
Oh, yes, indeed it does.

However, when a NZer comes on as a guest at 12PM and the board says last posts were made at 3AM yesterday, that's what is confusing.

If they're logged in, all is good and works like it should do.

What is your server time set at? -9?

kall 06-27-2004 08:56 AM

Quote:

Originally Posted by Boofo
What is your server time set at? -9?

Umm..it was somewhere around there, I changed back to +12 till you work your magic and figure a way around it. ;)

I was thinking of perhaps just sticking the member's timezone selection into the postbit instead for now...

*edit* The server lives in Orlando, FL, USA. I live in AK,New Zealand.

:)


All times are GMT. The time now is 10:31 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
  • Page Generation 0.01114 seconds
  • Memory Usage 1,760KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete