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
 BF3 Stats
 Forums
 News
 Downloads
 News Letter
 Video tutorials
 Supporters
 Uploads
 F.A.Q
· FAQ
· Docs
· Forums FAQ
 [HS] History
 PHP Nuke Tools
 WhoIS Lookup
 Site Map
 Write a Review
 Image Repo
 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.

11 %

Donate

End DateFeb 01
Target$50.00
Below Target$44.47
CurrencyUSD

Donators This Month
Jan 19Wolf$5.53
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 735
Comments: 0
DFG
DFG DFG DFG

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

DFG
DFG DFG DFG

     
DFG HeadShot Extreme :: View topic - This years April Fools joke I did, for those that missed it.


Search for at
HeadShot Extreme Advanced Search

This years April Fools joke I did, for those that missed it.
Post new topic   Reply to topic   printer-friendly view   Thank Post    HeadShot Extreme Forum Index -> Fun Zone
View previous topic :: View next topic  
Author Message
[HSX]coRpSE

Top Dog
Top Dog
Nuke Dev / Coder
Nuke Dev / Coder



Clan Leader


This user has donated over $300 to the clan.

coRpSE
Online
Most Played:
This week: 34.6hrs.
Total played: 96hrs.


  
Is this your job?



  • » Show Info «


Status: coRpSE is offline
PostPosted: Tue Apr 05, 2016 1:23 am Post subject: No icon This years April Fools joke I did, for those that missed it. Reply with quote

This year, I wanted to do something different on our site. For those of you that were using FireFox, you guys missed out as well of those that did not come to the site. Last year, I made it look like my site got hacked. I also did that two years ago. Three years ago, I don't remember what I did but I know for at the last 6+ years, it has been something I have done on my site for this obscure yearly traditions. This year, I went and did something that was a popular form of trolling a few years back. Just watch this if you did not make it to my site today.


[Watch On YouTube]


I made this post over at Lonestars site a few days ago and I figured to put it here as well, but one question that came up was how I did it. Below is a copy and paste from Lonestars site,
Please login to see this link
Get registered or Log in





Quote:
Don't know about anyone else but I would love to know how you did that
mate?

Also how did you make it look like you got hacked the year before?


Last year and the year before I did this:
Please login to see this link
Get registered or Log in


Don't do anything but go to that page and watch. ;)

as for what I did this year, it was a mix of PHP and css.

What I did was this, for the css, I created a file and name it lets say, af-css.css
Then inside that file I put this code,

Code:
/*
  Spin Class
*/
.aprilfools {
  -webkit-animation: spin 5s linear infinite;
  animation: spin 5s linear infinite;
}

/* Color Guard! */
html {
  -webkit-animation: rainbow 1s infinite;
}

@-webkit-keyframes spin {
  0%   { -webkit-transform: rotate(0deg); }
  100%   { -webkit-transform: rotate(360deg); }
}

@-webkit-keyframes rainbow {
  100% { -webkit-filter: hue-rotate(360deg); }
}

div.afbanner {
   background-image: url('http://www.headshotdomain.net/images/April-Fools.png');
   background-size: cover;
    background-repeat: no-repeat;
   z-index: 9999;
   position: relative;
   margin-left: auto;
   margin-right: auto;
   top: 0;
   width: 648px;
   height: 314px;
}


Next, I created an image for the banner to show up that says April Fools and stuck that into my images folder. Then I uploaded the css file somewhere on my site where I know I will find it when ever I need it.

Then, I went into my header.php file found in the root of my site and I put the code below in right after themeheader(); and before the }

PHP:
//  ###################  APRIL FOOLS DAY #####################    
     
 global $userinfo;
    
$cookietime 5                    //Time between popups. In minutes. Set to 0 for no time between message showing up on page refreshes
    
$cookie_name 'april_fool_hsx'    //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 April Fools day
//############################################################    
    
if (!isset($_COOKIE['april_fool_hsx']) /*&& $uname2 == 'coRpSE' */&& $afdate == '0401'){
     
   echo "<link rel=\"stylesheet\" href=\"./PATH_TO_CSS/af-css.css\" type=\"text/css\">";         
     
   echo '<audio autoplay loop> <source src="./includes/ap/rick-rolled.mp3" type="audio/mpeg"> Your browser does not support the audio element.</audio>';
 
       echo '<div class="afbanner"> </div>';
        
//create cookie
        
setcookie($cookie_name$cookie_valuetime() + (60 $cookietime), "/" );
        
//cookie created
    

// ################### END APRIL FOOLS ###################### 
 



Last thing I did was I went to the images I wanted to spin on my site, and I just gabe them a class of aprilfools, something like this,

Code:
<img src="./Path/To/Some/Image.jpg" class="aprilfools">


That's all I did.

basically, this writes a cookie that disables it until the cookie expires, which I have set to 5 min on my site.

Unfortunately FireFox does not display the CSS goodies like Chrome, Opera and Edge do.


Expand
Back to top
View user's profile Send private message Visit poster's website
HeadShot Domain, Been in buisness for over 10 years...
[HSX]Spartacus1968

No Life!!!
No Life!!!



Clan Leader


This user has donated to the clan.

Spartacus...
Currently Offline
Last Seen Online:
95 days ago
  



  • » Show Info «


Status: Spartacus1968 is offline
PostPosted: Tue Apr 05, 2016 1:34 pm Post subject: No icon Re: This years April Fools joke I did, for those that missed Reply with quote

Makes me Dissy!


Expand
Back to top
View user's profile Send private message
HeadShot Domain, Been in buisness for over 10 years...
[HSX]wolfbane96

Blabbing Noob
Blabbing Noob



Clan Member




  • » Show Info «


Status: wolfbane96 is offline
PostPosted: Sun Apr 17, 2016 10:28 pm Post subject: No icon Re: This years April Fools joke I did, for those that missed Reply with quote

You know, I don't think the Rickrolled will ever truly die.
Back to top
View user's profile Send private message
HeadShot Domain, Been in buisness for over 10 years...
Sponsor
Display posts from previous:
Post new topic  Reply to topic   printer-friendly view   Thank Post HeadShot Extreme Forum Index ->  Fun Zone All times are UTC - 7 Hours [DST enabled]
Page 1 of 1
 


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

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts WarFace closed beta coming back online 0 coRpSE 1067 Mon Aug 19, 2013 10:58 am
coRpSE View latest post
No new posts Im back 3 ironman607 1559 Sat Apr 06, 2013 5:38 am
Spartacus1968 View latest post
No new posts Guess who's back??? :) 6 Itachi 2264 Thu Oct 18, 2012 10:49 am
Itachi View latest post
No new posts Back, Again o-o 7 NiX 2783 Sun Apr 01, 2012 5:23 pm
NiX View latest post
No new posts good to be back! 3 Ruphus 1738 Thu Feb 16, 2012 1:49 pm
coRpSE View latest post
 




Powered By: phpBB © 2001 - 2008 phpBB Group
SimpleBlack V2 By: killigan
© DarkForge Graphics 2008 - 2009 All Rights Reserved

Googlepage: GooglePullerPage
DFG
DFG DFG DFG
Forums ©
Copyright © HeadShotDomain 2016 By: coRpSE
SimpleBlack V2 By: Killigan
Powered By: Evolution-Xtreme