| Author | Topic: ShoutBox Codes & Modifications List (Read 3,223 times) |
Charles Stover The Creator (Clone)
     member is offline
![[avatar]](http://gamingmedley.com/_/images/chao.gif)
Joined: Jun 2008 Gender: Male  Posts: 305 Location: California Karma: 6 |  | ShoutBox Codes & Modifications List « Thread Started on Aug 3, 2008, 4:57am » | |
Title: ProBoards ShoutBox Creator: Charles Stover (a.k.a. GAMEchief, SegaDragon) Cross-Browser: Yes Placement: Main Header
Code:<script src="http://proboards.gamingmedley.com/shoutbox.php" type="text/javascript"> /* ProBoards ShoutBox (C) Charles Stover (a.k.a. GAMEchief, SegaDragon) This notice may not be removed for any reason. [url]http://www.gamingmedley.com[/url] */ </script> |
|
Modifications List:
| This account is no longer in use. Please direct all support to this account. |
|
Charles Stover The Creator (Clone)
     member is offline
![[avatar]](http://gamingmedley.com/_/images/chao.gif)
Joined: Jun 2008 Gender: Male  Posts: 305 Location: California Karma: 6 |  | Announcement in ShoutBox « Reply #1 on Oct 8, 2008, 8:02am » | |
Title: Announcement in ShoutBox Creator: Charles Stover Cross-Browser: Yes Placement: Directly Above the ProBoards ShoutBox
Code:<script type="text/javascript"><!-- if (typeof(shoutbox) != "object") var shoutbox = new Array(); function stickyShout(usr, dsply, msg) { if (typeof(shoutbox["execute"]) != "object") shoutbox["execute"] = new Array(); shoutbox["execute"].push(new Array(function(args) { sbp(args[0], args[1], args[2]); }, new Array(usr, dsply, msg))); } stickyShout("admin", "ShoutBox", "Hello, world!"); //--></script> |
|
This will put a message at the top of the shoutbox, after it's loaded. The first field (admin) is the username of the profile to which it will be linked, the second field (ShoutBox) is the name that will be displayed, and the third field (Hello, world!) is the message that will be displayed.
| This account is no longer in use. Please direct all support to this account. |
|
Charles Stover The Creator (Clone)
     member is offline
![[avatar]](http://gamingmedley.com/_/images/chao.gif)
Joined: Jun 2008 Gender: Male  Posts: 305 Location: California Karma: 6 |  | Censor Words in the ShoutBox « Reply #2 on Oct 8, 2008, 8:03am » | |
Title: Censor Words in the ShoutBox Creator: Charles Stover Cross-Browser: Yes Placement: Directly Above the ProBoards ShoutBox
Code:<script type="text/javascript"><!-- if (typeof(shoutbox) != "object") var shoutbox = new Array(); shoutbox["censors"]= [ ["kiss my ass", "I disagree"], ["my ass", "I disagree"], ["goddamn", "d**n"], ["damn", "d**n"], ["asshole", "not a very nice person"], ["shit", "nuts"], ["shitty", "crappy"], ["shithead", "meathead"], ["fuck", "f**k"], ["fucker", "f**k*r"], ["fucking", "f**k**g"], ["motherfucker", "m*th*rf**k*r"], ["motherfucking", "m*th*rf**k**g"], ["penis", "thingy"], ["cock", "thingy"], ["dick", "thingy"], ["shlong", "thingy"], ["vagina", "girl thingy"], ["pussie", "girl thingy"], ["pussies", "girl thingies"], ["pussy", "girl thingy"], ["cunt", "thingy"], ["poonanny", "poohead"], ["poon", "thingy"], ["twat", "thingy"], ["whore", "sleeper"], ["bitch", "pregnant dog"], ["slut", "very *friendly* person"], ["faggot", "f*g**t"], ["fagget", "f*g**t"], ["fag", "f*g"], ["dike", "d**e"], ["dyke", "d**e"], ["nigger", "black person"] ]; //--></script> |
|
The first field is the word to be censored, and the second field is the word to which the first field censors. For example, "kiss my ass" is censored to "I disagree." You may modify the list as you see fit.
| This account is no longer in use. Please direct all support to this account. |
|
Charles Stover The Creator (Clone)
     member is offline
![[avatar]](http://gamingmedley.com/_/images/chao.gif)
Joined: Jun 2008 Gender: Male  Posts: 305 Location: California Karma: 6 |  | Custom Colors in the ShoutBox « Reply #3 on Oct 8, 2008, 8:03am » | |
Title: Custom Colors in the ShoutBox Creator: Charles Stover Cross-Browser: Yes Placement: Directly Above the ProBoards ShoutBox
Code:<script type="text/javascript"><!-- if (typeof(shoutbox) != "object") var shoutbox = new Array(); shoutbox["colors"] = [ "Black", "White", "Red", "Orange", "Yellow", "Green", "Blue", ["Violet", "#f080f0"] ]; //--></script> |
|
To have a simple color, just put the name of the color. To define the color specifically (via hexidecimal value), put the color in an array (as seen with Violet) where the first value is the color name and the second value is the color to which the message will be set. For a list of the default shoutbox colors, view the Default ShoutBox Colors thread.
| This account is no longer in use. Please direct all support to this account. |
|
Charles Stover The Creator (Clone)
     member is offline
![[avatar]](http://gamingmedley.com/_/images/chao.gif)
Joined: Jun 2008 Gender: Male  Posts: 305 Location: California Karma: 6 |  | Custom Smileys in the ShoutBox « Reply #4 on Oct 8, 2008, 8:03am » | |
Title: Custom Smileys in the ShoutBox Creator: Charles Stover Cross-Browser: Yes Placement: Directly Above the ProBoards ShoutBox
Code:<script type="text/javascript"><!-- if (typeof(shoutbox) != "object") var shoutbox = new Array(); shoutbox["smileys"] = [ ["::)", "http://s4.images.proboards.com/rolleyes.gif"], [":)", "http://s4.images.proboards.com/smiley.gif"], [";)", "http://s4.images.proboards.com/wink.gif"], [":D", "http://s4.images.proboards.com/cheesy.gif"], [";D", "http://s4.images.proboards.com/grin.gif"], [">:(", "http://s4.images.proboards.com/angry.gif"], [":(", "http://s4.images.proboards.com/sad.gif"], [":o", "http://s4.images.proboards.com/shocked.gif"], ["8-)", "http://s4.images.proboards.com/cool.gif"], ["???", "http://s4.images.proboards.com/huh.gif"], [":P", "http://s4.images.proboards.com/tongue.gif"], [":-[", "http://s4.images.proboards.com/embarassed.gif"], [":-X", "http://s4.images.proboards.com/lipsrsealed.gif"], [":-/", "http://s4.images.proboards.com/undecided.gif"], [":-*", "http://s4.images.proboards.com/kiss.gif"], [":'(", "http://s4.images.proboards.com/cry.gif"] ]; //--></script> |
|
The first field is the smiley code to be replaced by a smiley, and the second field is the URL to the smiley image for the smiley code in the first field. For example, is replaced with . You may modify the list as you see fit.
| This account is no longer in use. Please direct all support to this account. |
|
Charles Stover The Creator (Clone)
     member is offline
![[avatar]](http://gamingmedley.com/_/images/chao.gif)
Joined: Jun 2008 Gender: Male  Posts: 305 Location: California Karma: 6 |  | Execute JavaScript Once the ShoutBox Loads « Reply #5 on Oct 8, 2008, 8:03am » | |
Title: Execute JavaScript Once the ShoutBox Loads Creator: Charles Stover (a.k.a. GAMEchief, SegaDragon) Cross-Browser: Yes Placement: Directly Above the ProBoards ShoutBox Requirements: You must be fluent in the language of JavaScript.
Code:<script type="text/javascript"><!--
// Define shoutbox if (typeof(shoutbox) != "object") var shoutbox = new Array();
// Define execute shoutbox["execute"] = new Array();
// Performing a basic function. shoutbox["execute"].push(function() { alert("The ShoutBox has loaded!"); } );
// Sending an argument to the function. // The argument's value is the second item in the array. shoutbox["execute"].push( new Array( function(arg) { alert("Hello, " + arg + "!"); }, "world" // value of `arg` ) );
/* Sending multiple variables to the function. Adding another item to the first array will do nothing. Only the first two items of the first array are used, therefore a secondary array is necessary to send multiple values. The second array can contain as many items as necessary. */ shoutbox["execute"].push( new Array( function(args) { var temp = "How to speak Spanish:", x; for (x = 0; x < args.length; x++) temp += "\n" + x + ": " + args[x]; alert(temp); }, new Array("uno", "dos", "tres", "cuatro", "cinco") ) );
//--></script> |
|
Explanations on how to use shoutboxExec are included in the code via comments. This is how the shoutboxExec variable is parsed, if it helps you further understand:
Code:for (x = 0; x < shoutbox["execute"].length; x++) { if (typeof(shoutbox["execute"][x]) == "object") shoutbox["execute"][x][0](shoutbox["execute"][x][1]); else shoutbox["execute"][x](); } |
|
| This account is no longer in use. Please direct all support to this account. |
|
Charles Stover The Creator (Clone)
     member is offline
![[avatar]](http://gamingmedley.com/_/images/chao.gif)
Joined: Jun 2008 Gender: Male  Posts: 305 Location: California Karma: 6 |  | Change Display Name Colors in the ShoutBox « Reply #6 on Oct 8, 2008, 8:17am » | |
Title: Change Display Name Colors in the ShoutBox Creator: Charles Stover (a.k.a. GAMEchief, SegaDragon) Cross-Browser: Yes Placement: Above the ProBoards ShoutBox
Code:<style type="text/css"><!--
/* Change the admin's colors. */ a.admin { color : #000000; }
td.admin { background-color : #ffffff; }
/* Change the colors of the user who's username is "gamechief" */ a.gamechief { color : Orange; }
td.gamechief { background-color : Navy; }
--></style> |
|
| This account is no longer in use. Please direct all support to this account. |
|
Charles Stover The Creator (Clone)
     member is offline
![[avatar]](http://gamingmedley.com/_/images/chao.gif)
Joined: Jun 2008 Gender: Male  Posts: 305 Location: California Karma: 6 |  | Multi-Colored Display Names in the ShoutBox « Reply #7 on Oct 19, 2008, 7:31am » | |
Title: Multi-Colored Display Names in the ShoutBox Creator: Charles Stover (a.k.a. GAMEchief, SegaDragon) Cross-Browser: Yes Placement: Directly Above the ProBoards ShoutBox
Code:<script type="text/javascript"><!--
// username, color 1, color 2, color 3, ... // supports as many colors as you want var userColors = [ ["admin", "#cc3399", "#66ff66"], ["gamechief", "white", "silver", "gray", "silver"], // example fade effect ["username", "red", "#00ff00", "blue"] ];
if (typeof(shoutbox) != "object") var shoutbox = new Array(); if (typeof(shoutbox["execute"]) == "undefined") shoutbox["execute"] = new Array(); shoutbox["execute"].push( new Array( function(userColors) { var anchs = document.getElementById("shoutbox").getElementsByTagName('a'), a, c, ch; for (c = 0; c < userColors.length; c++) { for (a = 0; a < anchs.length; a++) { if ((anchs[a].getAttribute("href").match("action=viewprofile")) && (anchs[a].getAttribute("href").match("user=" + userColors[c][0]))) { var t, temp = ""; for (t = 0; t < anchs[a].innerHTML.length; t++) { ch = anchs[a].innerHTML.charAt(t); if (ch == '&') { while (anchs[a].innerHTML.charAt(t) != ";") { t++; ch += anchs[a].innerHTML.charAt(t); } } temp += "<span style=\"color : " + userColors[c][(t % (userColors[c].length - 1)) + 1] + ";\">" + ch + "<\/span>"; } anchs[a].innerHTML = temp; } } } }, userColors ) );
//--></script> |
|
| This account is no longer in use. Please direct all support to this account. |
|
Charles Stover The Creator (Clone)
     member is offline
![[avatar]](http://gamingmedley.com/_/images/chao.gif)
Joined: Jun 2008 Gender: Male  Posts: 305 Location: California Karma: 6 |  | Replace Display Name with an Image in the ShoutBox « Reply #8 on Oct 19, 2008, 6:06pm » | |
Title: Replace Display Name with an Image in the ShoutBox Creator: Charles Stover (a.k.a. GAMEchief, SegaDragon) Cross-Browser: Yes Placement: Directly Above the ProBoards ShoutBox
Code:<script type="text/javascript"><!--
// username, URL to image with which to replace the display name var userImages = [ ["admin", "http://s3.images.proboards.com/menu/admin.gif"], ["88088", "http://wimg.co.uk/CGt7va.gif"] ];
if (typeof(shoutbox) != "object") var shoutbox = new Array(); if (typeof(shoutbox["execute"]) == "undefined") shoutbox["execute"]= new Array(); shoutbox["execute"].push( new Array( function(userImages) { var anchs = document.getElementById("shoutbox").getElementsByTagName('a'), a, i; for (i = 0; i < userImages.length; i++) { for (a = 0; a < anchs.length; a++) { if ((anchs[a].getAttribute("href").match("action=viewprofile")) && (anchs[a].getAttribute("href").match("user=" + userImages[i][0]))) anchs[a].innerHTML = "<img alt=\"" + userImages[i][0] + "\" src=\"" + userImages[i][1] + "\" />"; } } }, userImages ) );
//--></script> |
|
| This account is no longer in use. Please direct all support to this account. |
|
Charles Stover The Creator (Clone)
     member is offline
![[avatar]](http://gamingmedley.com/_/images/chao.gif)
Joined: Jun 2008 Gender: Male  Posts: 305 Location: California Karma: 6 |  | Custom BB Code in the ShoutBox « Reply #9 on Oct 19, 2008, 10:14pm » | |
Title: Custom BB Code in the ShoutBox Creator: Charles Stover (a.k.a. GAMEchief, SegaDragon) Cross-Browser: Yes Placement: Directly Above the ProBoards ShoutBox Requirements: You must be fluent in the languages of HTML and JavaScript.
For tags where the code is the same as the HTML (e.g. [b] is <b>, [i] is <i>, etc.), you need only list the letter(s) in the code, which can be seen with b, i, s, sub, sup, tt, and u (<b>, <i>, <s>, <sub>, <sup>, <tt>, and <u>, respectively).
Code:<script type="text/javascript"><!-- if (typeof(shoutbox) != "object") var shoutbox = new Array(); shoutbox["bb-code"] = [ 'b', 'i', 's', "sub", "sup", "tt", 'u' ]; //--></script> |
|
To add a different tag, use an Array, as seen here:
Code:<script type="text/javascript"><!-- if (typeof(shoutbox) != "object") var shoutbox = new Array(); shoutbox["bb-code"] = [ ['b', "<strong>"], ['i', "<em>"], 's', "sub", "sup", "tt", 'u' ]; //--></script> |
|
To add parameters to the BB Code (e.g. [font=Arial]), add %s to the second item in the Array.
Code:<script type="text/javascript"><!-- if (typeof(shoutbox) != "object") var shoutbox = new Array(); shoutbox["bb-code"] = [ ['b', "<strong>"], ["font", "<span style='font-family : %s;'>"], ['i', "<em>"], 's', "sub", "sup", "tt", 'u' ]; //--></script> |
|
The closing tag is automatically determined to be </span>, so you need not worry about that. However, if you choose to add closing tags just to "be safe," it won't hurt anything.
However there are some cases where closing tags may be necessary, such as when using multiple HTML tags.
Code:<script type="text/javascript"><!-- if (typeof(shoutbox) != "object") var shoutbox = new Array(); shoutbox["bb-code"] = [ ['b', "<strong>"], ["bi", "<b><i>", "<\/i><\/b>"], ["font", "<span style='font-family : %s;'>"], ['i', "<em>"], 's', "sub", "sup", "tt", 'u' ]; //--></script> |
|
Notice how [bi] uses both <b> and <i>, and thus requires the third Array item telling it how to close the tag (closing tags in JavaScript requires the backslash-forwardslash instead of just the forwardslash). The third Array item supports the %s parameter, just as the second item does.
| This account is no longer in use. Please direct all support to this account. |
|
Charles Stover The Creator (Clone)
     member is offline
![[avatar]](http://gamingmedley.com/_/images/chao.gif)
Joined: Jun 2008 Gender: Male  Posts: 305 Location: California Karma: 6 |  | Cell Highlight for Display Names in the ShoutBox « Reply #10 on Nov 6, 2008, 7:43pm » | |
Title: Cell Highlight for Display Names in the ShoutBox Creator: Charles Stover (a.k.a. GAMEchief, SegaDragon) Cross-Browser: Yes Placement: Directly Above the ProBoards ShoutBox
Code:<script type="text/javascript"><!--
if (typeof(shoutbox) != "object") var shoutbox = new Array(); if (typeof(shoutbox["execute"]) == "undefined") shoutbox["execute"]= new Array(); shoutbox["execute"].push( function() { var c, cells = document.getElementById("shoutbox").getElementsByTagName("td"); for (c = 0; c < cells.length; c++) { if ((cells[c].getElementsByTagName("a").item(0)) && (cells[c].className.match(/windowbg$/))) { cells[c].onclick = function() { location.href = this.getElementsByTagName("a").item(0).getAttribute("href"); } cells[c].onmouseout = function() { this.setAttribute("class", "windowbg"); this.setAttribute("className", "windowbg"); } cells[c].onmouseover = function() { this.setAttribute("class", "windowbg2"); this.setAttribute("className", "windowbg2"); } cells[c].style.cursor = "pointer"; } } } );
//--></script> |
|
| This account is no longer in use. Please direct all support to this account. |
|
Charles Stover The Creator
     member is offline
![[avatar]](http://u.r-i.ca/gamingmedley/candh.jpg)
Joined: Jun 2008 Gender: Male  Posts: 1,039 Location: California Karma: 19 |  | Decrease Number of Messages Displayed « Reply #11 on Dec 24, 2008, 6:21pm » | |
Title: Decrease Number of Messages Displayed Creator: Charles Stover (a.k.a. GAMEchief, SegaDragon) Cross-Browser: Yes Placement: Directly Above the ProBoards ShoutBox
Code:<script type="text/javascript"><!-- if (typeof(shoutbox) != "object") var shoutbox = new Array(); shoutbox["messages"] = 9; //--></script> |
|
Nine is the maximum number of messages that can be displayed. Setting shoutbox["messages"] to anything greater than nine will automatically revert it back to nine.
Upgraded shoutboxes are allowed to increase the number of messages displayed upon request.
| Add a custom-built-for-ProBoards Arcade or ShoutBox to your forum! flash games - video games |
|
Charles Stover The Creator
     member is offline
![[avatar]](http://u.r-i.ca/gamingmedley/candh.jpg)
Joined: Jun 2008 Gender: Male  Posts: 1,039 Location: California Karma: 19 |  | Disable Global Chat « Reply #12 on Apr 1, 2009, 2:20am » | |
Title: Disable Global Chat Creator: Charles Stover (a.k.a. GAMEchief, SegaDragon) Cross-Browser: Yes Placement: Directly Above the ProBoards ShoutBox
Code:<script type="text/javascript"><!-- if (typeof(shoutbox) != "object") var shoutbox = new Array(); shoutbox["disable-global"] = true; //--></script> |
|
This will prevent your users from accessing the Global chatroom, which can be accessed by clicking the [Global] link at the top left corner of your shoutbox. This is useful for forums that do not approve of vulgarity - such as forums for minors/teens, religious groups, etc. The Global chatroom may not enforce the same rules as your local shoutbox, therefore you may not want your members to access it.
| Add a custom-built-for-ProBoards Arcade or ShoutBox to your forum! flash games - video games |
|
Charles Stover The Creator
     member is offline
![[avatar]](http://u.r-i.ca/gamingmedley/candh.jpg)
Joined: Jun 2008 Gender: Male  Posts: 1,039 Location: California Karma: 19 |  | Change ShoutBox Category Text « Reply #13 on May 8, 2009, 4:54am » | |
Title: Change ShoutBox Category Text Creator: Charles Stover (a.k.a. GAMEchief, SegaDragon) Cross-Browser: Yes Placement: Directly Above the ProBoards ShoutBox
Code:<script type="text/javascript"><!-- if (typeof(shoutbox) != "object") var shoutbox = new Array(); shoutbox["category-text"] = "The ShoutBox"; //--></script> |
|
This will change the category text ("The ShoutBox") in the shoutbox to display whatever you want. Simply change "The ShoutBox" to your desired text, be it "Chatroom," "TalkBox," or the name of your site. Whatever you want it to say is allowed. This will not change the category text while in global. This only changes the local shoutbox text. The global category text is and will remain the rules for the global chat.
| Add a custom-built-for-ProBoards Arcade or ShoutBox to your forum! flash games - video games |
|
Charles Stover The Creator
     member is offline
![[avatar]](http://u.r-i.ca/gamingmedley/candh.jpg)
Joined: Jun 2008 Gender: Male  Posts: 1,039 Location: California Karma: 19 |  | Head/Base Images in ShoutBox « Reply #14 on May 26, 2009, 5:56pm » | |
Title: Head/Base Images for ShoutBox Creator: Charles Stover Cross-Browser: Yes Placement: Directly Above the ProBoards ShoutBox
Code:<script type="text/javascript"><!-- if (typeof(shoutbox) != "object") shoutbox = new Array(); shoutbox["head"] = "URL TO HEAD IMAGE"; shoutbox["foot"] = "URL TO BASE IMAGE"; //--></script> |
|
| Add a custom-built-for-ProBoards Arcade or ShoutBox to your forum! flash games - video games |
| |
|