The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Local time in postbit
In vbulletin 3 I had the user's local time in the post bit and was using this:
GMT+$post[timezoneoffset] I tried getting this to work in vbulletin 4 but not having much luck. If I do {vb:raw $post[timezoneoffset]} I get a value but am not sure how to get the current time to add that value to. Also not sure about DST. Is the user's local time a variable I can simply use for this purpose? Thanks |
#2
|
||||
|
||||
What *exactly* are you using in the postbit? You didn't actually write "GMT+$post[timezoneoffset]", so tell us exactly what you used to do and exactly what you have tried to do in vB4.
|
#4
|
|||
|
|||
It was based on a custom field that would show an image of the user's country flag and on hover would show the country name and the user's local time. This is what I had in postbit_legacy for 3.5.
Code:
<div class="smallfont"> Location: <img Title="$post[field8] (GMT+$post[timezoneoffset])" src="http://www.vbaexpress.com/forum/images/flags/$post[field8] 3D.gif" alt="" align="center" /> --------------- Added [DATE]1374823196[/DATE] at [TIME]1374823196[/TIME] --------------- {vb:raw post.localtime} seems to do what I want. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|