SMF For Free Support Forum
Signup For Free Forum
July 04, 2009, 11:29:50 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]
  Print  
Author Topic: [Code] New Affiliates Page  (Read 965 times)
0 Members and 1 Guest are viewing this topic.
slayer766
SMF For Free Member
*
Offline Offline

Posts: 52

Unlike Moose, PM me for Code Support/Requests ^_^


View Profile
« on: February 01, 2008, 09:23:35 am »

Preview: http://divinityrpg.smfforfree4.com/index.php?action=affiliates

Place this at the bottom of your Headers box:

Quote from: If you already have the jquery script then just place the div tag up
<script src="jquery.js"></script><div id="affiliates">

Place this at the top of your Footers box:

Quote
<script type='text/javascript'>
//By slayer766 of thecodingzone.com

var url = location.href.split("?")[0];
var boardname = document.getElementsByTagName("span")[0].innerHTML;
$(function(){
$(".maintab_last").before("<td valign='top' class='maintab_back'><a href='"+url+"?action=affiliates'>Affiliates</a></td>");
});
if(location.href.match(/action=affiliates/i)!=null){
document.title=boardname+" Affiliates";
document.getElementById("affiliates").innerHTML = '<div class="tborder"><div class="catbg" align="center">'+boardname+' Affiliates</div><table><tr><td><a href="http://thecodingzone.com"> <img src="http://slaytanist.co.uk/tcz_aff.jpg" alt="TheCodingZone"></a></td><td><a href="http://thecodingzone.com"> <img src="http://slaytanist.co.uk/tcz_aff.jpg" alt="TheCodingZone"></a></td><td><a href="http://thecodingzone.com"> <img src="http://slaytanist.co.uk/tcz_aff.jpg" alt="TheCodingZone"></a></td><td><a href="http://thecodingzone.com"> <img src="http://slaytanist.co.uk/tcz_aff.jpg" alt="TheCodingZone"></a></td></tr><tr><td><a href="http://thecodingzone.com"> <img src="http://slaytanist.co.uk/tcz_aff.jpg" alt="TheCodingZone"></a></td><td><a href="http://thecodingzone.com"> <img src="http://slaytanist.co.uk/tcz_aff.jpg" alt="TheCodingZone"></a></td><td><a href="http://thecodingzone.com"> <img src="http://slaytanist.co.uk/tcz_aff.jpg" alt="TheCodingZone"></a></td><td><a href="http://thecodingzone.com"> <img src="http://slaytanist.co.uk/tcz_aff.jpg" alt="TheCodingZone"></a></td></tr></table></div>';
}
</script>

Then place this at the bottom of your Footers box:

Quote
</div>


The only thing you need to change or you can edit is what is in RED. Cheesy
Logged

Want a Shop System for your SMFForFree message board? Well then, you are in luck! I'm currently underway of creating one for the public to use for free! Stay tuned for future topics containing sneak peaks/previews!
Celebrus
SMF For Free Hero
*
Offline Offline

Posts: 940


λ is awesome


View Profile WWW
« Reply #1 on: February 02, 2008, 03:48:30 am »

slayer, I think I'll give you a tip, lol. If you hide the #bodyarea on any page, you would still have the User's area thing up top and the SMF copyright down below.
Logged



Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
ServerBeach Coupon
Page created in 0.175 seconds with 17 queries.