PDA

View Full Version : Mini Mods - Add the time the page was generated at back!


Zachery
05-23-2013, 10:00 PM
This should typically work on 5.0.x:

On 5.0.2, in your footer template, find:


<div id="footer-copyright">


Add after


<div id="timeisstupid" class="gd-time h-left">All times are GMT<vb:if condition="$user['timezoneoffset'] != 0">{vb:raw user.timezoneoffset}</vb:if>. This page was generated at {vb:date 'timenow', {vb:raw vboptions.timeformat}}.</div>


Save, (ignore the error about you violating the copyright, old messages are stupid).

You should see the time as shown in the tiny preview.


I use generated at, because the guest cache by default is 10 min long, makes it more clear that the page might be cached in some cases.

Zachery
05-23-2013, 11:16 PM
Thanks to Fillip from DBTech for helping me debug my stupidness on this one.

Brandon Sheley
05-24-2013, 01:13 AM
Nice addon, thanks for sharing Zachery :up: