| Author |
Message |
Whttailbuckdeer
Corporal


Joined: Apr 03, 2003
Posts: 58
Location: Milwaukee
|
Posted:
Sat Aug 16, 2003 11:00 am |
  |
On my site www.peteloaf.net I have an event countdown block with mostly birthdays and such in it. I was wondering if it is possible to make this a scrolling block in order to add more events without taking up anymore space on the right side.
Any ideas nukers?? |
_________________ www.peteloaf.net
Thanks for all the help!
Pete |
|
     |
 |
gunner
Sergeant


Joined: Jul 07, 2003
Posts: 140
|
Posted:
Sun Aug 17, 2003 3:48 pm |
  |
soory I don't have the answer to your question, but I do love that countdown block. could you tell me where I get it? Thanks |
_________________ .::.
http://www.boozebros.ca |
|
    |
 |
Whttailbuckdeer
Corporal


Joined: Apr 03, 2003
Posts: 58
Location: Milwaukee
|
Posted:
Sun Aug 17, 2003 4:01 pm |
  |
I noticed you registered on my site, so I just added it to the downloads section there. Yeah, I really like the countdown block too, and I'd add a lot more things to it if I could somehow get it to scroll.  |
_________________ www.peteloaf.net
Thanks for all the help!
Pete |
|
     |
 |
gunner
Sergeant


Joined: Jul 07, 2003
Posts: 140
|
Posted:
Sun Aug 17, 2003 7:00 pm |
  |
Thanks...great site by the way. I thought the block would allow you to enter a date then countdown (I graduate from medical school in...u know what I mean?)...not just birthdays. Do you know a block that does this?
Hey let's screw....great poll  |
_________________ .::.
http://www.boozebros.ca |
|
    |
 |
gunner
Sergeant


Joined: Jul 07, 2003
Posts: 140
|
Posted:
Mon Aug 18, 2003 5:55 am |
  |
I managed to get a newer version of the events countdown from phpnuke.org. It works great. For those that don't know, you can add any event by using the module admin interface...the actual date is shown in the block... |
_________________ .::.
http://www.boozebros.ca |
|
    |
 |
Whttailbuckdeer
Corporal


Joined: Apr 03, 2003
Posts: 58
Location: Milwaukee
|
Posted:
Mon Aug 25, 2003 5:56 pm |
  |
bump
Still wondering if anyone knows how to easily make the event countdown block scroll  |
_________________ www.peteloaf.net
Thanks for all the help!
Pete |
|
     |
 |
Whttailbuckdeer
Corporal


Joined: Apr 03, 2003
Posts: 58
Location: Milwaukee
|
Posted:
Thu Aug 28, 2003 5:44 pm |
  |
|
     |
 |
kjcdude
Captain


Joined: Jun 10, 2003
Posts: 441
Location: Southern California
|
Posted:
Fri Aug 29, 2003 2:11 am |
  |
|
       |
 |
gunner
Sergeant


Joined: Jul 07, 2003
Posts: 140
|
Posted:
Fri Aug 29, 2003 4:07 am |
  |
I have version 1.0, don't know if there is anything later. I also would like to see this block scroll. |
_________________ .::.
http://www.boozebros.ca |
|
    |
 |
Whttailbuckdeer
Corporal


Joined: Apr 03, 2003
Posts: 58
Location: Milwaukee
|
Posted:
Mon Sep 01, 2003 2:28 pm |
  |
Does anyone know who developed the scrolling forum posts and if that code can be adapted to this block?? |
_________________ www.peteloaf.net
Thanks for all the help!
Pete |
|
     |
 |
Whttailbuckdeer
Corporal


Joined: Apr 03, 2003
Posts: 58
Location: Milwaukee
|
Posted:
Fri Sep 12, 2003 10:29 am |
  |
|
     |
 |
Namsul
Captain


Joined: Feb 13, 2003
Posts: 339
Location: Australia
|
Posted:
Fri Sep 12, 2003 11:02 pm |
  |
Prolly find, if you'de have posted the code it may have been done a bit faster save having to register/download/then code the block. For next time
| Code: |
<?
$usemarquee = 1;
$scrolldirection = "Up";
if (eregi("block-Event_Countdown.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content .= "<Marquee Behavior=\"Scroll\" Direction=\"$scrolldirection\" Height=\"100\" ScrollAmount=\"2\" ScrollDelay=\"130\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\"><br>";
$module_name = "Event_Countdown";
include("config.php");
include("modules/$module_name/functions.php");
if ($SCA == 1){
if (date("n") <= 4){
$content .= "<b>A.S. " . (date("Y") - 1966) . "</b><br><br>";
}else{
$content .= "<b>A.S. " . (date("Y") - 1965) . "</b><br><br>";
}
}
connectDB();
$query = "SELECT * FROM " . $prefix . "_countdown ORDER BY date";
$result = mysql_query($query);
$i=0;
$number = MYSQL_NUMROWS($result);
//Countdown timer
while($i < $number){
$ID = mysql_result($result, $i, "ID");
$date = mysql_result($result, $i, "date");
$event = mysql_result($result, $i, "event");
$days = ceil((timestamp2utime($date) - time(void))/86400);
if ($days >= 0){
if ($days == 0){
$content .= "<b style=\"color:#ff0000\">$event</b> is today! Why aren't you there?<br><br>";
}elseif ($days == 1){
$content .= "There is <b style=\"color:#ff0000\">$days</b> day until <b style=\"color:#ff0000\">$event</b>.<br><br>";
}else{
$content .= "There are <b style=\"color:#ff0000\">$days</b> days until <b style=\"color:#ff0000\">$event</b>.<br><br>";
}
}
$i++;
}
$content .= "</Marquee><br>";
?> |
|
|
|
     |
 |
twelves
Lieutenant


Joined: Jul 13, 2003
Posts: 192
|
Posted:
Sat Sep 13, 2003 8:47 am |
  |
How is it the last Forums rss/feed is scrolling?
OOO!!! I like that!
 |
|
|
    |
 |
Archangel
Corporal


Joined: Mar 19, 2003
Posts: 57
Location: Indiana
|
Posted:
Sun Oct 19, 2003 8:57 pm |
  |
Okay I really want to use this block, but I don't know how to set up an event. It doesn't come with any directions? If someone could help me out I'd appreciate it. I kind of feel dumb asking this since it's probably really easy, I'd like to do a countdown to chrismas.
Thanks |
|
|
    |
 |
Namsul
Captain


Joined: Feb 13, 2003
Posts: 339
Location: Australia
|
Posted:
Mon Oct 20, 2003 2:24 am |
  |
This block is only part of the event countdown. You need to get the entire zip file which has other stuff. If you can't find it email me I'll dig it up |
|
|
     |
 |
|
|