Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
Countdown Details »»
Countdown
Version: 1.00, by Sinclair Sinclair is offline
Developer Last Online: Oct 2010 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-01-2002 Last Update: Never Installs: 3
 
No support by the author.

German user please read after the english instructions!

(sorry for my terrible english )
This hack allow the users to show an personal countdown.
Tag: [countdown]year,month,day,hour,minute,second[/countdown].

how to install this hack? :

admin/functions.php

PHP Code:
return censortext($bbcode);


before that add:
PHP Code:
          preg_match("/(\[)(countdown)(])(\r\n)*([^\"]*)(\[\/countdown\])/siU"$bbcode$datum1);
$bbcode preg_replace("/(\[)(countdown)(])(\r\n)*([^\"]*)(\[\/countdown\])/siU"countdowndate($datum1[0]), $bbcode); 
find:
PHP Code:
// ###################### Start show_nopermission #######################
function show_nopermission() { 
before that add:
PHP Code:
// ##### Countdown Hack by Sinclair (jeff@star-trek-forum.net) ######
function countdowndate($date2) {

$date=explode(",",$date2);

$date[0]=str_replace("[countdown]"""$date[0]);
$jahr=intval($date[0]);
$monat=intval($date[1]);
$tag=intval($date[2]);
$stunde=intval($date[3]);
$minute=intval($date[4]);
$sekunde=intval($date[5]);

$target mktime($stunde,$minute,$sekunde,$monat,$tag,$jahr); 
$diff $target time(); 

$days = ($diff - ($diff 86400)) / 86400
$diff $diff - ($days 86400); 
$hours = ($diff - ($diff 3600)) / 3600
$diff $diff - ($hours 3600); 
$minutes = ($diff - ($diff 60)) / 60
$diff $diff - ($minutes 60); 
$seconds = ($diff - ($diff 1)) / 1

$out"$days days, $hours hours, $minutes minutes, $seconds seconds";

return 
$out;


Thats all!

########### german ###########

Mit diesem Hack k?nnen eure User einen individuellen Countdown einblenden.
Der Tag lautet: [countdown]Jahr,Monat,Tag,Stunde,Minute,Sekunde[/countdown]

Installation:

admin/functions.php

Finde:
PHP Code:
return censortext($bbcode);


Dar?ber f?ge folgendes ein:
PHP Code:
          preg_match("/(\[)(countdown)(])(\r\n)*([^\"]*)(\[\/countdown\])/siU"$bbcode$datum1);
$bbcode preg_replace("/(\[)(countdown)(])(\r\n)*([^\"]*)(\[\/countdown\])/siU"countdowndate($datum1[0]), $bbcode); 
Finde:
PHP Code:
// ###################### Start show_nopermission #######################
function show_nopermission() { 
Dar?ber f?ge folgendes ein:
PHP Code:
// ##### Countdown Hack by Sinclair (jeff@star-trek-forum.net) ######
function countdowndate($date2) {

$date=explode(",",$date2);

$date[0]=str_replace("[countdown]"""$date[0]);
$jahr=intval($date[0]);
$monat=intval($date[1]);
$tag=intval($date[2]);
$stunde=intval($date[3]);
$minute=intval($date[4]);
$sekunde=intval($date[5]);

$target mktime($stunde,$minute,$sekunde,$monat,$tag,$jahr); 
$diff $target time(); 

$days = ($diff - ($diff 86400)) / 86400
$diff $diff - ($days 86400); 
$hours = ($diff - ($diff 3600)) / 3600
$diff $diff - ($hours 3600); 
$minutes = ($diff - ($diff 60)) / 60
$diff $diff - ($minutes 60); 
$seconds = ($diff - ($diff 1)) / 1

$out"$days Tage, $hours Stunden, $minutes Minuten, $seconds Sekunden";

return 
$out;


F?r weitere Fragen stehe ich in diesem Thread zur Verf?gung!

Show Your Support

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

Comments
  #2  
Old 07-02-2002, 01:55 PM
MrLister's Avatar
MrLister MrLister is offline
 
Join Date: Oct 2001
Posts: 434
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshot maybe?
Reply With Quote
  #3  
Old 07-02-2002, 05:48 PM
firewars firewars is offline
 
Join Date: Oct 2001
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This, for example, didn't work for me:

PHP Code:
[countdown]2002,07,18,12,00,00[/countdown
Reply With Quote
  #4  
Old 07-02-2002, 06:34 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could have sworn this was released...but I'm too lazy to search for it ^_^
Reply With Quote
  #5  
Old 07-02-2002, 06:47 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It has been before...

Satan
Reply With Quote
  #6  
Old 07-03-2002, 01:19 AM
KevinG KevinG is offline
 
Join Date: Dec 2001
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I made one here back on May3, 2002.
Maybe that's the one you remember seeing. :disappointed:
Reply With Quote
  #7  
Old 07-06-2002, 09:36 AM
Sinclair Sinclair is offline
 
Join Date: Oct 2001
Location: Germany: Berlin
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ops...
@Mods
please remove this thread....
Reply With Quote
  #8  
Old 09-16-2007, 08:39 PM
jamoss's Avatar
jamoss jamoss is offline
 
Join Date: Apr 2002
Location: Los Angeles
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have updated this to work as a plug-in for later versions of vbull:

https://vborg.vbsupport.ru/showthread.php?p=1340377
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 02:40 PM.


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.04589 seconds
  • Memory Usage 2,302KB
  • Queries Executed 21 (?)
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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete