• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
World Time Map and Local Time in Sidebar

How To Add A World Time Map

DRE

Well-known member
#1
The8thLegion submitted a new resource:

How To Add A World Time Map (version 1.0) - Find out what time it is on the other side of the world.

This is an easy way to see what time it is in your member's side of the world. It provides a quick link from your sidebar to a page on your site that has the world time map.

In your AdminCP click on Applications - admin.php?applications/

Under Node Tree click on 'Create New Page' - admin.php?pages/add

In the Basic Information tab fill out the following:

URL Portion: time
Title: World Time Map

Now go to the Page Options tab.

In Template HTML, add the following embed code:

Code:
...
Read more about this resource...
 
#2
This is very nice, thanks for sharing.

Made a small change to your visitor panel code, hope you don't mind.

time_visitorpanel.png

In sidebar_visitor_panel, add after {xen:number $visitor.trophy_points}</dd></dl>
Code:
<div style="height: 5px"></div>
<dl class="pairsJustified"><dt></dt> <dd><a href="pages/time" class="footnote">{xen:datetime $datetime, 'absolute'}</a></dd></dl>
 

DRE

Well-known member
#3
This is very nice, thanks for sharing.

Made a small change to your visitor panel code, hope you don't mind.

View attachment 27837

In sidebar_visitor_panel, add after {xen:number $visitor.trophy_points}</dd></dl>
Code:
<div style="height: 5px"></div>
<dl class="pairsJustified"><dt></dt> <dd><a href="pages/time" class="footnote">{xen:datetime $datetime, 'absolute'}</a></dd></dl>
That looks way better!