The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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'] |
|
#2
|
|||
|
|||
|
Just changing date to vbdate should do the trick, no need for anything else. (I think
)
|
|
#3
|
|||
|
|||
|
What variable would that be? I don't want the date I want the time btw.
|
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
|||
|
|||
|
Quote:
|
|
#6
|
|||
|
|||
|
I hope that was sarcasm because if it wasn't...
![]()
|
|
#7
|
|||
|
|||
|
I'm with the lady here... you do not deserve your title if you are that lazy... sarcasm is not good on google!
|
|
#8
|
|||
|
|||
|
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.
|
|
#9
|
|||
|
|||
|
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. |
|
#10
|
|||
|
|||
|
Quote:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|