Countdown Block

Mods etc.

Moderator: Integra Moderator

Re: Countdown Block

PostAuthor: doswald » Sun Nov 05, 2006 11:53 pm

"cleo";p="17344" wrote:for showing the words minutes and seconds do this

#
#-----[ OPEN ]------------------------------------------
#
root/language/lang_english/lang_countdown.php


#
#-----[ FIND ]------------------------------------------
#
$lang['C_days'] = 'Remaining Days:';


#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['C_days'] = 'Days';
$lang['C_hours'] = 'Hours';
$lang['C_mins'] = 'Minutes';
$lang['C_secs'] = 'Seconds';


Cleo, you've got it. Thanks it works
Last edited by doswald on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
One of the best ways to educate our hearts is to look at our interaction with other people, because our relationships with others are fundamentally a reflection of our relationship with ourselves.
--Stephen R. Covey First Things First--
User avatar
doswald
Integra Member
Integra Member
 
Posts: 165
Likes: 0 post
Liked in: 0 post
Joined: Tue May 09, 2006 8:33 pm
Cash on hand: 0.00

PostAuthor: Tom_S » Tue Nov 07, 2006 5:38 am

I still have a blank block
Last edited by Tom_S on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
<img>

Tom_S
Integra Supporter
Integra Supporter
 
Posts: 62
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 7:23 am
Cash on hand: 0.00

PostAuthor: krillmeed » Sat Nov 18, 2006 7:35 am

I have got it to show no problem, but i had to add it in the block management, i saw on various sites that they had it on the left no problem, when i did that it just stretched full size throwing of all the other blocks. Have i done something wrong?
Last edited by krillmeed on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

PostAuthor: Michaelo » Sat Nov 18, 2006 10:34 am

Just a quick suggestion... Do not select cache for this block and if anyone has a link post it here so I can have a look... Mike
Last edited by Michaelo on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1646
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 5:14 pm
Cash on hand: 0.00
Location: Dublin, Ireland

PostAuthor: krillmeed » Sat Nov 18, 2006 10:37 am

i saw that already and did not select that, i am guessing in the admin panel i have to select left or right and put something in there, i have no idea what
Last edited by krillmeed on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

PostAuthor: ayasha » Sat Nov 18, 2006 11:27 am

here is a link to where i uploaded the zip of this mod for you Mike

http://graphicsplayhouse.com/userupload ... ock100.zip
Last edited by ayasha on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 5:10 pm
Cash on hand: 0.00

PostAuthor: krillmeed » Sun Nov 19, 2006 2:12 am

i have yet to get this to show on the index page either on the left when it does show stretches out the who page or at the bottom center were it does not show at all except on the portal, i have clicked on that index and portal option in the ACP still not showing on the index page though
Last edited by krillmeed on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

Re: Countdown Block

PostAuthor: HoRuZ » Sun Nov 19, 2006 3:30 am

I still have to build my site for these things :?
It could be the timezone settings, like I had when I set the board's timezone wrong.

And one small problem, I don't know how to fix, is that the pop-up is missing when the block reaches the time set. I looked over it and over it, but can't find what's wrong.

HoRuZ
Last edited by HoRuZ on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

HoRuZ
Members
Members
 
Posts: 40
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 10:55 am
Cash on hand: 0.00

PostAuthor: krillmeed » Sun Nov 19, 2006 3:35 am

For me it did show on the left no problem but full size so to speak, as for reaching the time set, i have yet to get that far <img>
Last edited by krillmeed on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

Re: Countdown Block

PostAuthor: krillmeed » Sun Nov 19, 2006 6:11 am

I have managed to get it to show on the Portal as you will see here:

[web:1d6k63bx]http://www.krillmeed.com/forum/portal.php?sid=6f6ab810064f6287e841498464c305e4[/web:1d6k63bx]

would be nice if it could be like that on the index page as well, another question, does anyone know how to get the title block to stretch the full lenght and to have the countdown to important events in white and not black? i presume i have to change some values in the block tpl file which is this:

Code: Select all
<BEGIN> <form>   <tr>       <th>{TITLE}</th>   </tr>   <tr>     <td>{IMG_LEFT}</td>     <td>     {L_REMAINING} <input>     <span>{L_DAYS}      <input>{L_HOURS}      <input>{L_MINS}      <input>{L_SECS}     </span><br><span>{DESC}</span><br><span>{TEXT}</span></td>     <td>{IMG_RIGHT}</td>   </tr> </form>  <script>countdown();[color=red]Java script is not allowed in posts*[/color] <END>


Any help would be appreciated, what with thankgiving comeing up for our American members, the rest of us christmas, could be a cool mod to have <img>
Last edited by krillmeed on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

PostAuthor: krillmeed » Sun Nov 19, 2006 10:00 pm

my fellow admin got it to look right now, does anyone know how to get it to show on the index page as well say under the shoutbox?
Last edited by krillmeed on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

PostAuthor: krillmeed » Tue Nov 21, 2006 10:20 am

we are still working on this, what makes the shoutbox appear in the portal and the index page if we could figure that one out we could do the same with the countdown. It shows in the index now but with no time in it
Last edited by krillmeed on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

Re: Countdown Block

PostAuthor: Teelk » Tue Nov 21, 2006 5:52 pm

The php code from the block's .php file needs to be added to index.php, while the html code from the block's .tpl file needs to be placed in the index_body.tpl of your theme.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: Countdown Block

PostAuthor: evolver » Wed Nov 22, 2006 4:32 pm

57 replies for a countdown block, whaw...

I have been watching this topic with interest, but I see you struggling with the timezones...
Very logical, if you are using PHP to read the time because PHP doesn't read the usertime, only the servertime.
So the only way to get it right for every user by PHP would be by timezonecalculation for every user...
All this is unnecessary...

Javascript is better for this situation, and I use one...
Different from PHP, javascript will use the visitors computertime instead of servertime...
No need for special formulas to make it suitable with different timezones, and it will save your server some processing too...
...and with no extra tables to add in your database...


Can't be more easy than this:
Just make a block with HTML and place this code in it:

(It's javascript, so I've placed it as a downloadable compressed textfile)

The only problem would be language, if you have more languages on your forum.
Attachments
countdown_javascript.rar
Javascript Countdown

Still xx days, xx hours, xx minutes and xx seconds before Newyear.
(524 Bytes) Downloaded 219 times
Last edited by evolver on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende

Re: Countdown Block

PostAuthor: evolver » Wed Nov 22, 2006 4:54 pm

For different languages, I do agree that it would be better as a predefined block...
But even then, best in combination with javascript...

Servertime with PHP and computertime with javascript, that's the idea...
Especially if it's for display only...
If it needs to be recorded in database, that could be a different story, but I don't think that's the case here...



Another alternative would be flash <img>
Just like the animated clock on IM, it also works on users computertime, not servertime.

Some examples:
http://www.jracademy.com/~jtucek/flash.html
http://www.freeflashtoys.com/countdown.html
http://www.sevenoaksart.co.uk/countdown.htm

Or if you want to create one yourself, this site explains how to:
http://www.kirupa.com/developer/mx/countdown.htm
Last edited by evolver on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende

PreviousNext

Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Google [Bot], Helter, Majestic-12 [Bot]