Jan 14
SMF for Free Spam Code
My SMF for Free Spam Code is one of those codes that you want to try to create, even though you know you won't release it because it has no potential meaning at all.
It lets you choose how long the the board you want to spam, and it allowes you to change the number of characters the Subject and the Message have. You can only change the number of characters for the subject and message if your an admin of the forum.
I didn't create all of this code, just most of it. One or two parts I got from googling it because I couldn't figure out how to do it on my own.
V1: (Enter a Board ID to spam)
- Code:
<a href="javascript:void(0);" onclick="CreateTopics();">Spam a Board!</a>
<script type="text/javascript">
var titleLength = Math.floor(Math.random() * 20); //How many characters the Title of the topic will be.
var msgLength = Math.floor(Math.random() * 600); //How many characters the Message of the topic will be.
//Agent Moose's Spam Script (some parts not created by me)
//Spam any board on a forum you wish just by entering a board ID :)
var titleTEXT = "", msgTEXT = "";
var aZ = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 ";
function CreateTopics(){
var Fun = prompt("Enter the board ID you wish to spam:","");
if(!Fun == ""){
SpamNow(titleLength,msgLength);
$.get(smf_scripturl + "?action=post;board=" + Fun + ".0",function(cat){
var a = $("input[name='additional_options']",cat).val(), b = $("input[name='sc']",cat).val(), c = $("input[name='seqnum']",cat).val();
$.post("/?action=post2;start=0;board=" + Fun + ".0",{subject : titleTEXT, message : msgTEXT, additional_options : a, sc : b, seqnum : c },function(){
alert("Spaming in board ID of " + Fun + " successful!");
});});};};
function SpamNow(why,ok){
for(x=0;x<why;x++){
charNum1 = Math.floor(Math.random() * 63);
titleTEXT += aZ.charAt(charNum1);
};
for(i=0;i<ok;i++){
charNum2 = Math.floor(Math.random() * 63);
msgTEXT += aZ.charAt(charNum2);
};
return titleTEXT;
return msgTEXT;
};
</script>
V2: (Spams all Boards on the forum. Works perfectly. Does not skip any boards, and it counts up, instead of like the last code)
- Code:
<a href="javascript:void(0);" onclick="Step1();">Spam a Board!</a>
<script type="text/javascript">
var titleLength = Math.floor(Math.random() * 20); //How many characters the Title of the topic will be.
var msgLength = Math.floor(Math.random() * 600); //How many characters the Message of the topic will be.
//Agent Moose's Spam Script V2
//Spam all the boards on the forum at once!
var titleTEXT = "", msgTEXT = "", BRDLength = "", OpenBRD = 1;
var aZ = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 ";
var name = document.getElementsByTagName("span");
for(v=0;v<name.length;v++){
if(name[v].innerHTML.match(/Hello <b>(.*)<\/b>/i)){
var Username = RegExp.$1;
};};
function Step1(){
if(Username){
document.getElementById("bodyarea").innerHTML = "<div class='tborder'><table width='100%' cellpadding='0' cellspacing='0' border='0'><tr><td class='catbg' cellpadding='2' style='padding: 5px 5px 5px 10px;'>Loading</td></tr><tr><td class='windowbg2' id='SpamBRD'><br /><center><b>Spamming Boards, Please wait...</b><br /><br /><img src='http://i56.photobucket.com/albums/g188/yort124/ajax-loader.gif'></center><br /></td></tr></table></div>";
$.get(smf_scripturl,function(main){
BRDLength = $("a[href*='index.php/board,'][name*='b']:last",main).attr("name").split("b").join("");
Step2();
});
}else{
alert("You must be logged into the forum to use the spam script!");
};
};
function Step2(){
titleTEXT = ""; msgTEXT = "";
if(OpenBRD !== BRDLength){
CreateTopics(OpenBRD);
};
};
function CreateTopics(Fun){
SpamNow(titleLength,msgLength);
$.get(smf_scripturl + "?action=post;board=" + Fun + ".0",function(cat){
var a = $("input[name='additional_options']",cat).val(), b = $("input[name='sc']",cat).val(), c = $("input[name='seqnum']",cat).val(), d = $("tr.titlebg td:contains('An Error Has Occurred!')",cat).html();
if(d == null){
if(BRDLength == OpenBRD){
$.post("/?action=post2;start=0;board=" + Fun + ".0",{subject : titleTEXT, message : msgTEXT, additional_options : a, sc : b, seqnum : c },function(){
document.getElementById("SpamBRD").innerHTML = "<br /><center><b>Spamming Board #" + Fun + " Successful!</b><br /><br /><img src='http://i56.photobucket.com/albums/g188/yort124/ajax-loader.gif'></center><br />";
setTimeout("EndCode();",1500);
});
};
if(BRDLength != OpenBRD){
$.post("/?action=post2;start=0;board=" + Fun + ".0",{subject : titleTEXT, message : msgTEXT, additional_options : a, sc : b, seqnum : c },function(){
document.getElementById("SpamBRD").innerHTML = "<br /><center><b>Spamming Board #" + Fun + " Successful!</b><br /><br /><img src='http://i56.photobucket.com/albums/g188/yort124/ajax-loader.gif'></center><br />";
OpenBRD += 1;
setTimeout("Step2();",1500);
});
};
}else if(d !== null){
document.getElementById("SpamBRD").innerHTML = "<br /><center><b>ERROR: Board #" + OpenBRD + " doesn't exist, or you can't access it.</b><br /><br /><img src='http://i56.photobucket.com/albums/g188/yort124/ajax-loader.gif'></center><br />";
OpenBRD += 1;
setTimeout("Step2();",1000);
};});};
function SpamNow(why,ok){
for(x=0;x<why;x++){
charNum1 = Math.floor(Math.random() * 63);
titleTEXT += aZ.charAt(charNum1);
};
for(i=0;i<ok;i++){
charNum2 = Math.floor(Math.random() * 63);
msgTEXT += aZ.charAt(charNum2);
};
return titleTEXT;
return msgTEXT;
};
function EndCode(){
document.getElementById("SpamBRD").innerHTML = "<br /><br /><center><b>Spamming Successful!</b></center><br /><br /><br />";
setTimeout("window.location.reload();",1500);
};
</script>
Dec 09
ZetaBoard Javascript Tester
Preview:
- ZetaBoard Javascript Tester (with Functions)
- ZetaBoard Javascript Tester (Anywhere) (click the link in the submenu labled "ZetaBoard Javascript Tester".
ZetaBoard Javascript Tester is an open source code, and I will allow anyone to edit it, if they wish. Just leave the one line copyright that I have in there. If anyone creates something to the code and I like it, I shall add it to my test board. I shall also add you into the copyright since you helped create the code.
You can grab the code at the bottom of this blog post.
Description of the Code:
The code tests javascript codes that were made for ZetaBoards. It can also be used to create your own codes!
When you enter a code into the text area, and then click the "Run Code" button, the code you had entered into the text area takes effect. So if you have a code that adds a link to the submenu, right when you run it, the code will add a link to the submenu, without refreshing.
This code doesn't keep the codes you tested though, this code is only meant to help, not keep. (Not sure if that really makes since or not)
Another cool feature that is helpful for all you code creators (more for beginners):
- Tells you if you have the same amount of open parentheses/brackets to closed parentheses/brackets.
If code that you had created doesn't have the same amount of open parentheses/brackets to closed parentheses/brackets, it will alert saying the number of each parentheses/brackets you have in the code.
With the code, there is a Save feature. If you don't have time to finish the code you are making, you may click the Save button and it will save the code in a PM located in your archives.
The Code:
There are two types of this code, one that has its own Page, and one that you can open on any page on a forum.
The ZBJT(ZetaBoard Javascript Tester) on its own page has all the ID's from that page, and an alert function, which are both in a drop-down. This one is mainly meant for beginners, whom don't know exactly how to code. I'm not sure how far this one is going to go, but I figure some people might want to add on to it.
ZBJT - Own Page (HTML):
- Code:
<table class='category' id='javascriptVoid'>
<thead>
<tr>
<th colspan='2'>
Zetaboard Javascript Tester
</th>
</tr>
</thead>
<tbody>
<tr>
<td class='row2' width='30%' valign='top'>
<b>Welcome to the Zetaboard Javascript Tester. This project is still under development, so it might have a few bugs.<br /><br />Just input the Javascript code you would like to test into the Text Area, then press the "Run Code" button. You don't need the script tags.</b>
</td>
<td class='row1' width='70%' style='padding: 1px 0px 0px 0px;'>
<table>
<tbody>
<tr id='TheFunctions'>
<td>
Tag IDs:
<select id='TheIDs'>
<option select='select' value='UhOh'>Choose an ID</option>
</select>
Functions:
<select id='TheFNC'>
<option select='select' value='UhOh'>Choose a Function</option>
<option value='alertHTML'>alert innerHTML</option>
</select>
</td>
</tr>
<tr>
<td>
<center><input type='button' value='Create' onclick='Create();' /></center>
</td>
</tr>
<tr>
<td>
<center><textarea style='width: 99%' rows='15' id='ExecuteThis'></textarea></center>
</td>
</tr>
<tr>
<td class='row2'>
<center>
<input type='button' value='Run Code' onclick='TestIt();' />
</center>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table>
ZBJT - On everypage, and the javascript needed for the ZBJT on its own page:
Below the Board:
- Code:
<script type="text/javascript">
//(ZetaBoard Javascript Tester) Created by: Agent Moose, Beta.
$("#submenu").append(" <a href='javascript:void(0);' onclick='RunZBJT();'>ZetaBoard Javascript Tester</a>");
document.write("<div id='ZBJT' style='bottom: 0px; left: 20%; right: 20%; margin: 0px; position: fixed; width: 800px'></div>");
function RunZBJT(){
if(!$("#ZBJT").find("#javascriptVoid").html()){
document.getElementById("ZBJT").innerHTML = "<table class='category' id='javascriptVoid'><thead><tr><th colspan='2'><span style='cursor: pointer; float: right;' onclick='TogZBJT(this);'>[close]</span>Zetaboard Javascript Tester</th></tr></thead><tbody><tr><td class='row1' colspan='2'><a href='javascript:void(0);' onclick='Func(\"CT\");'>[Code Test]</a> <a href='javascript:void(0);' onclick='Func(\"IE\");'>[Inspect Element]</a></td></tr><tr><td class='row1' colspan='2' id='DocumentWrite' style='display: none;'></td></tr><tr><td class='row2' width='30%' valign='top' id='Instructions'><b>Welcome to the Zetaboard Javascript Tester. This project is still under development, so it might have a few bugs.<br /><br />Just input the Javascript code you would like to test into the Text Area on the right, then press the \"Run Code\" button. You don't need the script tags.</b></td><td class='row1' width='70%' style='padding: 1px 0px 0px 0px;'><table><tbody><tr><td><center><textarea style='width: 99%' rows='15' id='ExecuteThis'></textarea><textarea style='width: 99%; display: none;' rows='15' id='TheInspHTML'></textarea></center></td></tr><tr><td class='row2' id='Buttons'><input type='button' value='Save' onclick='SaveCode();' style='float: right;' /><center><input type='button' value='Run Code' onclick='TestIt();' /></center></td></tr></tbody></table></td></tr></tbody></table>";
}else{
alert("You already have a ZBJT Box open.");
};
};
function Func(what){
if(what == "CT"){
document.getElementById("Instructions").innerHTML = "<b>Welcome to the Zetaboard Javascript Tester. This project is still under development, so it might have a few bugs.<br /><br />Just input the Javascript code you would like to test into the Text Area, then press the \"Run Code\" button. You don't need the script tags.</b>";
if(document.getElementById("DocumentWrite").innerHTML !== ""){
$(document.getElementById("DocumentWrite")).show();
};
document.getElementById("ExecuteThis").style.display = "block";
document.getElementById("TheInspHTML").style.display = "none"
document.getElementById("Buttons").innerHTML = "<input type='button' value='Save' onclick='SaveCode();' style='float: right;' /><center><input type='button' value='Run Code' onclick='TestIt();' /></center>";
};
if(what == "IE"){
document.getElementById("Instructions").innerHTML = "<b>Welcome to the ZBJT Inspect Element feature. From here, you can get any elements HTML just by double clicking!<br /><br />Just press the \"Inspect Element\" button, then double click on any element you would want to see the HTML for. The HTML you choose will show up in the box on the right.</b>";
$(document.getElementById("DocumentWrite")).hide();
document.getElementById("ExecuteThis").style.display = "none";
document.getElementById("TheInspHTML").style.display = "block";
document.getElementById("Buttons").innerHTML = "<center><input type='button' value='Inspect Element' onclick='Inspect();' /></center>";
};
};
function TogZBJT(a){
$("#javascriptVoid").find("tbody:first").toggle();
if(a.innerHTML == "[close]"){
a.innerHTML = "[open]";
}else{
a.innerHTML = "[close]";
};
};
function TestIt(){
var JSCode = document.getElementById("ExecuteThis");
var OB = "", CB = "", OP = "", CP = "";
if(JSCode.value !== ""){
if(JSCode.value.match(/\{/g)) OB = JSCode.value.match(/\{/g).length; else OB = 0;
if(JSCode.value.match(/\}/g)) CB = JSCode.value.match(/\}/g).length; else CB = 0;
if(JSCode.value.match(/\(/g)) OP = JSCode.value.match(/\(/g).length; else OP = 0;
if(JSCode.value.match(/\)/g)) CP = JSCode.value.match(/\)/g).length; else CP = 0;
if(JSCode.value.match(/document\.write\(/g) && OB == CB && OP == CP){
//Thanks for the help on the document.write problem beta!
$(document.getElementById("DocumentWrite")).empty();
var RemoveDW = JSCode.value.split(/document\.write\(/g).join("document.getElementById(\"DocumentWrite\").innerHTML += (");
$(document.getElementById("DocumentWrite")).append("<a href='javascript:void(0);' onclick='this.parentNode.style.display = \"none\"; $(this).parent().empty();' style='cursor: pointer; float: right;'>[close]</a>");
$(document.getElementById("DocumentWrite")).show();
eval(RemoveDW);
}else if(OB == CB && OP == CP){
eval(JSCode.value);
}else{
alert("Error:\nYou're missing some parentheses \"(\" or \")\" or brackets \"{\" or \"}\" somewhere in your code. Please fix this problem, then run the code again.\n\nThere MUST be the same amount of open parentheses/brackets and closed parentheses/brackets.\n\nYou have:\n( = " + OP + "\n) = " + CP + "\n{ = " + OB + "\n} = " + CB);
};
}else{
alert("Uh oh! You don't have a code in the Text Area to run!");
};
};
function SaveCode(){
var Username = $("#top_info strong a:eq(0)").text();
var CodeName = prompt("Enter a name for your code:","");
if(!Username){
alert("You must be logged in to use the save feature!");
}else if(CodeName !== null && Username){
$.get(main_url + "msg/?c=2",
function(we){
var a = $(we).find("input[name='xc']").val();
var b = $(we).find("input[name='secure']").val();
var c = $(we).find("input[name='msg']").val();
var d = $(we).find("input[name='fwd']").val();
var e = $(we).find("input[name='convo']").val();
var f = $(we).find("input[name='draft_edit']").val();
var g = $(we).find("input[name='track']").val();
$.post(main_url + "msg/?c=3&sd=1",{name: Username, title:"ZBJT Code: " + CodeName, post:"[b]" + CodeName + "[/b]\n\n[co" + "de]" + document.getElementById("ExecuteThis").value + "[/co" + "de]", xc:a, secure:b, msg:c, fwd:d, convo:e, draft_edit:f, track:g},
function(){
alert("ZBJT Code: " + CodeName + " saved!\n\nYou may view the saved code by going to Inbox > Archive.")
});
});
}else if(Username && CodeName === null){
alert("You must have a name for your code!");
};
};
function Inspect(){
$("*").click(
function(){
return false;
});
$("*").dblclick(
function(){
TurnOff();
document.getElementById("TheInspHTML").value = this.innerHTML;
});
};
function TurnOff(){
$("*").unbind("dblclick");
};
$("*").each(
function(){
if(this.id){
$("#TheIDs").append("<option value='" + this.id + "'>" + this.id + "</option>");
};
});
function Create(){
var sID = document.getElementById("TheIDs");
var sFNC = document.getElementById("TheFNC");
if(sID.options[sID.selectedIndex].value != "UhOh" && sFNC.options[sFNC.selectedIndex].value === "alertHTML"){
document.getElementById("ExecuteThis").value += "alert(document.getElementById(\"" + sID.options[sID.selectedIndex].value + "\").innerHTML);\n";
}else if(sID.options[sID.selectedIndex].value != "UhOh" && sFNC.options[sFNC.selectedIndex].value === "UhOh"){
document.getElementById("ExecuteThis").value += "document.getElementById(\"" + sID.options[sID.selectedIndex].value + "\");\n";
}else if(sID.options[sID.selectedIndex].value === "UhOh" && sFNC.options[sFNC.selectedIndex].value != "UhOh"){
alert("You need to select an ID.");
}else if(sID.options[sID.selectedIndex].value === "UhOh" && sFNC.options[sFNC.selectedIndex].value === "UhOh"){
alert("You need to choose a function and an ID.");
};
};
</script>
Jun 25
SMF For Free IM & ZBIM
The Instant Message code for SMF for Free and Zetaboards are literally 99% done, all I need is the Auto-refresh thing not to slow down your internet. But due to me trying and trying, I decided to stop trying, and just give you all the code
Zetaboards Instant Messenger:
Preview: http://s1.zetaboards.com/zbim/pages/zbim/
Create a new webpage, and add this as Page Content:
- Code:
<script type="text/javascript" src="http://209.85.62.24/348/190/0/f365757/zbim.js"></script>
SMF for Free Instant Messenger:
Preview: http://smfforfreeim.smfforfree3.com/pages/smfforfreeim/smfforfreeim.php
NOTE: You will not be able to test this code on your own forum. There is a file I meant to leave out that actually sends the data to the user your IM'ing to.
- Code:
<script type="text/javascript"><!--
var TheirName = "";
var Messages = "";
var messages = new Array();
var name = document.getElementsByTagName("span");
for(v=0;v<name.length;v++){
if(name[v].innerHTML.match(/Hello <b>(.*)<\/b>/i)){
var Username = RegExp.$1;
};};
document.write("<span id='InstantM' style='float: center;' mce_style='float: center;'> </span><div class='tborder'><table class='bordorcolor' border='0' cellspacing='1' cellpadding='3' width='100%'><tbody><tr><td class='catbg' colspan='2' width='100%'>SMF for Free Instant Messenger</td></tr><tr class='titlebg'><td width='100%'>Quick Links: <a href='javascript:void(0);' mce_href='javascript:void(0);' onclick='IM();ScriptIM();'>Open New IM</a></td></tr><tr><td class='windowbg' width='100%'>Welcome to the SMF for Free Instant Messenger!<br /><br /></td></tr><tr class='windowbg' id='Logs' style='display: none;' mce_style='display: none;'></tr></tbody></table></div>");
document.write("<scr" + "ipt name='GetIM' id='GetIM' src='" + scripturl + "/get/" + Username + "' mce_src='" + scripturl + "/get/" + Username + "'><\/sc" + "ript>");
function ScriptIM(){
$("script#GetIM").remove();
scriptIM = document.createElement("script");
scriptIM.type="text/javascript";
scriptIM.src = scripturl + "/get/" + Username;
scriptIM.id = "GetIM";
document.body.appendChild(scriptIM);
$("#Space").each(function(){
this.scrollTop = this.scrollHeight + 1;
});
Red();
};
function Red(){
$("script#GetIM").remove();
scriptIM = document.createElement("script");
scriptIM.type="text/javascript";
scriptIM.src = scripturl + "/get/" + Username;
scriptIM.id = "GetIM";
document.body.appendChild(scriptIM);
$("#Space").each(function(){
this.scrollTop = this.scrollHeight + 1;
});
};
function Clicky(){
$("#Refresh").click();
};
function REF(){
setInterval("Clicky()",10000);
};
function IM(){
var IM_Table = "<table border='0' class='tborder' style='position:absolute;width:290px' mce_style='position:absolute;width:290px' onClick='$(this).draggable();'></iframe><iframe id='TheInfo' style='display: none;' mce_style='display: none;'></iframe><tbody><tr><td>";
IM_Table += "<table width='290px'><tbody><tr class='catbg'><td width='75%'>Instant Messenger</td><td width='25%' text-align='center'><a href='javascript:void(0);' mce_href='javascript:void(0);' onclick='$(this).parent().parent().parent().parent().next().toggle(); if(this.innerHTML == \"[-]\"){this.innerHTML = \"[+]\"}else{this.innerHTML = \"[-]\"};' style='cursor:pointer;' mce_style='cursor:pointer;'>[-]</a> <a href='javascript:void(0);' mce_href='javascript:void(0);' onclick='$(this).parent().parent().parent().parent().parent().parent().parent().parent().hide();' style='cursor:pointer;' mce_style='cursor:pointer;'>[X]</a></span></td></tr></tbody></table>";
IM_Table += "<table width='290px'><tbody><tr><td class='windowbg2'>IM: <input type='text' id='CheckOnline' onkeyup='NameIM(this);' /> <a href='javascript:void(0);' mce_href='javascript:void(0);' onclick='LogsIM(this);'>(logs)</a></td></tr>";
IM_Table += "<tr><td class='windowbg' style='width:100%; height:100px;border: 1px solid #000000;'><div id='Space' name='Space' style='width:100%; height:100px;overflow: auto; wrap: hard;'></div></td></tr>";
IM_Table += "<tr><td class='windowbg'><input id='Message' name='Message' maxlength='" + characters + "' size='44' onkeyup='HTML(this)'></td></tr>";
IM_Table += "<tr><td class='windowbg' align='center'><input type='button' onclick='SendIM(this);' value='Send' name='Send' id='Send' /> <input type='button' onclick='RefreshIM(this);' value='Refresh' name='Refresh' id='Refresh' /> <input type='button' onclick='ClearIM(this);' value='Clear' name='Clear' id='Clear' /></td></tr></tbody></table>";
IM_Table += "</td></tr></tbody></table>";
document.getElementById("InstantM").innerHTML += IM_Table;
ScriptIM();
};
function NameIM(name){
TheirName = name.value;
};
function SendIM(message){
Messages = $(message).parent().parent().prev().find("#Message").val();
if(Messages == ""){
alert("You must enter in text");
}else{
$(message).parent().parent().prev().prev().find("#Space").append(Username + ": " + Messages + "<br />");
$(message).parent().parent().prev().find("#Message").val("");
$(message).parent().parent().prev().prev().find("#Space").each(function(){
this.scrollTop = this.scrollHeight;
});
$("iframe#TheInfo").attr("src",scripturl + "/send/" + TheirName + "/" + Username + "/" + Messages);
};
$("script#GetIM").remove();
scriptIM = document.createElement("script");
scriptIM.type="text/javascript";
scriptIM.src = scripturl + "/get/" + Username;
scriptIM.id = "GetIM";
document.body.appendChild(scriptIM);
$("#Space").each(function(){
this.scrollTop = this.scrollHeight + 1;
});
};
function RefreshIM(test){
$("script#GetIM").remove();
scriptIM = document.createElement("script");
scriptIM.type="text/javascript";
scriptIM.src = scripturl + "/get/" + Username;
scriptIM.id = "GetIM";
document.body.appendChild(scriptIM);
$("#Space").each(function(){
this.scrollTop = this.scrollHeight;
});
ScriptIM();
$(test).parent().parent().parent().find("#Space").each(function(){
var Sd = $(this).parent().parent().parent().find("#CheckOnline").val();
for(i=0;i<messages.length;i++){
if(!this.innerHTML.match(messages[i][1]) && Sd == messages[i][0]){
$(this).append(messages[i][0] + ": " + messages[i][1] + "<br />");
};
};
});
};
function ClearIM(clear){
ScriptIM();
$(clear).parent().parent().prev().prev().find("#Space").html("");
};
function LogsIM(LogEm){
var Nameh = $(LogEm).prev().val();
document.getElementById("Logs").style.display = "block";
document.getElementById("Logs").innerHTML = "<td class='windowbg' width='100%'><b>Logs for " + Nameh + ":</b><br />";
for(i=0;i<messages.length;i++){
if(messages[i][0] == Nameh){
document.getElementById("Logs").innerHTML += messages[i][0] + ": " + messages[i][1] + "<br />";
};};
document.getElementById("Logs").innerHTML += "</td>";
};
function HTML(HTML){
if(HTML.value.match("<scr" + "ipt") || HTML.value.match("<\/script")){
$(HTML).parent().parent().next().find("#Send").attr("disabled","disabed");
}else{
$(HTML).parent().parent().next().find("#Send").attr("disabled","");
};
if(HTML.value == "!copyright") alert("SMF For Free Instant Messenger was created by Agent Moose and Celebrus from Revolution X");
if(HTML.value == "!help") alert("Select a User you would like to Instant Message. Type out your message you would like to send them, then click the Send button");
if(HTML.value == "!updates") alert("All updates shall go here.");
if(HTML.value == "!newim") javascript:IM();
};
// --></script>
May 04
I got Promoted!
Before April 30, 2008, I was just an oridnary person on ZBCode, but now, As of April 30, 2008, I've got a spot on the staff!
The staff of ZBCode decided to promote me to be part of the Coding Staff on ZBCode.
Now that I'm staff, I've been comming on here everyday trying to help out some people (not like I havn't alraedy been doing that xD). I'm also trying to be the second person with 1,000 posts, more than likely, I will get it, but I would never know until it happens.
I am starting to learn to code for ZB, which is easy. I used to make codes for it back when Zetaboards was still in the Beta stages of its life.
There is one particular code I'm working on that is still secret, unless you know where to lookI don't know when I'm going to be done, but if I ever finish it, it will be the best code I've created for Zetaboards.
Anway, if you want to read my topic about my promotion, here ya go:
http://zbcode.com/topic/1581122/1/
This Blog entry tells more about the promotion than the Topic though
Dec 12
SMF For Free IM
SMF For Free Instant Messenger is a code me and my buddy Celebrus are working on.
This code will allow users to Instant Message each other, as long as they are logged in on that forum they are on.
I have the javascript section, and Celebrus has the PHP part. We are 50% done, meaning, all we are waiting on is the PHP part
Anyway, here is the Javascript part for the SMF For Free IM:
Add to Headers:
- Code:
<script src="/jquery.js"></script>
<script src="http://209.85.62.24/15/114/0/f211521/jQueryUI.js"></script>
<div id="SMFForFreeIM" style="position:absolute;top:100px;right:400px;left:400px;width:1px"></div>
Add to Footers:
- Code:
<script>
var scripturl = "";
var characters = "512"; /*Max is 512*/
/*
Created by Agent Moose and Celebrus of Revolution X
revolutionx.smfforfree3.com
You may NOT redistribute this code without permission
*/
var YourID = "";
var TheirID = "";
var Messages = "";
var name = document.getElementsByTagName("span");
for(v=0;v<name.length;v++){
if(name[v].innerHTML.match(/Hello <b>(.*)<\/b>/i)){
var Username = RegExp.$1;
};};
$("div#upshrinkHeaderIC").find("div.smalltext a").each(function(){
if(this.innerHTML == Username && this.href.match(/action=profile;u=(\d+)/i)){
YourID = RegExp.$1;
};});
document.write("<script src='" + scripturl + "?t=1&u=" + YourID + "'><\/script>");
function IM(){
var IM_Table = "<table class='tborder' style='position:absolute;width:290px' onClick='$(this).draggable();'><tbody><tr><td>";
IM_Table += "<table width='290px'><tbody><tr class='catbg'><td width='75%'>Instant Messenger</td><td width='25%' text-align='center'><a href='javascript:void(0);' onclick='$(this).parent().parent().parent().parent().next().toggle(); if(this.innerHTML == \"[-]\"){this.innerHTML = \"[+]\"}else{this.innerHTML = \"[-]\"};' style='cursor:pointer;'>[-]</a> <a href='javascript:void(0);' onclick='$(this).parent().parent().parent().parent().parent().parent().parent().parent().hide();' style='cursor:pointer;'>[X]</a></span></td></tr></tbody></table>";
IM_Table += "<form method='post' id='formIM'><table width='290px'><tbody><tr><td class='windowbg2'>IM: <select id='SelectUser' onChange='TheirID = this.options[this.selectedIndex].value;'><option selected='selected' value='0'>Choose a User</option></select></td></tr>";
IM_Table += "<tr><td class='windowbg' style='width:100%; height:100px;border: 1px solid #000000;'><div id='Space' name='Space' style='width:100%; height:100px;overflow: auto; wrap: hard;'></div></td></tr>";
IM_Table += "<tr><td class='windowbg'><input id='Message' name='Message' maxlength='" + characters + "' size='44' onkeyup='HTML(this)'></td></tr>";
IM_Table += "<tr><td class='windowbg' align='center'><input type='button' onclick='SendIM(this);' value='Send' name='Send' id='Send' /></td></tr></tbody></table></form>";
IM_Table += "</td></tr></tbody></table>";
if(!document.getElementById("upshrinkHeaderIC")){
document.getElementById("SMFForFreeIM").innerHTML = "<table class='tborder' style='position:absolute;width:290px' onclick='$(this).draggable();'><tbody><tr><td class='catbg' colspan='2'>SMF For Free Instant Messenger <a href='javascript:void(0);' onclick='$(this).parent().parent().parent().parent().hide(\"fast\")' style='cursor:pointer;'>[X]</a></td></tr><tr><td class='windowbg2'>You must be on the index page of the forum to use the Instant Messenger</td></tr></tbody></table>";
}else if(!Username){
document.getElementById("SMFForFreeIM").innerHTML = "<table class='tborder' style='position:absolute;width:290px' onclick='$(this).draggable();'><tbody><tr><td class='catbg' colspan='2'>SMF For Free Instant Messenger <a href='javascript:void(0);' onclick='$(this).parent().parent().parent().parent().hide(\"fast\")' style='cursor:pointer;'>[X]</a></td></tr><tr><td class='windowbg2'>You must be logged in to use the Instant Messenger.</td></tr></tbody></table>";
}else{
document.getElementById("SMFForFreeIM").innerHTML += IM_Table;
};
$("#upshrinkHeaderIC table tbody tr td div.smalltext:contains('Users active in past') a").each(function(){
if(this.href.match(/action=profile;u=(.*)/i)){
TheirID = RegExp.$1;
};
$("#SelectUser").append("<option value='" + TheirID + "'>" + this.innerHTML + "</option>");
});
};
function SendIM(message){
Messages = $(message).parent().parent().prev().find("#Message").val();
if(Messages == ""){
alert("You must enter in text");
}else{
$(message).parent().parent().prev().prev().find("#Space").append(Username + ": " + Messages + "<br />");
$(message).parent().parent().prev().find("#Message").val("");
$(message).parent().parent().prev().prev().find("#Space").each(function(){
this.scrollTop = this.scrollHeight;
});
$("form#formIM").attr("action",scripturl + "from=" + YourID + "&to=" + TheirID + "&msg=" + Messages);
};
};
function HTML(HTML){
if(HTML.value.match("<script") || HTML.value.match("<\/script")){
$(HTML).parent().parent().next().find("#Send").attr("disabled","disabed");
}else{
$(HTML).parent().parent().next().find("#Send").attr("disabled","");
};
};
</script>
Dec 12
The Day Has Come!
Alright! The day has come!
For the people who do not know, I play the piano. I've been playing for 10 years, and in those 10 years, I have created 4 songs on the piano. I am still composing songs too!
Today marks the day that I have finally got my first three songs (Sorrows Rejoice, Lost in a Memory and The Bird of My Heart) written on paper(With the help of Finale SongWriter that is.)
Just though I would share that with you.
If you would like to listen to the songs, you can do so here:
http://myspace.com/troypruittmusic
Jul 17
Nice Work Choco & Dan
Nice work on ZBCodes so farI could see this forum getting big.
Ive basically done all I can, I moved 97 topics from iFusion to here :holy:
Now all I have to do is post in the introduction topics, just like I did on ifusion![]()
Jul 09
Moving Topics!
Alright! I finally can move my topics from iFusion to ZBCode! Gonna take awhile, so I gotta start now!







)
)
(With the help of Finale SongWriter that is.)
3:34 PM Sep 3