JUSTIFY BBCODE v1.0
By Karl Benson
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=970) | Comment On This Mod (http://www.simplemachines.org/community/index.php?topic=199203.0)
IntroductionA very simple modification for the use of
bbcode to justify text.
Featureso BBCode Button to Insert
bbcode.
InstallationSimply install the package to install this modification on the Default theme.
This mod will work for both SMF 1.1.x versions
and SMF 2.0.x versions (the beta of which is currently available to Charter Members).
Manual EditA Manual edit will be required for non-default themes to add the BBCode button to the Post.template.php (IF the theme has a custom Post.template.php)
FIND
'left' => array('code' => 'left',
ADD BEFORE
'justify' => array('code' => 'justify', 'before' => '[justify]', 'after' => '[/justify]', 'description' => $txt['justify']),
You will also need to place a copy of the justify.gif in each of your themes bbc image folders (eg Themes/{themename}/images/bbc)
If your using a language different than the ones supported this mod (listed below), then you will need to add the following to the Modifications.{language}.php for each theme (The language folder can be found eg Themes/{themename}/languages/)
If you are using utf8, you will also need to add it to Modifications.{language}-utf8.php
FIND
?>
ADD BEFORE (and translate as necessary the language strings)
$txt['justify'] = 'Justify';
Languageso Supports
- English/English-utf8
- English_British/English_British-utf8
I welcome translations for any languages which SMF Supports.
Please translate the following and post it in the support topic for the mod. Thank You
$txt['justify'] = 'Justify';
SupportPlease use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)
Changelog1.0 - 3rd October 2007o Initial Release per request
it does.
I tested in IE7/FF/Opera
I have reuploaded this mod and screenshots for it.
I am in the process of doing it for ALL my other mods aswell. Please bear with me.