TheMasterGeneral Posted October 16, 2015 Share Posted October 16, 2015 Since its that time of the year again, I tend to have fun with these. What happens is on each page load, a random number is pulled out of a magic hat chosen, and if you get the lucky number, you get redirected to a seperate page where you get greeted by a ghost and a deathly scream. :P Execute the SQL: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open headers.php and find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add above: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now create a file called scared.php with the code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Please note that on my page, it gives the player an item which can be used in a crafting recipe later to create a halloween themed armor. You don't have to do this. You can replace the item_add(); function with whatever you like. There's two files you need as well. A sound file and a ghost image! Conveniently, I've put them into a friendly little zip file for you. You can access them here. In case you couldn't figure it out... upload the image to a folder called images, and the sound to a folder called sounds. Alright! Should work! Did some basic testing of it on my WAMP Server. Let me know if any issues arise! Happy Halloween! Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted October 16, 2015 Share Posted October 16, 2015 nice idea :P Quote Link to comment Share on other sites More sharing options...
x3hosts Posted October 19, 2015 Share Posted October 19, 2015 +1 Nice little mod for Halloween! Quote Link to comment Share on other sites More sharing options...
SecurityEh Posted October 19, 2015 Share Posted October 19, 2015 Can't wait for this for when you get it up and running ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.