View Full Version : Module Request - Analog Clock
The Sandman
06-05-2004, 05:39 PM
Can someone create a module with an analog clock on it based on Filburt1's Clock (http://www.vbulletintemplates.com/mods/showthread.php?t=2206) or something like it?
Richard
06-05-2004, 09:25 PM
This is just for the vBadvanced CMPS side, you will still need to follow the instructions with filburt1's Clock MOD. (including the part about giving credit in your footer)
First, upload both the clock.php file (after editing the options in the file, if you plan on doing that) and the background.jpg file (if you have one) to the /modules directory.
Then:
In your Admincp - Styles & Templates - Style Manager - Add a new template called "adv_portal_clock".
Insert this code into the template:
<!-- Analog Clock Block -->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] Clock</b></span></td>
</tr>
</thead>
<tbody>
<tr>
<td class="$getbgrow" width="100%" align="center"><img src="$vboptions[bburl]/modules/clock.php?outputimage=1"></td>
</tr>
</tbody>
</table>
<br />
<!-- End Analog Clock Block -->
Save the template!
Still in your Admincp - vBa CMPS - Add Module
- Module Title - Clock
- Module Identifier - Leave blank
- OR Template to Include - clock
- Activate and select the column you want it in.
- Save and you are done.
Module instructions based on: cLord's Basic Module (http://www.vbadvanced.com/forum/showthread.php?t=1011)
The Sandman
06-05-2004, 09:48 PM
I followed your instructions carefully, and I see the module, but the clock doesn't show, just a placeholder. Any ideas?
Richard
06-05-2004, 10:02 PM
if you don't use a background image, you have to edit the clock.php file and change this line: $backgroundimage = "background.jpg"; // filename of backgroundto this: $backgroundimage = ""; // filename of backgroundI would suggest using a background image though. I am attaching the background image I used to test this.
The Sandman
06-05-2004, 10:35 PM
OK - now I got it! Looks pretty good too. Thanks Richard. :D And I added filbert1 to the footer...
The Sandman
06-06-2004, 09:04 AM
Is there any way to keep the clock's time updated without refreshing the whole page?
The Sandman
06-06-2004, 10:52 AM
Something like the flash clock on the bottom of This Page (http://forum.sinceretheory.net/)?
Yes, I know that's not a vB Board...
The Sandman
06-06-2004, 11:04 AM
Or This One (http://www.macromedia.com/support/flash/interactivity/dateobject/)?
cLord
06-06-2004, 02:04 PM
I'll release a clock module later tonight [FLASH]
*EDIT*
Released: http://www.vbadvanced.com/forum/showthread.php?t=1172
cLord ;)
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.