Clan Adverts

PHP Web Host - Quality Web Hosting For All PHP Applications

 

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

32 Replies / 3590 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: 163.2
votes: 4
Local time: 6:51 AM
Location: Wiltshire, UK
uk.gif

Status: Offline
0.70 posts per day
Medals: 1 (View more...)
Dedication (Amount: 1)
Very Important Person
Very Important Person
Joined: Feb 07, 2007
Last Visit: 25 Aug 2008
Posts: 398
Points: 1230 

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

Pendaz
Reputation: 462.2
Local time: 11:51 PM


Status: Offline
0.01 posts per day
Medals: 0

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

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: 366.9
votes: 17
Local time: 6:51 AM
Location: Great British Empire
uk.gif

Status: Offline
2.83 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: 26 Aug 2008
Posts: 1854
Points: 11222 

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: 11:51 PM


Status: Offline
0.01 posts per day
Medals: 0

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

View user's profileSend private message Reply with quote




Ped
Reputation: 366.9
votes: 17
Local time: 6:51 AM
Location: Great British Empire
uk.gif

Status: Offline
2.83 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: 26 Aug 2008
Posts: 1854
Points: 11222 

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.9
Local time: 8:51 PM

usa.gif

Status: Offline
0.11 posts per day
Medals: 0

Joined: Oct 17, 2007
Last Visit: 28 Jun 2008
Posts: 36
Points: 629 

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: 3:51 PM


Status: Offline
0.01 posts per day
Medals: 0

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

View user's profileSend private message Reply with quote

DoC
Reputation: 163.2
votes: 4
Local time: 6:51 AM
Location: Wiltshire, UK
uk.gif

Status: Offline
0.70 posts per day
Medals: 1 (View more...)
Dedication (Amount: 1)
Very Important Person
Very Important Person
Joined: Feb 07, 2007
Last Visit: 25 Aug 2008
Posts: 398
Points: 1230 

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




stufz
Reputation: 462.4
Local time: 11:51 PM

usa.gif

Status: Offline
0.00 posts per day
Medals: 0

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

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
Post new topic   Reply to topic  
   www.clan-themes.co.uk Forum Index » PhpNuke Theme Questions


 
32 Replies / 3590 Views
Page 3 of 3
All times are GMT
Goto page Previous  1, 2, 3
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum