Advertise Here

Author Topic: [Code] April Fools!  (Read 15312 times)

0 Members and 1 Guest are viewing this topic.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
[Code] April Fools!
« on: March 31, 2008, 02:36:49 pm »
Add this to your headers if you don't have it:
Code: [Select]
<script src="jquery.js"></script>
Headers:
Code: [Select]
<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 :)  But, when you click on the link called here, it will go to your board :)  Enjoy :)
« Last Edit: April 01, 2008, 02:28:41 pm by Agent Moose »
Check out Revolution X's Brand new Code Index!

Offline •Patrick•

  • SMF For Free Member
  • *
  • Posts: 70
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] April Fools!
« Reply #1 on: March 31, 2008, 02:43:10 pm »
Omg! Agent Moose You are my hero! I'm using This!   :D

Offline fs wat i do

  • SMF For Free Newbie
  • *
  • Posts: 13
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] April Fools!
« 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 :D

Offline -A-

  • SMF For Free Sponsors
  • *
  • Posts: 877
  • Don't be afraid.
    • View Profile

  • Total Badges: 22
    Badges: (View All)
    Search Apple User Mobile User Windows User Topic Starter
Re: [Code] April Fools!
« 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.  ;)

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] April Fools!
« 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

Offline -A-

  • SMF For Free Sponsors
  • *
  • Posts: 877
  • Don't be afraid.
    • View Profile

  • Total Badges: 22
    Badges: (View All)
    Search Apple User Mobile User Windows User Topic Starter
Re: [Code] April Fools!
« 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.

Offline bankotsu11

  • SMF For Free Newbie
  • *
  • Posts: 9
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [Code] April Fools!
« Reply #6 on: March 31, 2008, 05:06:03 pm »

Offline -A-

  • SMF For Free Sponsors
  • *
  • Posts: 877
  • Don't be afraid.
    • View Profile

  • Total Badges: 22
    Badges: (View All)
    Search Apple User Mobile User Windows User Topic Starter
Re: [Code] April Fools!
« Reply #7 on: March 31, 2008, 05:21:03 pm »
Forum Url: http://meetngreet.smfforfree4.com
Change this URL to your site.


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

Offline -Sя.Sharp

  • SMF For Free Master
  • *
  • Posts: 1032
    • View Profile
    • Hidden Designers

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [Code] April Fools!
« 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.

Offline petrol head

  • SMF For Free Sponsors
  • *
  • Posts: 134
    • View Profile

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [Code] April Fools!
« 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.  ;)

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 ...... ;)

Offline Defil3d v2

  • SMF For Free Newbie
  • *
  • Posts: 16
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] April Fools!
« 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

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] April Fools!
« 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 ;)

Quote
Change this URL to your site.


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

Offline petrol head

  • SMF For Free Sponsors
  • *
  • Posts: 134
    • View Profile

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [Code] April Fools!
« 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...... ;)

Offline Agent Moose Jr.

  • SMF For Free Sr. Member
  • *
  • Posts: 462
    • View Profile
    • The Risen Slayers

  • Total Badges: 28
    Badges: (View All)
    Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary Seventh year Anniversary Avatar
Re: [Code] April Fools!
« 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/
Aqua Fire

Abstract

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: [Code] April Fools!
« Reply #14 on: March 31, 2008, 07:11:57 pm »
But it doesnt say april fool or take you anywhere.


And I Play:  Mafia-Mandemz

 

Related Topics

  Subject / Started by Replies Last post
21 Replies
12473 Views
Last post August 16, 2009, 09:16:42 pm
by [FailSafe]
8 Replies
4051 Views
Last post October 08, 2007, 10:37:44 am
by R u n e s c a p e
36 Replies
15009 Views
Last post November 17, 2008, 07:22:33 am
by [JeReMy]
1 Replies
2035 Views
Last post November 12, 2008, 07:59:32 am
by simply sibyl
3 Replies
2846 Views
Last post January 09, 2010, 01:35:34 pm
by hell hound