SMF For Free Support Forum
Signup For Free Forum
December 04, 2008, 08:22:33 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 648 times)
0 Members and 1 Guest are viewing this topic.
slayer766
SMF For Free Member
*
Offline Offline

Posts: 36



View Profile WWW
« 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

Check our Code Index which currently contains 453 codes!

Celebrus
SMF For Free Hero
*
Offline Offline

Posts: 830


Previously known as Omikron


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.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.169 seconds with 16 queries.