The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
ahh i see what you mean now
open global.php find PHP Code:
|
#22
|
||||
|
||||
Thank you. Now all I need to know is how you mean the "format string". Do I need to set it up somewhere else first? I'm sorry to sound so simple on this, but it has me totally baffled.
|
#23
|
||||
|
||||
instead of $timeformat use this (f.e.) string:
PHP Code:
|
#24
|
||||
|
||||
Ok, but will that work according to the users offset?
|
#25
|
||||
|
||||
yes it will, because vbdate function is used ^^
|
#26
|
||||
|
||||
Thank you, it worked. here's what I have now:
Code:
$timenow=vbdate("g:i a, D, M j, Y",time()); 12:22 pm on Sun, Dec 8, 2002. instead of: 12:22 pm, Sun, Dec 8, 2002. |
#27
|
||||
|
||||
hmm, try this one:
PHP Code:
|
#28
|
||||
|
||||
Perfect! Worked like a charm. Thank you very much, kind sir.
I need to ask, though, what are the 2 periods for in the code? |
#29
|
||||
|
||||
well, you have to divide the code, because the formatstring would be converted into numbers or other things
vbdate("g:i a", time()) gives out: "12:22 pm" . " on " . adds the " on " to the string and vbdate("D, M j, Y",time()); adds the "Sun, Dec 8, 2002" |
#30
|
||||
|
||||
Ahh, ok, that makes sense now. Would it also work like this?
$timenow=vbdate("g:i a", time())." on ".vbdate("D, M j, Y",time()); or do the spaces have to be there, too? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|