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 ] Align Left BBCode
Topic Started: Jan 10 2015, 10:16 PM (197 Views)
Kankuro
Member Avatar
かんくろ
[ *  *  *  *  * ]
Test board
Zeta

I know this sounds dumb, but I have all the text centered by default. So can anybody give me a align left BBCode that will display in the BBCode bar, work in fast replies, inbox, sigs, etc, etc?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Try this:
Code:
 
<script type="text/javascript">
// <![CDATA[
$('#c_bbcode button[name="Center"]').before('<button type="button" onclick="ZetaTag(\'left\')">Left Align</button> ');

$('td:contains([left]):not(:has(textarea)), div.search_results:contains([left])').each(function() {
$(this).html($(this).html().replace(/\[left\](.+?)\[\/left\]/ig, '<span style="display: block; text-align: left">$1</span>'));
});
// ]]>
</script>
Offline Profile Goto Top
 
Kankuro
Member Avatar
かんくろ
[ *  *  *  *  * ]
Works, can you add a button for it though?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Do you have the Center Align or Right Align button displayed by default?
Offline Profile Goto Top
 
Kankuro
Member Avatar
かんくろ
[ *  *  *  *  * ]
Cory
Jan 16 2015, 03:08 PM
Do you have the Center Align or Right Align button displayed by default?
Nvm, I didn't even notice that. I was looking for it beside where most new BBcodes go (At the end of the table). Sorry about that.
Offline Profile Goto Top
 
Helena
Member Avatar
M is for Mod

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