SMF For Free Support Forum
Signup For Free Forum
March 16, 2010, 01:44:17 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 1160 times)
0 Members and 1 Guest are viewing this topic.
slayer766
SMF For Free Full Member
*
Offline Offline

Posts: 203


Rawr


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

Celebrus
SMF For Free Hero
*
Offline Offline

Posts: 941


can't think of anything witty to put here


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:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
ServerBeach Coupon
Page created in 0.244 seconds with 15 queries. (Pretty URLs adds 0.064s, 2q)