Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Template Modifications

Reply
 
Thread Tools
[release] Clock Details »»
[release] Clock
Version: 1.00, by filburt1 filburt1 is offline
Developer Last Online: May 2007 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 12-03-2002 Last Update: Never Installs: 0
 
No support by the author.

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]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-04-2002, 01:49 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Instructions:
Reply With Quote
  #3  
Old 12-04-2002, 10:20 AM
0zeo
Guest
 
Posts: n/a
Default

Thanks.

I like this hack
Reply With Quote
  #4  
Old 12-04-2002, 02:48 PM
CannonFodder's Avatar
CannonFodder CannonFodder is offline
 
Join Date: Jun 2002
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very, very nice. must say, good job. this is a must have for me
Reply With Quote
  #5  
Old 12-05-2002, 12:06 AM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks great!
Reply With Quote
  #6  
Old 02-14-2003, 03:28 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Many thanks again! *clicks install*
Reply With Quote
  #7  
Old 02-14-2003, 03:37 PM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I missed this somehow.
Reply With Quote
  #8  
Old 02-14-2003, 04:38 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 02-14-2003, 04:45 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 02-14-2003, 05:01 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet. It worked.

/me curtseys
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04738 seconds
  • Memory Usage 2,295KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete