1. Define the variable:
AdminCP -> Plugins & Products -> Add New Plugin:
Code:
Product = vBulletin Hook Location: Global_Start Name: Standard Time PHP Code: $server_time = date('h:i:s A'); Active? Yes
2. Insert the variable into a template:
Bring up the Footer template for the selected style. Locate the first </div>, which is on line 5, then add this code just before it:
Code:
<br />The server time is now {$server_time}.
The forum administrator can then tweak the code in the plugin to output the desired time format. It's the standard PHP date() function.
Leave a comment: