vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=139)
-   -   [release] Clock (https://vborg.vbsupport.ru/showthread.php?t=85538)

filburt1 12-03-2002 10:00 PM

[release] Clock
 
Author: filburt1
Description: Graphical clock
Demo: http://www.webdesignforums.net/?styleid=3
Screenshot: Attached to this post.

If you use this mod, you MUST put the following text in your footer:

Quote:

Graphical clock by filburt1.
I put a lot of work into this seemingly simple mod and it's the least you can do :)

This is basically a graphical cloc. Configure the following variables within the file clock.php to make it match your forums:
PHP Code:

$backgroundimage "background.jpg"// filename of background
                                     // image (must be a .jpg); omit to make a
                                     // 300x300 blank black image. The image must be
                                     // square (i.e., 1:1 ratio)
$outercutoff 9// nothing will be drawn outside this padding threshold
    
// Following are cutoffs relative to $outercutoff
$minutescutoff 10// smallest distance the minute hand will ever be from the edge
$hourscutoff 20// smallest distance the hour hand will ever be from the edge
$realistichourhand 1// make the hour hand shift according to the minute when 1
$realisticminutehand 1// make the minute hand shift according to the second when 1
$minutescolor "666666"// hex color to use for minute hand, omit for white
$hourscolor "666666"// hex color to use for hour hand, omit for white
$tickscolor "777777"// hex color to use for the ticks, omit to omit the ticks
$textcolor ""// hex color to use for the text, omit to omit the text 

You need PHP with the GD library to use this.

The files and instructions are coming up in the next post.

[edit] just adding in your copyright text - loo]

filburt1 12-04-2002 01:49 AM

Instructions:

0zeo 12-04-2002 10:20 AM

Thanks.

I like this hack

CannonFodder 12-04-2002 02:48 PM

very, very nice. must say, good job. this is a must have for me

alkatraz 12-05-2002 12:06 AM

Looks great!

Rose 02-14-2003 03:28 PM

Many thanks again! *clicks install*

Bad Bunny 02-14-2003 03:37 PM

I missed this somehow.

Rose 02-14-2003 04:38 PM

I've a question - My server time is set to EST, which is what the clock is accordingly set to. However, almost ALL of my users are in CST. Is there a way to configure the clock to add/subtract an hour from the server? I've given a good look over clock.php, but I'm afraid I can't figure it out.

filburt1 02-14-2003 04:45 PM

Try this (untested):

Find:
PHP Code:

    if ($hourspercent 12$hourspercent -= 12

Before that, add:
PHP Code:

$hourspercent += [i]your GMT time shift[/i];
if (
$hourspercent >= 24$hourspercent -= 24


Rose 02-14-2003 05:01 PM

Sweet. It worked.

/me curtseys


All times are GMT. The time now is 09:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01240 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete