Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-03-2008, 01:56 PM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Time Zone Setting

Does anyone know the variable for the time zone in vbulletin? IE $timesetting?

Edit:
I am trying to fix this code so it displays the users correct time:
$doublepost['message'] = $doublepost['pagetext'] . "\n\n" . '----Added '.date("j/n/Y"). ' at '.Date("g:i A").'----'.$vbulletin->options['xen_dp_spacer'] . "\n" . $post['message'];

So where would I place this:
$vbulletin->userinfo['timezoneoffset']
Reply With Quote
  #2  
Old 08-03-2008, 09:55 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just changing date to vbdate should do the trick, no need for anything else. (I think )
Reply With Quote
  #3  
Old 08-03-2008, 11:19 PM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What variable would that be? I don't want the date I want the time btw.
Reply With Quote
  #4  
Old 08-04-2008, 09:20 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why is it people that have the simple questions are the ones that want to learn and the ones with the hard questions just want the answers?

Check out the docs if you must: vbdate

Or... just try it and see for yourself. Note: the code you posted uses "date" twice...

Just follow my instructions.
Reply With Quote
  #5  
Old 08-04-2008, 11:14 AM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post
Why is it people that have the simple questions are the ones that want to learn and the ones with the hard questions just want the answers?

Check out the docs if you must: vbdate

Or... just try it and see for yourself. Note: the code you posted uses "date" twice...

Just follow my instructions.
Because we're lazy. So how about saving me the time and doing my homework for me?
Reply With Quote
  #6  
Old 08-04-2008, 11:20 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hope that was sarcasm because if it wasn't...

Reply With Quote
  #7  
Old 08-04-2008, 11:24 AM
nexialys
Guest
 
Posts: n/a
Default

I'm with the lady here... you do not deserve your title if you are that lazy... sarcasm is not good on google!
Reply With Quote
  #8  
Old 08-04-2008, 11:27 AM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nexialys View Post
I'm with the lady here... you do not deserve your title if you are that lazy... sarcasm is not good on google!
Well let me put it this way. I didn't know what the variable was called, so I spent like 3 hours searching google, not knowing what I was looking for. Then Opserty told me what to try and for the past 7 minutes I have tried all sorts of different combination's of code to make it work, but it just ends up messing it up. It's 8:27 AM and if someone knows how to fix it, then save me the time so I can get to sleep.
Reply With Quote
  #9  
Old 08-04-2008, 11:52 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh wait, is this added to post message for a double post auto-merge mod similar to vB.org's? If so you can't adjust the time for each user as it is written into the message and just a piece of text.

Would have been helpful to have said what it was for in the first post.

I'd have presumed it was just a normal page otherwise.
Reply With Quote
  #10  
Old 08-04-2008, 04:06 PM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post
Oh wait, is this added to post message for a double post auto-merge mod similar to vB.org's? If so you can't adjust the time for each user as it is written into the message and just a piece of text.

Would have been helpful to have said what it was for in the first post.

I'd have presumed it was just a normal page otherwise.
So there's no way to implement this code?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:19 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08298 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete