String with UTC time

fredrikse

Active member
Hi,

In another thread (http://xenforo.com/community/posts/417170/) I have asked for help how I can display UTC time in xenForo. Unfortunately it's not possible at this time because the lack of support for the necessary time functions. However, I was told by Jake that what I want to acheive is possible with the help of a template hook:

Here it is in Jakes own words:

It's possible with a template hook listener. Here is a code example of a template hook:

http://xenforo.com/community/threads/how-to-create-a-bridge.28515/#post-331631

For your purposes you can use the "ad_header" hook which will insert your content in the ad_header template.

Then you need to write the code to build the current time string in UTC and append it to the $contents of the hook.

If you are not a programmer then you can post a request:

http://xenforo.com/community/forums/custom-service-development-requests.69/

The output string I try to acheive is: HH:SS UTC

This is what I have so far:

time.webp

Help on this one would be appreciaated. Tell me what you want in return. Thanks!
 
Back
Top Bottom