Welcome to the [HSX] website!

Been Gaming since 2003

Community Driven Site

Gaming, Web Development, and Support

  

 
Main Menu
 
DFG
 Home
 Join our Clan
 [HSX] Roster
 Forums
 News
 Downloads
 News Letter
 Video tutorials
 Supporters
 Uploads
 F.A.Q
· FAQ
· Docs
· Forums FAQ
 [HS] History
 Site Map
 Write a Review
 Image Repo
 WhoIs
 Twitch ID Finder
 Logout
DFG
DFG DFG DFG

 
[HSX] Donations
 
DFG
Donation
This here is a combined total of what we need to keep us going each month.

9 %

Donate

End DateMar 01
Target$50.00
Below Target$45.45
CurrencyUSD

Donators This Month
Feb 04
Wolf
$4.55
DFG
DFG DFG DFG

 
Search our Site
 
DFG DFG
DFG DFG DFG

 
Theme Management
 
DFG
DFG
DFG DFG DFG

 
Survey
 
DFG What is your favorite game to play ATM?

WarThunder
World of Tanks
H1Z1
MechWarrior Online
ARK
WarFace
SWTOR
BattleField serier
COD Series
Diablo
Armored Warfare



Results
Polls

Votes 978
Comments: 0
DFG
DFG DFG DFG

 
Honey Pot
 
DFG
Bots in the pot!
We have [1875] bots stopped!

DFG
DFG DFG DFG

     
DFG
 
Forum Index Members Search Usergroups
Ranks Staff Statistics Forum FAQ
Board Rules Edit your profile Login, Check Messages Log in
 


Search for at

HSX 2017 Halloween script
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post Forum Index PC & Codeing Talk
View previous topic View next topic
PostPosted: Thu Nov 23, 2017 12:12 pm Reply with quote
coRpSE
I promised that I would release this if I got request, and I have had a few so here it is. If you like to have this on your site for next year, just download the attached files and install it on your site and follow these instructions. First, here is a preview.


[Watch this video on YouTube]

Now, to install this script, it is very easy.
  1. Download the attached files and upload to your site keeping the folder path.

  2. Next, we need to do a bit of PHP coding.

    Open: public_html/includes/javascript.php

    Find:

    PHP:  [ Select all ]

    include_once(NUKE_INCLUDE_DIR.'styles.php'); 


    Add After:

    PHP:  [ Select all ]

    //  ################### HALLOWEEN #####################    
          
    global $userinfo;
        
    $yourname 'coRpSE';
        
    $cookietime 15;                     //Time between popups, (in miniutes). Set to 0 for no time between message showing up on page refreshes
        
    $cookie_name 'halloween';           //Cookie Name
        
    $cookie_value 'true';
        
    $uname2 $userinfo['username'];     //Only used if you want to target specific people or only your self for testing purposes
        
    $afdate date("md");                //Check to see if today is Halloween
    //############################################################    
    //    if ((!isset($_COOKIE[$cookie_name]) && $afdate == '1031') ||  $uname2 == $yourname){      //Use this for testing.
        
    if (!isset($_COOKIE[$cookie_name]) && $afdate == '1031'){                                 //Use this when not testing
            
    echo "<link rel=\"stylesheet\" href=\"./includes/custom_files/halloween/css/hwscript.css\" type=\"text/css\">";
            echo 
    '<div class="foreground"></div>
            <div class="midground">
              <div class="tuna"></div>
            </div>'
    ;
            echo 
    '<audio autoplay loop>
      <source src="./includes/custom_files/halloween/song/tih_song.ogg" type="audio/ogg">
      <source src="./includes/custom_files/halloween/song/tih_song.mp3" type="audio/mpeg">
    Your browser does not support the audio element.
    </audio>'
    ;
            
    //create cookie
            
    setcookie($cookie_name$cookie_valuetime() + (60 $cookietime), "/" );
            
    //cookie created
        

    // ################### END HALLOWEEN ###################### 

     
  3. Save & Close


Now, let's take a closer look at that code that you just put into the javascript file.
Watch the following video because I explain it there.


[Watch this video on YouTube]

Enjoy...


Expand

Top Dog
Nuke Dev / Coder

Groups Top Dog
Nuke Dev / Coder
Posts 2373
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website Find all posts by coRpSE

PostPosted: Fri Dec 01, 2017 3:04 pm Reply with quote
coRpSE
updated the first post, the PHP code got stropped of all the HTML.


 

Top Dog
Nuke Dev / Coder

Groups Top Dog
Nuke Dev / Coder
Posts 2373
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website Find all posts by coRpSE

PostPosted: Sun Dec 03, 2017 8:19 am Reply with quote
PatPgtips
thanks corpse

i have downloaded for next halloween

Blabbing Noob

Groups Blabbing Noob
Posts 65
Joined Jan 07, 2015
Status Offline
View user's profile Send PatPgtips a private message Visit user's website Find all posts by PatPgtips

 
Display posts from previous:
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post All times are UTC - 7 Hours [DST enabled]
Page 1 of 1


 
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 cannot download files in this forum

Powered by phpBB © 2001, 2019 phpBB Group
DFG
DFG DFG DFG
Forums ©
Copyright © HeadShotDomain 2016 By: coRpSE
SimpleBlack V2 By: Killigan
Powered By: Evolution-Xtreme