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?
1 Hour
1 Day
1 Week
1 Month
Forever
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
SMF For Free Support Forum
>
SMF For Free Support
>
SMF For Free Codes and Support
(Moderator:
Agent Moose
) >
[Code] New Affiliates Page
Pages: [
1
]
« previous
next »
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
Posts: 203
Rawr
[Code] New Affiliates Page
«
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.
Logged
Code Index
Theme Index
Celebrus
SMF For Free Hero
Offline
Posts: 941
can't think of anything witty to put here
Re: [Code] New Affiliates Page
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
SMF For Free Site
-----------------------------
=> Announcements
=> General Discussion
=> Suggestions
-----------------------------
SMF For Free Support
-----------------------------
=> General Support
=> Guides and Tutorials
=> Stylesheet Codes
=> Stylesheet Requests and Support
=> SMF For Free Codes and Support
===> Code Requests
=> Bugs
=> Report Terms of Service Violations
-----------------------------
General Stuff
-----------------------------
=> General Chat
=> Advertise Your Board/Blog
=> Programming
===> HTML
===> JavaScript
===> C,C++
===> Java
===> .Net
===> PHP
===> Visual Basic
=> Gaming
===> PC Games
===> Nintendo
===> Playstation
===> Xbox / Xbox 360
=> Graphics
===> Living Avatars
Loading...