vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Countdown (https://vborg.vbsupport.ru/showthread.php?t=40557)

Sinclair 07-01-2002 10:00 PM

Countdown
 
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!

MrLister 07-02-2002 01:55 PM

screenshot maybe?

firewars 07-02-2002 05:48 PM

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

PHP Code:

[countdown]2002,07,18,12,00,00[/countdown


Velocd 07-02-2002 06:34 PM

I could have sworn this was released...but I'm too lazy to search for it ^_^

Chris M 07-02-2002 06:47 PM

It has been before...

Satan

KevinG 07-03-2002 01:19 AM

I made one here back on May3, 2002.
Maybe that's the one you remember seeing. :disappointed:

Sinclair 07-06-2002 09:36 AM

Ops...
@Mods
please remove this thread....

jamoss 09-16-2007 08:39 PM

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

https://vborg.vbsupport.ru/showthread.php?p=1340377


All times are GMT. The time now is 09:18 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.01174 seconds
  • Memory Usage 1,768KB
  • 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
  • (9)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete