We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] BBC codes and images in shoutbox
Topic Started: Nov 19 2011, 09:34 PM (1,899 Views)
Quantom X
Member Avatar
got game?
[ *  *  * ]
Board Address:
Board Software: ZetaBoards
Description: Alow for BBC to work in the shoutbox such as bold, italics, and images.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Those already work in the shoutbox, if I'm not mistaken. You can also add this code so that they appear there as well.
Offline Profile Goto Top
 
Quantom X
Member Avatar
got game?
[ *  *  * ]
Thanks. And no, it's not included... not on my board anyways.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
The bold and italic tag already works in the shoutbox, you just have to insert the BBCode manually.

Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
$('#shoutpost p:first').prepend('<div style="margin-bottom: 5px"><button onclick="ZetaTag(\'B\')" accesskey="b" name="B" type="button"><strong>B</strong></button> <button onclick="ZetaTag(\'I\')" accesskey="i" name="I" type="button"><em>I</em></button> <button onclick="ZetaTag(\'U\')" accesskey="u" name="U" type="button"><u>U</u></button> <button onclick="ZetaTag(\'S\')" accesskey="s" name="S" type="button"><del>S</del></button> <select onchange="ZetaSelect(this,\'COLOR\')" name="fcolor"><option value="" selected="selected">Color</option><option value="#000">Black</option><option value="#fff">White</option><option value="#ee4a2d">Red</option><option value="#fb8a00">Orange</option><option value="#fe0">Gold</option><option value="#090">Green</option><option value="#80a0ff">Light Blue</option><option value="#5a70b3">Blue</option><option value="#9300C4">Purple</option></select></div>');
$('input[name=shouttext]').attr('name', 'post').closest('form').attr('name', 'posting');
</script>
That will add BBCode buttons to the shoutbox for bold, italic, underline, strike-through, and color.
Code:
 
<script type='text/javascript'>
$('#shoutbox dd').each(function(){
$(this).html($(this).html().replace(/\[img](.+?)\[\/img\]/gi,"<img src='$1' />"));
});
</script>
That will allow the image tag, but it's probably not recommended images be allowed due to the size of the shoutbox.
Offline Profile Goto Top
 
Quantom X
Member Avatar
got game?
[ *  *  * ]
Okay, I got the img ones working. But I can't get it to show bold and itaclis. Look at the shout box.
http://s4.zetaboards.com/Shadow_Moses_Society/index/
I've tried it on FireFox and Safari but doesn't work...
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
You probably have BBCode disabled.

Admin CP Posted Image Board Customization Posted Image Shoutbox Posted Image Allow BBCode in messages?

Check to see if that's enabled.
Offline Profile Goto Top
 
Quantom X
Member Avatar
got game?
[ *  *  * ]
Derp, guest can't see the shoutbox... fixed
Okay, thanks. It's working now. ^^;
Edited by Quantom X, Nov 19 2011, 09:58 PM.
Offline Profile Goto Top
 
Brendan
Member Avatar


Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic