So you ran out of room in your Headers/Footers, or you think you have to much in them. Well, just follow this tutorial to see how to upload them so you can have more space and it look much neater!
Say you have these two codes:
<script type="text/javascript">
function board_stats_vone() {
//Created by Agent Moose at smcodes.smfforfree3.com
$(function() {
$("span.middletext").each(function() {
if(this.innerHTML.match(/[\d,]+ Posts in [\d,]+ Topics by [\d,]+ Members/i)) {
this.innerHTML = this.innerHTML.replace(/([\d,]+) Posts in ([\d,]+) Topics by [\d,]+ Members. Latest Member: <b>\s?(<a.+?\/a>)<\/b>/i, "Posts: <b>$1</b><br />Topics: <b>$2</b><br />Newest Member: <b>$3</b>");
}});});}
board_stats_vone();
</script>
and
<script>
function add_color_v2() {
//Created by Agent Moose (smcodes.smfforfree3.com)
$(function() {
$("a").each(function() {
if(this.innerHTML.match(/\[color=.*\]/i)) {
this.innerHTML = this.innerHTML.replace(/\[color=(.+?)\]/i,"<font color='$1'>");
};});});}
add_color_v2();
</script>
Step 1What you would do is put both of those codes into notepad, so it will look like this:
<script type="text/javascript">
function board_stats_vone() {
//Created by Agent Moose at smcodes.smfforfree3.com
$(function() {
$("span.middletext").each(function() {
if(this.innerHTML.match(/[\d,]+ Posts in [\d,]+ Topics by [\d,]+ Members/i)) {
this.innerHTML = this.innerHTML.replace(/([\d,]+) Posts in ([\d,]+) Topics by [\d,]+ Members. Latest Member: <b>\s?(<a.+?\/a>)<\/b>/i, "Posts: <b>$1</b><br />Topics: <b>$2</b><br />Newest Member: <b>$3</b>");
}});});}
board_stats_vone();
</script>
<script>
function add_color_v2() {
//Created by Agent Moose (smcodes.smfforfree3.com)
$(function() {
$("a").each(function() {
if(this.innerHTML.match(/\[color=.*\]/i)) {
this.innerHTML = this.innerHTML.replace(/\[color=(.+?)\]/i,"<font color='$1'>");
};});});}
add_color_v2();
</script>
Step 2Now, remove
ALL the script tags(<script>,</script>).
function board_stats_vone() {
//Created by Agent Moose at smcodes.smfforfree3.com
$(function() {
$("span.middletext").each(function() {
if(this.innerHTML.match(/[\d,]+ Posts in [\d,]+ Topics by [\d,]+ Members/i)) {
this.innerHTML = this.innerHTML.replace(/([\d,]+) Posts in ([\d,]+) Topics by [\d,]+ Members. Latest Member: <b>\s?(<a.+?\/a>)<\/b>/i, "Posts: <b>$1</b><br />Topics: <b>$2</b><br />Newest Member: <b>$3</b>");
}});});}
board_stats_vone();
function add_color_v2() {
//Created by Agent Moose (smcodes.smfforfree3.com)
$(function() {
$("a").each(function() {
if(this.innerHTML.match(/\[color=.*\]/i)) {
this.innerHTML = this.innerHTML.replace(/\[color=(.+?)\]/i,"<font color='$1'>");
};});});}
add_color_v2();
Step 3Go to File >> Save As, and change the box from Text Files (*.TXT) to All Files (*.*).
Save the file as anyname, just maksure you have .js at the end. (EX: codes.js)
Step 4Go to
www.ripway.com and register a account if you don't have one and upload the file there.
Step 5Once you uploaded it you will want to get the URL of it.
The URL would be the text inside the black border.
Copy that text
Step 6What you want to do now is go into your Headers/Footers. Add this to your headers or footers:
<script src="URL HERE"></script>
Just replace the URL HERE text with your URL that you copied.
That is all for the tutorial
If you have any questions, just ask.