Clan Adverts

www.afgserv.com

www.clan-themes.co.uk :: View topic - Snow & falling snow on my theme ???

 Welcome To Clan Themes 

As the board grows please remember the Search Option and we hope you find our community useful.

We also monitor Private Messages to stop members from abusing our sites system.
If you are asking for assistance please provide your site link and nuke version, Thanks.

Snow & falling snow on my theme ???
Goto page Previous  1, 2, 3, 4  Next

40 Replies / 5151 Views


Post new topic   Reply to topic  

   www.clan-themes.co.uk Forum Index » PhpNuke Theme Questions

View previous topic :: View next topic


DoC
Reputation: 170.6
votes: 4
Local time: 10:24 PM
Location: Wiltshire, UK
uk.gif

Status: Offline
0.55 posts per day
Medals: 1 (View more...)
Dedication (Amount: 1)
Very Important Person
Very Important Person
Joined: Feb 07, 2007
Last Visit: 07 Jan 2009
Posts: 385
Points: 123 

View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger Reply with quote

Pendaz
Reputation: 462.2
Local time: 4:24 PM


Status: Offline
0.01 posts per day
Medals: 0

Joined: Nov 18, 2007
Last Visit: 20 Dec 2007
Posts: 3
Points: 100 

Post Snow & falling snow on my theme ??? Posted: Tue Dec 18, 2007 7:11 am   

Here is my header.php


Code:
/* http://phpnuke.org                                                   */
/*                                                                      */
/* 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 (stristr(htmlentities($_SERVER['PHP_SELF']), "header.php")) {
    Header("Location: index.php");
    die();
}

define('NUKE_HEADER', true);
require_once("mainfile.php");

##################################################
# Include some common header for HTML generation #
##################################################


function head() {
    global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
    $ThemeSel = get_theme();
    include_once("themes/$ThemeSel/theme.php");
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
    echo "<html>\n";
    echo "<head>\n";
    echo "<title>$sitename $pagetitle</title>\n";
    include("includes/meta.php");
    include("includes/javascript.php");
    if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
   echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
    }
    echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"backend.php\">\n";
    echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
    if (file_exists("includes/custom_files/custom_head.php")) {
     include_once("includes/custom_files/custom_head.php");
    }
    echo "\n\n\n</head>\n\n";
    if (file_exists("includes/custom_files/custom_header.php")) {
     include_once("includes/custom_files/custom_header.php");
    }
  global $ab_config;
    if($ab_config['site_switch'] == 1 && is_admin($_COOKIE['admin'])) {
      echo "<center><img src='images/nukesentinel/disabled.png' alt='"._AB_SITEDISABLED."' title='"._AB_SITEDISABLED."' border='0'></center><br />\n";
    }
    if($ab_config['disable_switch'] == 1 && is_admin($_COOKIE['admin'])) {
      echo "<center><img src='images/nukesentinel/inactive.png' alt='"._AB_NSDISABLED."' title='"._AB_NSDISABLED."' border='0'></center><br />\n";
    }

    themeheader();
}

online();
head();
include("includes/counter.php");
/*****************************************************/
/* Addon - Center Blocks v.2.1.1               START */
/* Addon - Conditional Blocks v.1.1.1          START */
/*****************************************************/
if(defined('HOME_FILE')) {
   message_box();
   blocks("Center");
include("includes/cblocks1.php"); // if you want this on all pages, place it above if ($home == 1) {
/*} else {
    include("includes/cblocks2.php"); // if you want this on all pages, place it above if ($home == 1) {
*/}
/*****************************************************/
/* Addon - Conditional Blocks v.1.1.1            END */
/* Addon - Center Blocks v.2.1.1                 END */
/*****************************************************/
?>
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 344.1
votes: 17
Local time: 11:24 PM
Location: Great British Empire
uk.gif

Status: Offline
2.31 posts per day
Medals: 2 (View more...)
Dedicated User (Amount: 1)
Clan Themes Theme Guru
Clan Themes Theme Guru
Joined: Nov 13, 2006
Last Visit: 07 Jan 2009
Posts: 1818
Points: 18114 

Post Snow & falling snow on my theme ??? Posted: Tue Dec 18, 2007 9:21 am   

hey Pendaz

in the header find:
Code:
echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";


after add:
Code:
echo "<script type=\"text/javascript\" src=\"themes/$ThemeSel/scripts/snowstorm.js\"></script>";


now just upload your snowstorm.js to your themes scripts folder
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote




Pendaz
Reputation: 462.2
Local time: 4:24 PM


Status: Offline
0.01 posts per day
Medals: 0

Joined: Nov 18, 2007
Last Visit: 20 Dec 2007
Posts: 3
Points: 100 

View user's profileSend private message Reply with quote

Ped
Reputation: 344.1
votes: 17
Local time: 11:24 PM
Location: Great British Empire
uk.gif

Status: Offline
2.31 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Clan Themes Theme Guru
Clan Themes Theme Guru
Joined: Nov 13, 2006
Last Visit: 07 Jan 2009
Posts: 1818
Points: 18114 

Post Re: Snow & falling snow on my theme ??? Posted: Tue Dec 18, 2007 7:59 pm   

Pendaz wrote:
I cant find that code you posted in my header.php

please take a look at my previous post, i have posted the code from my header.php


thanks

-Pendaz


look a bit harder as its in there ...

Use CRTL+F to search a document
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

Express
Reputation: 469.7
Local time: 1:24 PM

usa.gif

Status: Offline
0.07 posts per day
Medals: 0

Joined: Oct 17, 2007
Last Visit: 05 Sep 2008
Posts: 32
Points: 542 

Post Snow & falling snow on my theme ??? Posted: Wed Dec 19, 2007 2:13 pm   

Have had the snowscript installed now for a little bit and have tweaked it to make the flakes smaller and fewer. My question is how did you guys get the snow to fall down like it is on this site? I can't seem to find where and what to edit to get that result. One other thing too, when I installed it, I had to make the .png=false otherwise the flakes all had red x's in them. Why was that? Why can I not run .png snowflakes? Not a biggie, just curious.

~S~
Express
 

I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones. Albert Einstein (1879 - 1955)  
View user's profileSend private messageVisit poster's website Reply with quote




IntuitionX
Reputation: 466.4
Local time: 8:24 AM


Status: Offline
0.00 posts per day
Medals: 0

Joined: Mar 02, 2007
Last Visit: 19 Apr 2008
Posts: 3
Points: 100 

View user's profileSend private message Reply with quote

DoC
Reputation: 170.6
votes: 4
Local time: 10:24 PM
Location: Wiltshire, UK
uk.gif

Status: Offline
0.55 posts per day
Medals: 1 (View more...)
Dedication (Amount: 1)
Very Important Person
Very Important Person
Joined: Feb 07, 2007
Last Visit: 07 Jan 2009
Posts: 385
Points: 123 

View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger Reply with quote

stufz
Reputation: 462.4
Local time: 4:24 PM

usa.gif

Status: Offline
0.00 posts per day
Medals: 0

Joined: Jan 27, 2007
Last Visit: 29 Jun 2008
Posts: 1
Points: 252 

Post Snow & falling snow on my theme ??? Posted: Sat Dec 22, 2007 9:36 pm   

ahhh.. nice ! in firefox, nice help thread here

but it wont work in IE, Im using plat 76b4v2 in subBlack

I edited the theme's header.html and added the files, then edited the root header.php but IE gives the error - cannot open http://..... Operation aborted.

Is there a fix or edit not listed here for IE ?

NM .. I got it to work, just had to edit correctly and keep trying ... look out for the root header.php edit. Its easy to leave the ";" off the end of the line you add to it.
 

 
View user's profileSend private messageVisit poster's website Reply with quote


usspapaw
Reputation: 474.6
Local time: 5:24 PM

blank.gif

Status: Offline
0.00 posts per day
Medals: 0

Joined: Aug 22, 2007
Last Visit: 23 Dec 2008
Posts: 1
Points: 277 

Post Snow & falling snow on my theme ??? Posted: Sun Dec 21, 2008 8:18 am   

Guys
I'm a big dummy at this stuff..lol I mean bigtime..

I have little white boxes with x falling but no snow...
I have the snow folder with the flakes in the themes image folder right?
I'm sue its something simple for yall..

thanks folks

Merry Christmas

papaw
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 344.1
votes: 17
Local time: 11:24 PM
Location: Great British Empire
uk.gif

Status: Offline
2.31 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Clan Themes Theme Guru
Clan Themes Theme Guru
Joined: Nov 13, 2006
Last Visit: 07 Jan 2009
Posts: 1818
Points: 18114 

Post Re: Snow & falling snow on my theme ??? Posted: Sun Dec 21, 2008 10:19 am   

usspapaw wrote:
I have little white boxes with x falling but no snow...


Whats the link to yoursite, if using firefox you can right click the falling snowflake and it will tell you where the flakes are supposed to be.
 

 
View user's profileSend private message