News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

CountDown BBC

Started by .HuNTeR., December 25, 2008, 04:03:26 AM

Previous topic - Next topic

MUSTAfaINE

is it working with smf 2.0 rc1


ოկtђ

Turkish translation of this modification was made for you.
//CountDown BBC
$txt['countdown'] = 'Geri sayım';
$txt['cd_year'] = ' Yıl';
$txt['cd_years'] = ' Yıllar';
$txt['cd_month'] = ' Ay';
$txt['cd_months'] = ' aylar';
$txt['cd_day'] = ' gün';
$txt['cd_days'] = ' günler';
$txt['cd_hour'] = ' saat';
$txt['cd_hours'] = ' saatler';
$txt['cd_minute'] = ' dakika';
$txt['cd_minutes'] = ' dakikalar';
$txt['cd_remaning'] = ' kalan süre.';




MUSTAfaINE



.HuNTeR.


[unplugged]

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



MUSTAfaINE



[unplugged]

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Atoa

Goog mood but it would be good if you could also add a text.
E.g.:
[countdown=,8,14,2009,13,23, "this message will auto-destroied in"]BUM![/countdown]

then the message would desapear toghter with the count.

chrishicks

Quote from: Atoa on June 18, 2009, 12:42:16 PM
Goog mood but it would be good if you could also add a text.
E.g.:
[countdown=,8,14,2009,13,23, "this message will auto-destroied in"]BUM![/countdown]

then the message would desapear toghter with the count.

Agreed. I've noticed just that on VB forums which prompted me to come here to look for something similar.

  --- click to enlarge

bbmtalk

one question -

The text inside the countdown BBC doesn't display smileys or allow other BBCs?

LP

I'm using the version modified by tmdg that is attached in this post:
http://www.simplemachines.org/community/index.php?topic=282279.msg1905622#msg1905622

I'm using it successfully in SMF 2.0 RC1.2, but I have made a couple of small changes to the code.


On my forum, the countdown would not work properly when there was less than a day left, so I replaced this line:

if ( $remainTime > 0 )


with this line:


if ( $remainTime > -1 )





and I also wanted the countdown to show "seconds" remaining, but only when there was less than one minute left in the countdown.  So I added this section:

if ($remainTime < 60){
$second = $remainTime;
    if ($message == ""){
if ($second > 1)
    $message .= $second . " seconds";
else
    $message .= $second . " second";
    }
}


right before this line:

$message .= $txt[\'cd_remaining\'];



Thanks for the countdown timer, my forum members really appreciate it!

- = Orfeo = -

Hi guys! i have a problem: this mod change the hour (i change the smf time for my location) and the countdown add two hours, how i can solve this problem?  :-\

technica

#52
I am using the MOD created by tmdg on my SMF version 1.1.11.

I am using this mod for the contest that I have on my forum to indicate the users the remaining time for contest to expire.

But I can not see the timer on the thread. It is just displaying the text used in the [countdown] BB code. I using the code like this [countdown=8,14,2009,13,23,,Europe/London]

But it is not showing me the timer.
please help.

Can we use it in the threads? ( may be sticky thread?)
Programming and Webmaster Forum - AdSense Revenue Sharing Forum
Online Magazine

technica

bumping as I have not received any reply on this.

The mod is not working on my smf 1.1.11 version forum.

Anybody can help?
Programming and Webmaster Forum - AdSense Revenue Sharing Forum
Online Magazine

Apllicmz

Nice mod
When Update dont forget portuguese

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">       
        <operation>
            <search position="end" />
            <add><![CDATA[
//CountDown BBC Translate by Candidosa2
$txt['countdown'] = 'Contagem regressiva';
$txt['cd_year'] = ' Ano';
$txt['cd_years'] = ' Anos';
$txt['cd_month'] = ' M&ecirc;s';
$txt['cd_months'] = ' Mêses';
$txt['cd_day'] = ' dia';
$txt['cd_days'] = ' dias';
$txt['cd_hour'] = ' hora';
$txt['cd_hours'] = ' horas';
$txt['cd_minute'] = ' minuto';
$txt['cd_minutes'] = ' minutos';
$txt['cd_remaning'] = ' restante.';
]]></add>
        </operation>
    </file>
   
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">       
        <operation>
            <search position="end" />
            <add><![CDATA[
//CountDown BBC Translate by Candidosa2
$txt['countdown'] = 'Contagem regressiva';
$txt['cd_year'] = ' Ano';
$txt['cd_years'] = ' Anos';
$txt['cd_month'] = ' M&ecirc;s';
$txt['cd_months'] = ' Meses';
$txt['cd_day'] = ' Dia';
$txt['cd_days'] = ' Dias';
$txt['cd_hour'] = ' Hora';
$txt['cd_hours'] = ' Horas';
$txt['cd_minute'] = ' Minuto';
$txt['cd_minutes'] = ' Minutos';
$txt['cd_remaning'] = ' Restante.';
]]></add>
        </operation>
    </file>




VyrOn

I like how the maker of this mod, posted this on Christmas and then says, create a countdown to christmas while it's already christmas!! LMFAO!!! :P :laugh:

Advertisement: