>>  Site Map >>  Forums >>  Site Related - This Site

Forum module - topics in forum:



Site Related - This Site - <font color=green>Post about any site related problem's or issues here <b>(THIS SITE ONLY)</b>, or make any suggestions.</font>



Your Christmas Module/Block

I like the chirstmas block guys, but cant find it on yr downloads.? Is it available to download from somewhere please.?

pappa






It came from matyscripts last xmas, here you go

http://phpnuke-uk.net/downloads/Christmas2003.zip






cheers dar63 Wink






Can anyone tell me what i need to tweak to reduce the size of the block to match my current theme please, www.pappadee.com

Code: :
<?php

/************************************************************************************/
/*                                                                                  */
/* BLOCK: block-Christmas.php                                                       */
/* v1.1                                                                             */
/* Date 12-12-2002                                                                  */
/*                                                                                  */
/* Copyright © 2002 by: Maty Scripts (webmaster@matyscripts.com)                    */
/* http://www.matyscripts.com                                                       */
/*                                                                                  */
/* This program is free software. You can redistribute it and/or modify             */
/* it under the terms of the GNU General Public License as published by             */
/* the Free Software Foundation; either version 2 of the License.                   */
/*                                                                                  */
/************************************************************************************/


if( eregi( "block-Christmas.php",$PHP_SELF ) ) {
   Header( "Location: index.php" );
   die();
}

function DaysLeft( $futureDate ) {
   return $DaysTillElection=(date("z",strtotime ($futureDate))-(Date("z")));
}
function MakeSeed() {
   list($usec, $sec) = explode(' ', microtime());
   return (float) $sec + ((float) $usec * 100000);
}

function PicData( $whichpic ) {
   switch( $whichpic )
   {
      case 1:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"80\"><param name=\"grph\" value=\"images/christmas/christmas1.jpg\">";
      break;
      case 2:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"82\"><param name=\"grph\" value=\"images/christmas/christmas2.jpg\">";
      break;
      case 3:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"174\"><param name=\"grph\" value=\"images/christmas/christmas3.jpg\">";
      break;
      case 4:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"187\"><param name=\"grph\" value=\"images/christmas/christmas4.jpg\">";
      break;
      case 5:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"141\"><param name=\"grph\" value=\"images/christmas/christmas5.jpg\">";
      break;
      case 6:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"89\"><param name=\"grph\" value=\"images/christmas/christmas6.jpg\">";
      break;
      case 7:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"156\"><param name=\"grph\" value=\"images/christmas/christmas7.jpg\">";
      break;
      case 8:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"183\"><param name=\"grph\" value=\"images/christmas/christmas8.jpg\">";
      break;
      case 9:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"89\"><param name=\"grph\" value=\"images/christmas/christmas9.jpg\">";
      break;
      case 10:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"138\"><param name=\"grph\" value=\"images/christmas/christmas10.jpg\">";
      break;
      case 11:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"86\"><param name=\"grph\" value=\"images/christmas/christmas11.jpg\">";
      break;
      case 12:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"184\"><param name=\"grph\" value=\"images/christmas/christmas12.jpg\">";
      break;
      case 13:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"112\"><param name=\"grph\" value=\"images/christmas/christmas13.jpg\">";
      break;
      case 14:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"89\"><param name=\"grph\" value=\"images/christmas/christmas14.jpg\">";
      break;
      case 15:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"130\"><param name=\"grph\" value=\"images/christmas/christmas15.jpg\">";
      break;
      case 16:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"170\"><param name=\"grph\" value=\"images/christmas/christmas16.jpg\">";
      break;
      case 17:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"183\"><param name=\"grph\" value=\"images/christmas/christmas17.jpg\">";
      break;
      case 18:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"199\"><param name=\"grph\" value=\"images/christmas/christmas18.jpg\">";
      break;
      case 19:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"98\"><param name=\"grph\" value=\"images/christmas/christmas19.jpg\">";
      break;
      case 20:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"147\"><param name=\"grph\" value=\"images/christmas/christmas20.jpg\">";
      break;
      case 21:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"116\"><param name=\"grph\" value=\"images/christmas/christmas21.jpg\">";
      break;
      case 22:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"119\"><param name=\"grph\" value=\"images/christmas/christmas22.jpg\">";
      break;
      case 23:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"185\"><param name=\"grph\" value=\"images/christmas/christmas23.jpg\">";
      break;
      case 24:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"98\"><param name=\"grph\" value=\"images/christmas/christmas24.jpg\">";
      break;
      case 25:
         return "<applet code=\"alcsnow\" width=\"130\" height=\"147\"><param name=\"grph\" value=\"images/christmas/christmas25.jpg\">";
      break;
   }
}

srand( MakeSeed() );
$randval = rand( 1, 25 );

$buf = "<table width=\"100%\"><tr><td align=center>";
$buf = $buf . PicData( $randval );
$buf = $buf . "<param name=\"snows\" value=\"500\"><param name=\"threadsleep\" value=\"50\"></applet></td></tr></table>";

$DaysToGo = DaysLeft("25 December 2004");
if( $DaysToGo >= 2 ) { $BMessage = $DaysToGo . " days to Christmas"; }
else if( $DaysToGo == 1 ) { $BMessage = $DaysToGo . " day to Christmas"; }
else { $BMessage = "Merry Christmas"; }

$buf = $buf . "<center><font color=\"#FFB900\">". $BMessage . "</font></center>";
$content = $buf;

?>







All the images seem to be set at 130 so I'd assume all those.






doh!.... thanks i didnt even bloody notice them Embarassed
I was looking at the top and bottom of the code.

On another note dar63, i have had 1 or 2 users syaing they cant see the pictures in the block, and they are asking do they need a certain plugin installed to view them.

Im not sure iof they do or dont, but at a guess do they need java installed.?

cheers,

pappa


p.s another small donation made m8, only a small one again though. Wink






They need the java virtual machine plugin.

Thanks for donation. Smile




Thanks from me too!

I am completely new to PHP-Nuke but I'm having a blast learning the ropes. I saw the Christmas block on several sites and wanted one so badly. A quick search here and lucky me! That was so kind of you to share it with us. I actually joined the site just to say that, but I have a feeling I can learn a lot here. Merry Christmas everyone, and thanks again.






Wish I could take the credit but like I said it came from matyscripts.com

Thanks for the donation too Debbi. Smile






Well I'd have never found it there so I thank you profusely for posting it here. And you're very welcome for the donation. Thank you for giving me a place to learn. I am so getting into Nuke. I have a couple of boards so I'm not new to php but learning something new is still thrilling for me. You have a great site here and I've only begun to scratch the surface.




Reply...

Nice block, merry christmas!






Thanks Dar, I did have a New Year block which I thought was great....
until it said the date had passed !! That I thought was well wierd coz I
couldn't even find it in the file to edit.

Oh well, this one will do. Its pretty cool.

Guys/Gals, on a seperate note have you found any decent nuke christmas
themes yet ? I have. Get over to codezwiz.com and grab their ChristmasV2
theme. Its their default one atm too. Or even better, grab it from my site,
am just gonna add it to d/l. You don't need to register to d/l either Very Happy

EDIT - This christmas block, I have edited the file to make it 2004, but I am
not seeing any of the pictures that came with it. All I see if a black background
and possible snow falling. Any ideas ??






Only thing I can think is that the images aren't where they should be or the directory is incorectly named.

yoursite/images/christmas




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS