Countdown Block

Mods etc.

Moderator: Integra Moderator

PostAuthor: ayasha » Sat Nov 04, 2006 7:28 am

ok, guys, i moved my testing forum from xampp to my server, and i was successful in creating a table for it, but now, i have gone in the acp and configured it, but it will not show. any suggestions?
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

Re: Countdown Block

PostAuthor: Dragonsys » Sat Nov 04, 2006 10:17 am

Does the block show and it's empty, or does nothing show up?
Last edited by Dragonsys on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 6:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Countdown Block

PostAuthor: Dragonsys » Sat Nov 04, 2006 10:20 am

"Ebony";p="17279" wrote:
"doswald";p="17246" wrote:Hello again friends,

I would like to know if you know how to insert the Minutes and Seconds in the said countdown field (pls refer to the attached, in red color)

[flash=,]http://i19.photobucket.com/albums/b164/doswald/PHPBB/countdown.jpg[/flash:1x5aauxi]

Thanks, hope to hear again.

Regards,
Doswald



don't quote me on this.. but I think that is automatically set to run by your forum clock. I haven't actually played with that bit yet I am sorry...


I think he wants to insert the WORDS minutes and seconds...
Last edited by Dragonsys on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 6:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: ayasha » Sat Nov 04, 2006 10:24 am

nothing shows Dragonsys <img>
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: HoRuZ » Sat Nov 04, 2006 1:47 pm

It could be a php or mySQL version issue as Teelk mentioned.
I have it installed as I described and it works perfectly, but I run my site on a php 4.x.x server.

For showing the words I did 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';


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Updated the download as well

[url=http]advanced countdownblock100[/url]
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: Michaelo » Sat Nov 04, 2006 10:06 pm

What are you storing in event_stop? a date/time?
Use int(11) default NULL...

I note most if not all dates are stored in a integer 11 numbers long, however if the field is a date then define NULL has the effect of type casting (or it would appear)... where the field is allowed to be empty or '0' ( this is not zero... need to remove the '' else it's a character) there can be be errors down the line for functions that manipulate the entry... It's worth a try...

Either of these will work. (php5/mysql5)
Code: Select all
 CREATE TABLE phpbb_countdown(img_left varchar( 255 ) default '',img_right varchar( 255 ) default '',title varchar( 100 ) default '',description varchar( 100 ) default '',event_text varchar( 200 ) default '',event_stop int( 11 ) default NULL,enable_index tinyint( 1 ) default '0',enable_portal tinyint( 1 ) default '0',full_display tinyint( 1 ) default '1') TYPE = MYISAM ;  

or
Code: Select all
 CREATE TABLE phpbb_countdown(img_left varchar( 255 ) default '',img_right varchar( 255 ) default '',title varchar( 100 ) default '',description varchar( 100 ) default '',event_text varchar( 200 ) default '',event_stop int( 11 ) default 0,enable_index tinyint( 1 ) default '0',enable_portal tinyint( 1 ) default '0',full_display tinyint( 1 ) default '1') TYPE = MYISAM ;  


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: ayasha » Sun Nov 05, 2006 6:07 am

ok, i just don't get this, i have applied this to both my test and my live forum, the table has been created in both, but still, it does not show on either forum.
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

Re: Countdown Block

PostAuthor: Frost » Sun Nov 05, 2006 10:17 am

Are you sure it's not caching the block? Just a thought... <img>
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

PostAuthor: Tom_S » Sun Nov 05, 2006 1:52 pm

I have been tagging along with this thread and it does not work for me either. It shows the block but it is emtpy. I have "no cache" for the block. I tried dropping the table and using the sql Michaelo suggest for both and still the same. Empty block <img>
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

Re: Countdown Block

PostAuthor: ayasha » Sun Nov 05, 2006 1:56 pm

"Frost";p="17329" wrote:Are you sure it's not caching the block? Just a thought... <img>


how would i find out, and if it is, what would i do?
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: ayasha » Sun Nov 05, 2006 3:55 pm

ok, i got it to work, but even though i have it to show on the index page, it is not showing there.
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

Re: Countdown Block

PostAuthor: doswald » Sun Nov 05, 2006 5:26 pm

"Dragonsys";p="17287" wrote:
"Ebony";p="17279" wrote:
"doswald";p="17246" wrote:Hello again friends,

I would like to know if you know how to insert the Minutes and Seconds in the said countdown field (pls refer to the attached, in red color)

[flash=,]http://i19.photobucket.com/albums/b164/doswald/PHPBB/countdown.jpg[/flash:1c4mkso8]

Thanks, hope to hear again.

Regards,
Doswald



don't quote me on this.. but I think that is automatically set to run by your forum clock. I haven't actually played with that bit yet I am sorry...


I think he wants to insert the WORDS minutes and seconds...



Yes Dragonsys I refer to the WORDS inserted just like "Remaining Days" and "Hours".

Hope you can lead me.

Thanks
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

Re: Countdown Block

PostAuthor: ayasha » Sun Nov 05, 2006 5:41 pm

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';
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

Re: Countdown Block

PostAuthor: Kusco » Sun Nov 05, 2006 7:28 pm

Hy, everybody.
I install this mod, every tinhg goes well, .----
Except I have no time values, do you know why?
Last edited by Kusco on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Kusco
Members
Members
 
Posts: 37
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 11:05 am
Cash on hand: 0.00

PostAuthor: Michaelo » Sun Nov 05, 2006 8:08 pm

I guess I better install it <img>
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

PreviousNext

Return to IntegraMOD Modifications

Who is online

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

cron