SMF For Free Support Forum
Signup For Free Forum
July 30, 2010, 06:19:35 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1] 2
  Print  
Author Topic: [Code] April Fools!  (Read 2611 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 825


Do not PM me for Code Support or Request


View Profile
« on: March 31, 2008, 02:36:49 pm »

Add this to your headers if you don't have it:
Code:
<script src="jquery.js"></script>

Headers:
Code:
<script>
if(readCookie("AprilFools_SMC")){
//Created by Agent Moose (smcodes.smfforfree3.com)
}else{
var server = "";
if(location.href.match(/.smfforfree(\d+)/i)){
var server = RegExp.$1;
};
document.title = "SMF For Free Server " + server + " - Forum Not Found"
document.write('<link rel="stylesheet" type="text/css" href="style.css" /><div id="header"><a href="http://www.smfforfree4.com"><img src="Themes/default/images/smflogo.gif" style="width: 258px; float: right;" alt="Simple Machines Hosting" border="0" /></a><div title="SMF For Free Server 4">No Forum</div></div><div id="content"><div class="panel"><h2>Hmmm, we can not find a forum with that address</h2><b>Did you mean to create a forum?</b><br />You can sign up for a free SMF forum <a onClick=\'alert("April Fools!");createCookie("AprilFools_SMC","1",365);window.location.href=window.location.href.split("/index.php")[0];\' href="javascript:void(0);" style="color:blue;">here</a>.<br /></div><p align="center">Copyright 2007 SMFForFree.com<br/><font size="0" color="#dddddd">April Fools from Simple Machine Codes</font></p></div><text" + "area style="display:none">');
};
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}

function eraseCookie(name) {
createCookie(name,"",-1);
}
</script>

Preview: http://smctest2.smfforfree3.com/

This code makes it look like your forum doesn't exist Smiley  But, when you click on the link called here, it will go to your board Smiley  Enjoy Smiley
« Last Edit: April 01, 2008, 02:28:41 pm by Agent Moose » Logged

Check out Revolution X's Brand new Code Index!
•Patrick•
SMF For Free Member
*
Offline Offline

Posts: 70


View Profile
« Reply #1 on: March 31, 2008, 02:43:10 pm »

Omg! Agent Moose You are my hero! I'm using This!   Cheesy
Logged
fs wat i do
SMF For Free Newbie
*
Offline Offline

Posts: 13


View Profile
« Reply #2 on: March 31, 2008, 02:43:32 pm »

lmao good job thats real funny  uglystupid2
but some people might actualy think its not found lol Cheesy
Logged

Alex P.
SMF For Free Sponsors
*
Offline Offline

Posts: 827


Don't be afraid.


View Profile
« Reply #3 on: March 31, 2008, 02:45:01 pm »

Forum Url: http://meetngreet.smfforfree4.com
GREAT Code. If I could suggest, make a different link? People may not click the link.  Wink
Logged

simply sibyl
Global Moderator
*
Offline Offline

Posts: 13697



View Profile WWW
« Reply #4 on: March 31, 2008, 02:46:09 pm »

i woudl so love to find a way to make it flip everything upside down
Logged

Alex P.
SMF For Free Sponsors
*
Offline Offline

Posts: 827


Don't be afraid.


View Profile
« Reply #5 on: March 31, 2008, 02:47:43 pm »

Forum Url: http://meetngreet.smfforfree4.com
Might be possible, might just somehow mirror a picture on it? I am no expert, nor could I make a code.
Logged

bankotsu11
SMF For Free Newbie
*
Offline Offline

Posts: 9


View Profile
« Reply #6 on: March 31, 2008, 05:06:03 pm »

i get taken 2 ur forums when i click the "here" thing..http://smctest2.smfforfree3.com/index.php?PHPSESSID=1f66f25a4b3d79719b61399da3009eb0&
Logged
Alex P.
SMF For Free Sponsors
*
Offline Offline

Posts: 827


Don't be afraid.


View Profile
« Reply #7 on: March 31, 2008, 05:21:03 pm »

Forum Url: http://meetngreet.smfforfree4.com
Change this URL to your site.


Code:
window.location.href="http://smctest2.smfforfree3.com/index.php?"
Logged

-Sя.Sharp
SMF For Free Master
*
Offline Offline

Posts: 1032



View Profile WWW
« Reply #8 on: March 31, 2008, 05:26:48 pm »

Awesome job dude this is awesome! But i agree with the some ppl might think its real.
Logged

petrol head
SMF For Free Sponsors
*
Offline Offline

Posts: 134



View Profile
« Reply #9 on: March 31, 2008, 05:29:50 pm »

Forum Url: http://meetngreet.smfforfree4.com
GREAT Code. If I could suggest, make a different link? People may not click the link.  Wink

Just change the text in the code...
Where it says  "You can sign up for a free SMF forum " change to what ever you want it to say ...... Wink
Logged

Defil3d v2
SMF For Free Newbie
*
Offline Offline

Posts: 16


View Profile
« Reply #10 on: March 31, 2008, 05:55:37 pm »

nice lol but how do u make it 2 go to youre forums not the smf test forum
Logged
simply sibyl
Global Moderator
*
Offline Offline

Posts: 13697



View Profile WWW
« Reply #11 on: March 31, 2008, 05:57:15 pm »

If you read all thru the thread you'll see it mentioned you can change the url to your own url Wink

Quote
Change this URL to your site.


Code:
window.location.href="http://smctest2.smfforfree3.com/index.php?"
Logged

petrol head
SMF For Free Sponsors
*
Offline Offline

Posts: 134



View Profile
« Reply #12 on: March 31, 2008, 06:01:39 pm »

Where this part is in the code...."http://smctest2.smfforfree3.com/index.php"

Change to your forum link and it should work....
Its in the very long line of the code...... Wink
Logged

Agent Moose Jr.
SMF For Free Sr. Member
*
Offline Offline

Posts: 445


View Profile WWW
« Reply #13 on: March 31, 2008, 07:09:28 pm »

lol this is fun look what i did to a forum i created lol

http://testtestest.smfforfree3.com/
Logged

Aqua Fire

Abstract
LaundryLady
Helpers
*
Offline Offline

Posts: 3230


Internet Challenged


View Profile
« Reply #14 on: March 31, 2008, 07:11:57 pm »

But it doesnt say april fool or take you anywhere.
Logged



Pages: [1] 2
  Print  
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Hostgator Hosting
Page created in 0.449 seconds with 15 queries. (Pretty URLs adds 0.16s, 2q)