Simple Machine Codes
March 28, 2024, 07:03:47 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Shoutbox (Build B)

Pages: [1] 2   Go Down
  Print  
Author Topic: Shoutbox (Build B)  (Read 3052 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: November 03, 2007, 09:37:22 am »

Build B shoutbox is out!  With alot more featers!

Features on Build B
-Only on the Index
-Allow guests to view or not view shouts.(Guests can't shout) (Firefix Shoutbox Only)
-Either Allow all members to view the Info section, or just certain Members
-Hide The Board for the Shoutbox topic.
-Add the shoutbox to the bottom or top of your forum.  You choose!
-Choose your Own Smileys
-You can Press Enter to shout
-Hide FF/IE/Both Shoutbox's on Page Load
-Collapse/Expand Both shoutbox's
-Shows if the User is online or offline (Firefix Shoutbox Only)

Step One
You will need to create a new board...
Admin >> Boards >> Add Board.

Call the new board "Shoutbox" and put it where ever you would like.
Make sure all the groups can view that board.
If you want, you can have it so that the post count doesn't go up.
Once Added, go to Step 2.

Step 2
Go to the new board you created and look up top at the URL.  You will see somthing like this:
Quote
http://shoutbox.smfforfree3.com/index.php/board,1.0.html
Rembmer that number.
NOTE:  The number will be different than the one above.

Step 3
Now when your in that board, create a new topic.  Call the topic Shoutbox, then, if your not already in the topic, go to it.  Look up at the top at the URL.  You will see somthing like this:
Quote
http://shoutbox.smfforfree3.com/index.php/topic,3.0.html
NOTE:  The number will be different than the one above.

Step 4
Now that you have those steps done, you may add the shoutbox code to your footers.
Where it says BOARD NUMBER in the code, replace it with the number you had in Step 2.
Where is says TOPIC NUMBER in the code, replace it with the number you had in Step 3.

Step 5
Here is the part where you get to sorta customize it.
This is what each of the features are.  These features are mainly for the Firefox Users.

colimg - The Image when the shoutbox is showing.
expimg - The Image when the shoutbox isn't showing.

Change the "0" to a "1" to make it work:
guestview - If set to "1", you can let the guests see the Shouts
hideboard - If set to "1", the Shoutbox board you created wouldn't appear on the index.
collapse - If set to "1", your members can collapse and expand the shoutbox
ffopen - If set to "1", This will have the Firefox Shoutbox automaticly Open (Only if you have Collapse set to "1")
ieopen - If set to "1", This will have the Internet Explorer Shoutbox automaticly Open (Only if you have Collapse set to "1")
ieforff - If set to "1", this will allow the Firefox users see the Internet Explorer Shoutbox.
smileys - If set to "1", your members can use Smileys.  (Only for Firefox Users)

Now find this part in the code:
Code:
smile[smile.length]=["SMILEY IMAGE URL"];
Just replace SMILEY IMAGE URL to what you want the smileys to be.
If you want to add more, just add more of these lines:
Code:
smile[smile.length]=["SMILEY IMAGE URL"];

Step 6
In this step, you will be able to set who you want to see the info, which is a little nifty part of the shoutbox that showes the latest updates.
Look at this part of the code:
Code:
var infos = ["MEMBER"];
Just replace the MEMBER part with a name.  If you want to add more people, just do this:
Code:
var infos = ["MEMBER","MEMBER"];
And So on.
If you want to have it so that everyone can see the info, just leave it like this:
var infos = [""];

Step 7
Here is where you get to choose the IE shoutbox.  Just go to any website, like http://www.cbox.ws to get your own shoutbox for it.
Once you get the code for it, you will need to make sure you take out all the ENTER's.  The code will only work if all of them are out.

Step 8
Now you can choose where you want the shoutbox to be.
When you look at the code, you will see something like this:
Code:
$("#bodyarea").prepend("<span id='shoutboxff'></span>")
$("#bodyarea").after("<span id='shoutboxie'></span>")
The top part is for the Firefox shoutbox, and the bottom is for the Internet Explorer one.
How it is set right now, the FF shoutbox will be at top, and the IE will be at bottom.  I am pretty sure you will want to change it though right?  This is how:
Just replace the little coding above with this:
FF shoutbox on Bottom/IE shoutbox on Top:
Code:
$("#bodyarea").append("<span id='shoutboxff'></span>")
$("#bodyarea").prepend("<span id='shoutboxie'></span>")

Both On top:
Code:
$("#bodyarea").prepend("<span id='shoutboxff'></span>")
$("#bodyarea").prepend("<span id='shoutboxie'></span>")

Both On Bottom:
Code:
$("#bodyarea").append("<span id='shoutboxff'></span>")
$("#bodyarea").append("<span id='shoutboxie'></span>")


Step 9
Add this code into your Footers and Change the information like I mentioned above!
Code:
<script>
var topic = TOPIC NUMBER;
var board = BOARD NUMBER;
var colimg = "http://www.smfboards.com/Themes/SMFone/images/collapse.gif"
var expimg = "http://www.smfboards.com/Themes/SMFone/images/expand.gif"
var guestview = 0;
var hideboard = 1;
var collapse = 1;
var ffopen = 1;
var ieopen = 1;
var ieforff = 1;
var smileys = 1;
var infos = [];
var infos = [""];
var ieusers = 'SHOUTBOX HERE'

smile = new Array();
smile[smile.length]=["SMILEY IMAGE URL"];

$("#bodyarea").prepend("<span id='shoutboxff'></span>")
$("#bodyarea").after("<span id='shoutboxie'></span>")

document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/BuildB.js'><\/script>");
</script>

If you are using a portal on your forum, you will want to use this version of the code:
Code:
<script>
var topic = TOPIC NUMBER;
var board = BOARD NUMBER;
var colimg = "http://www.smfboards.com/Themes/SMFone/images/collapse.gif"
var expimg = "http://www.smfboards.com/Themes/SMFone/images/expand.gif"
var guestview = 0;
var hideboard = 1;
var collapse = 1;
var ffopen = 1;
var ieopen = 1;
var ieforff = 1;
var smileys = 1;
var infos = [];
var infos = [""];
var ieusers = 'SHOUTBOX HERE'

smile = new Array();
smile[smile.length]=["SMILEY IMAGE URL"];

$("#bodyarea").prepend("<span id='shoutboxff'></span>")
$("#bodyarea").after("<span id='shoutboxie'></span>")

document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/BuildBPortal.js'><\/script>");
</script>

There ya go!  I hope you like the code!
If you have any questions about how to set it up, just ask for help.
« Last Edit: May 02, 2008, 04:16:25 pm by Agent Moose » Report Spam   Logged

Share on Facebook Share on Twitter

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #1 on: November 08, 2007, 07:19:54 pm »

I edited the shoutbox to work if you have the portal enabled on your forum.  Everything else is the same, it will just work with the portal:

Code:
<script>
var topic = TOPIC NUMBER;
var board = BOARD NUMBER;
var colimg = "http://www.smfboards.com/Themes/SMFone/images/collapse.gif"
var expimg = "http://www.smfboards.com/Themes/SMFone/images/expand.gif"
var guestview = 0;
var hideboard = 1;
var collapse = 1;
var ffopen = 1;
var ieopen = 1;
var ieforff = 1;
var smileys = 1;
var infos = [];
var infos = [""];
var ieusers = 'SHOUTBOX HERE'

smile = new Array();
smile[smile.length]=["SMILEY IMAGE URL"];

$("#bodyarea").prepend("<span id='shoutboxff'></span>")
$("#bodyarea").after("<span id='shoutboxie'></span>")
</script>
<script src="http://h1.ripway.com/smcodes/Shoutbox/BuildBportal.js"></script>
Report Spam   Logged

ka0tic07v3
Newcomers!

Offline Offline

Posts: 4


View Profile
« Reply #2 on: December 05, 2007, 12:33:21 am »

hello, im new to this whole SMF moding thing. I Put The Code In But It Wont Show On The Forums. Im Currently Using A Version 1.1.4 SFM For Free Board W/ The Newest Firefox.

Here's my code:

Code:
<script>
var topic = 8;
var board = 6;
var colimg = "http://www.smfboards.com/Themes/SMFone/images/collapse.gif"
var expimg = "http://www.smfboards.com/Themes/SMFone/images/expand.gif"
var guestview = 0;
var hideboard = 1;
var collapse = 1;
var ffopen = 1;
var ieopen = 1;
var ieforff = 1;
var smileys = 1;
var infos = [];
var infos = [""];
var ieusers = '<div align="center" id="cboxdiv">
<iframe frameborder="0" width="160" height="305" src="http://www3.cbox.ws/box/?boxid=2826801&boxtag=w7n2zh&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#000000 1px solid;" id="cboxmain"></iframe><br/>
<iframe frameborder="0" width="160" height="75" src="http://www3.cbox.ws/box/?boxid=2826801&boxtag=w7n2zh&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#000000 1px solid;border-top:0px" id="cboxform"></iframe>
</div>'

smile = new Array();
smile[smile.length]=["http://oneshothacks.com/forum/images/smilies/smile.gif"];

$("#bodyarea").prepend("<span id='shoutboxff'></span>")
$("#bodyarea").after("<span id='shoutboxie'></span>")
</script>
<script src="http://h1.ripway.com/smcodes/Shoutbox/BuildB.js"></script>
« Last Edit: December 05, 2007, 12:37:23 am by ka0tic07v3 » Report Spam   Logged
Celebrus
Artificially Conscious
Administrator

Offline Offline

Gender: Male
Posts: 1,337


aka Omikron


View Profile WWW
« Reply #3 on: December 05, 2007, 03:39:52 am »

Code:
<script>
var topic = 8;
var board = 6;
var colimg = "http://www.smfboards.com/Themes/SMFone/images/collapse.gif"
var expimg = "http://www.smfboards.com/Themes/SMFone/images/expand.gif"
var guestview = 0;
var hideboard = 1;
var collapse = 1;
var ffopen = 1;
var ieopen = 1;
var ieforff = 1;
var smileys = 1;
var infos = [];
var infos = [""];
var ieusers = '<div align="center" id="cboxdiv"><iframe frameborder="0" width="160" height="305" src="http://www3.cbox.ws/box/?boxid=2826801&boxtag=w7n2zh&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#000000; 1px solid;" id="cboxmain"></iframe><br/><iframe frameborder="0" width="160" height="75" src="http://www3.cbox.ws/box/?boxid=2826801&boxtag=w7n2zh&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#000000; 1px solid;border-top:0px" id="cboxform"></iframe>
</div>';

smile = new Array();
smile[smile.length]=["http://oneshothacks.com/forum/images/smilies/smile.gif"];

$("#bodyarea").prepend("<span id='shoutboxff'></span>")
$("#bodyarea").after("<span id='shoutboxie'></span>")
</script>
<script src="http://h1.ripway.com/smcodes/Shoutbox/BuildB.js"></script>

Try that. I made some very minor changes.Please give us your forum URL.
Do you have this in your headers?
Code:
<script src="http://YOURFORUM.smfforfreeX.com/jquery.js"></script>
Remember to replace YOURFORUM with whatever is correct for your forum and X with your server number. If you are on server one, there won't be any number.
« Last Edit: December 06, 2007, 02:19:35 pm by Agent Moose » Report Spam   Logged

Celebrus
Artificially Conscious
Administrator

Offline Offline

Gender: Male
Posts: 1,337


aka Omikron


View Profile WWW
« Reply #4 on: December 07, 2007, 07:24:40 am »

Hey Moose, could you make it so it shows the member's avatar next to their posts? Huh?
Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #5 on: December 07, 2007, 02:51:53 pm »

Probably...but I see no use for that...
Report Spam   Logged

ka0tic07v3
Newcomers!

Offline Offline

Posts: 4


View Profile
« Reply #6 on: December 08, 2007, 08:10:05 am »

still not workin Sad my site name is www.h4x0r5.smfforfree4.com
Report Spam   Logged
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #7 on: December 08, 2007, 08:32:05 am »

They don't have the Jquery thing for Server 4 yet.

You will need to use this:
Code:
<script src="http://smctest2.smfforfree3.com"></script>
Report Spam   Logged

ka0tic07v3
Newcomers!

Offline Offline

Posts: 4


View Profile
« Reply #8 on: December 08, 2007, 08:59:49 am »

yo can u just do it real quick plz
Report Spam   Logged
Celebrus
Artificially Conscious
Administrator

Offline Offline

Gender: Male
Posts: 1,337


aka Omikron


View Profile WWW
« Reply #9 on: December 08, 2007, 09:03:59 am »

They don't have the Jquery thing for Server 4 yet.

You will need to use this:
Code:
<script src="http://smctest2.smfforfree3.com"></script>

No, it's there now. I reported it to SMF thinking it was a bug and he installed it then.

http://www.smfsupport.com/support/bugs/server_4_why_somemany_code_do_not_work-t8229.0.html;msg39916#new

Is the topic where I reported it.
Report Spam   Logged

ka0tic07v3
Newcomers!

Offline Offline

Posts: 4


View Profile
« Reply #10 on: December 08, 2007, 01:05:19 pm »

plz moose ill put u admin just sign up and do it kuz i need it for members.
Report Spam   Logged
Agent Moose Jr.
Ultra Contagious
Global Moderator

Offline Offline

Gender: Male
Posts: 1,045



View Profile WWW
« Reply #11 on: December 29, 2007, 01:38:02 pm »

u should just try the xat.com chat u dont have to refresh? its just a thought this is a awesome code but its just a thought
Report Spam   Logged

Newest:

O M G
Newcomers!

Offline Offline

Posts: 1


View Profile
« Reply #12 on: February 21, 2008, 12:24:53 am »

hey,

Can moose install this on my forums please?

Forum address is www.runezap.org  Cheesy
Report Spam   Logged
hcspure
Starter

Offline Offline

Posts: 8


View Profile
« Reply #13 on: February 21, 2008, 11:18:38 pm »

hey,

Can moose install this on my forums please?

Forum address is www.runezap.org  Cheesy

Thats me Btw, MOOSE HELP Sad
Report Spam   Logged
123owned123
100 Club Member

Offline Offline

Posts: 351



View Profile
« Reply #14 on: February 22, 2008, 06:28:14 am »

hcspure...if that you from cheatskape??? if so...omikron agent moose jr and the laundry lady can also help you...

i dont get this code also...ive added it on my forum but i deleted...but great code moose Smiley
Report Spam   Logged

Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy