Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by mister mister is offline
Developer Last Online: May 2015 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-03-2001 Last Update: Never Installs: 2
 
No support by the author.

Title: Countdown To Calendar Events hack
Newest Release: 10.04.2001
Author: mister
What It Does: Counts down (to the day) to any public events in the calendar. plus any private events a user may have.
Screenshot: click here for screenshot
Download: see attached file (countdown1.zip)

Possible Future Enhancements:
  • span across page, in case of 100's of events
  • show only private events, only public events, or all
  • show countdown on actual calendar also


How To Install
1) upload countdown.php to your main forums directory
2) create two templates

countdown_bit
Quote:
<tr>
<td bgcolor="$altcolor"><a href="calendar.php?s=&action=getinfo&eventid=$even t[eventid]"><normalfont>$event[subject]</normalfont></a></td>
<td bgcolor="$altcolor" align="center"><normalfont>$event[eventdate]</normalfont></td>
<td bgcolor="$altcolor"><normalfont>$days_till</normalfont></td>
</tr>
countdown
note: all {} values have spaces in them so this forum doesnt parse them...
copy/paste from the included text file if you dont want to search for all the { blah } variables to change in this template


Quote:
{ htmldoctype }
<html>
<head><title>$bbtitle - Countdowns</title>
$headinclude
<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
window.open("member.php?s=$session[sessionhash]&action=aimmessage&aim="+aimid,"_blank","toolbar=n o,location=no,menubar=no,scrollbars=no,width=175,h eight=275,resizeable=yes,status=no")
}
// -->
</script>
</head>
<body>
$header

<table cellpadding="2" cellspacing="0" border="0" width="{ contenttablewidth }" { tableinvisibleextra } align="center">
<tr>
<td width="100%"><img src="{ imagesfolder }/vb_bullet.gif" alt="" border="0" align="absmiddle">
<normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> { nav_joiner } Countdowns</b></normalfont></td>
</tr>
</table>

<br>

<table cellpadding=4 cellspacing=1 border=0 bgcolor="{ tablebordercolor }" width="90%">

<tr>
<td bgcolor="{ tableheadbgcolor }"><normalfont><b>Event</b></normalfont></td>
<td bgcolor="{ tableheadbgcolor }" align="center"><normalfont><b>Date</b></normalfont></td>
<td bgcolor="{ tableheadbgcolor }"><normalfont><b>Countdown</b></normalfont></td>
</tr>

$countdown_bits

</table>

$footer
</body>
</html>

3) create a { nav_joiner } replacement variable. (or just edit that out of the template, and put your own in there... its up to you


4) Enjoy.

Show Your Support

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

Comments
  #12  
Old 10-04-2001, 09:36 PM
maverick1236 maverick1236 is offline
 
Join Date: Oct 2001
Location: NY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where is this supposed to show up?
i dont see it anywhere lol
Reply With Quote
  #13  
Old 10-04-2001, 09:51 PM
TheCaver TheCaver is offline
 
Join Date: Oct 2001
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like this hack but I would like to add 1-3 of the closest events to the main forum index, maybe a new row above birthdays......this possible?

JC
Reply With Quote
  #14  
Old 10-04-2001, 10:27 PM
maverick1236 maverick1236 is offline
 
Join Date: Oct 2001
Location: NY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great idea thecaver!!
Reply With Quote
  #15  
Old 10-05-2001, 05:07 AM
mister mister is offline
 
Join Date: Oct 2001
Location: Detroit, MI
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Maverick1236
where is this supposed to show up?
i dont see it anywhere lol

just load countdown.php in your browser.
put a link wherever you see fit (from main page, from header, from calendar, where-ever)
Reply With Quote
  #16  
Old 10-05-2001, 11:58 AM
maverick1236 maverick1236 is offline
 
Join Date: Oct 2001
Location: NY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what if i want it to actually show below birthdaybits? on forumhome?
Reply With Quote
  #17  
Old 10-06-2001, 11:53 AM
Ruth Ruth is offline
 
Join Date: Oct 2001
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the hack,

can this be used for the following purpose:

(1) users enter their graduation date in the registration form, for example in the form of [Fixed day - Fixed month - year selected from a drop down menu]

(2) show count down to graduation day in the user profiles.

(3) show the count down by seconds, like most java scripts.

nice hack

thanks
Reply With Quote
  #18  
Old 10-06-2001, 04:07 PM
Cygnus Cygnus is offline
 
Join Date: Nov 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Ruth
(3) show the count down by seconds, like most java scripts.
Exactly what I was gonna ask... I have a whole mess of freaks (myself included) who simply cannot wait for Thursday at 8:00pm and will want to know how many minutes and seconds they have to wait...

Cygnus
Reply With Quote
  #19  
Old 10-07-2001, 10:27 PM
mister mister is offline
 
Join Date: Oct 2001
Location: Detroit, MI
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
thanks for the hack,
You're welcome.

Quote:
(1) users enter their graduation date in the registration form, for example in the form of [Fixed day - Fixed month - year selected from a drop down menu]
You'd have to do some coding in register.php to have it add that graduation date to the calendar. As of now, the countdown script grabs all dates from the calendar.

Quote:
(2) show count down to graduation day in the user profiles.
if you got it to add the date to the calendar, i suppose this could be worked out...

Quote:
(3) show the count down by seconds, like most java scripts.
The countdown script feeds off dates from teh calendar, which doesn't allow for hour/min/second ... so it would just countdown to midnight .. so I just rounded it to the nearest day.


-mister
Reply With Quote
  #20  
Old 10-07-2001, 10:29 PM
mister mister is offline
 
Join Date: Oct 2001
Location: Detroit, MI
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by TheCaver
I like this hack but I would like to add 1-3 of the closest events to the main forum index, maybe a new row above birthdays......this possible?


JC
possible? yes
i'll put it in this hack's next release -- which wont be out for quite some time, due to school projects that are piling up
Reply With Quote
Reply


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 01:37 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.07333 seconds
  • Memory Usage 2,297KB
  • Queries Executed 24 (?)
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
  • (9)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
  • (1)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
  • (10)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