SMF For Free Support Forum
Signup For Free Forum
July 04, 2009, 11:36:08 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

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  

Pages: [1] 2 3
  Print  
Author Topic: [Code] Shoutbox (Build B)  (Read 5753 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« on: November 03, 2007, 09:56:46 am »

NOTICE:   I Will not give any support on this code Anymore, Sorry.


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
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
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://209.85.62.24/365/94/0/f367135/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://209.85.62.24/365/94/0/f367137/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: June 27, 2009, 05:00:07 pm by Agent Moose » Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!
Coreeeey
SMF For Free Sr. Member
*
Offline Offline

Posts: 310



View Profile WWW
« Reply #1 on: November 03, 2007, 10:33:02 am »

I was wondering, is there a way to moderate this shoutbox such as deleting messages, banning users, muting users, etc?
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« Reply #2 on: November 03, 2007, 10:44:52 am »

If your using the Firefox one, yes.  All the Firefox one is basicly a topic.  Just click the link that says "View SHoutbox Topic" and it will bring you straight to the shoutbox topic where you can edit delete posts.
Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!
Alb0pur3
SMF For Free Newbie
*
Offline Offline

Posts: 17



View Profile
« Reply #3 on: November 24, 2007, 02:13:44 pm »

Theres only one 0 and thats the guest view wheres the 0 to turn it on?
Logged
Coreeeey
SMF For Free Sr. Member
*
Offline Offline

Posts: 310



View Profile WWW
« Reply #4 on: November 24, 2007, 02:28:13 pm »

Will the IE shoutbox ever be like the FF one, instead of having to use cbox?
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« Reply #5 on: November 24, 2007, 10:33:49 pm »

Sorry but no.  If I use iframes for the whole shoutbox(which will make it work for IE and FF), it will make your forum load extreamly slow.
Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!
V.JR
SMF For Free Member
*
Offline Offline

Posts: 54



View Profile WWW
« Reply #6 on: November 26, 2007, 04:47:09 pm »

So if someone used the code for lets say IE only then it wouldn't slow down the forum? Casue I used both FF and IE and it slowed my site dramticly
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« Reply #7 on: November 26, 2007, 08:09:51 pm »

Right now it will slow it down both ways.  But, I am not useing Iframes.  If I do use ifames, the FF shoutbox will work for all browsers, but the iframe part will slow down your forum alot more than it slowes it down.
Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!
figenrable
SMF For Free Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #8 on: January 17, 2008, 07:51:08 am »

 It doesn't work
« Last Edit: January 17, 2008, 09:45:21 am by simply sibyl » Logged
Celebrus
SMF For Free Hero
*
Offline Offline

Posts: 940


λ is awesome


View Profile WWW
« Reply #9 on: January 17, 2008, 08:27:49 am »

Forum URL. We need that to help.
Logged

figenrable
SMF For Free Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #10 on: January 29, 2008, 06:21:41 am »

doesn't work
aneh aneh aje n  Grin Grin
Logged
PyroFox93
SMF For Free Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #11 on: February 16, 2008, 10:45:30 am »

*censored* where is the code???
« Last Edit: February 16, 2008, 11:17:20 am by simply sibyl » Logged
simply sibyl
Global Moderator
*
Offline Offline

Posts: 11806


On vacation until July 6th


View Profile WWW
« Reply #12 on: February 16, 2008, 11:18:29 am »

The code is in the first post.
There is a lot to do to set it up.
You need to read the entire post.
Logged

Some Helpful Links:
Support FAQ | Guides & Tutorials | Tips for Using Support
I do not do support via personal messages
Molly
SMF For Free Full Member
*
Offline Offline

Posts: 142



View Profile WWW
« Reply #13 on: March 15, 2008, 01:58:57 am »

Forum Url: http://druid.smfforfree3.com


This is what I get...what did I miss?
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« Reply #14 on: March 15, 2008, 12:07:52 pm »

That is just saying that you need to update your Shoutbox.  Just copy the URL that is in the box and go there.  Instructions are there Smiley
Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!


Pages: [1] 2 3
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
ServerBeach Coupon
Page created in 0.295 seconds with 17 queries.