Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Nibogo on April 16, 2008, 11:33:23 PM

Title: Justify BBCode
Post by: Nibogo on April 16, 2008, 11:33:23 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpacks.com%2Fimagenes%2Fnuevo_logo_mod.png&hash=2daa61076ed8f0f60f0c644dc6087aa62fb85c81) (http://www.smfpacks.com)

Justify BBCODE v2.3.2 - NIBOGO (http://www.smfpacks.com/)
A very simple modification for the use of
bbcode to justify text
[/color]

Support topic (http://www.simplemachines.org/community/index.php?topic=234634.0) | Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1166) | Website (http://www.smfpacks.com) |  Donate (http://www.smfpacks.com/donate.php)
| PRO Version - Advanced Editor (http://www.smfpacks.com/wysiwyg)


Important Info:
o This Mod was created by SMFPacks.com - The #1 Website for the Customziation of your SMF.

SMFPacks.com Provides Other Great Packages:
- Reason for Editing Mod.
- Yet Another Global Announcements Mod.
- SMF Social Groups.
- SMF Links Directory.
- SMF Downloads Directory.
- SMF Dynamic Directory.
- Advanced Topic Prefix Mod.
- Advanced Invitations System.
- Move Topic Notification.
- PM to New Members.
- Permissions Info.
- Next Post Level.
- Karma Buttons.
- SMF Multi Quote.
- Attachments in Topics.
- and much more visit us on SMFPacks.com


Additional author:
:
NIBOGO (http://www.smfpacks.com/)

Original author:
:
karlbenson (http://www.simplemachines.org/community/index.php?action=profile;u=63186)

Features:
o BBCode Button to Insert
bbcode.
o Support SMF 2.0 X Version and 1.1.X

Languages:
- English/English-utf8
- English_British/English_British-utf8
- Spanish/Spanish-utf8
-Dutch
-Hungarian
-Brazilian/utf8
-Portuguese/utf8

I welcome translations for any language, please post it on the support topic.

$txt['justify'] = 'Justify';

Compatibility:
- 2.0
- 1.1.14


Changelogs:

2.3.2 - 29 July 2011
o Updated for SMF 2.0 and 1.1.14

2.3 - 01 October 2010
o Developer changed to NIBOGO

2.3 - 21 January 2010
o  Take over by 130860
o Added support for SMF 2.0RC2 and 1.1.11
o Added the following languages:
-Dutch
-Hungarian
-Brazilian/utf8
-Portuguese/utf8

2.2 - 08 October 2009
o Added support for SMF 1.1.10

2.1.2 - 12 Febraury 2008
o Added support for SMF 2.0 RC1 and above versions
o Added a new readme layout :P

2.1 - 08 October 2008
o Added support for SMF 2.0 BETA 4 & SMF 1.1.6
o Fixed a readme text error

2.0 - 16 July 2008
o Added support for SMF 2.0

1.1 - 15 April 2008
o French and spanish translations
o Added an instructions page for manual edit
o NIBOGO take the mod , originally developed by karlbenson (http://www.simplemachines.org/community/index.php?action=profile;u=63186)

1.0 - 3rd October 2007
o Initial Release per request
Title: Re: Justify BBCode
Post by: Apllicmz on April 17, 2008, 01:13:26 AM
Man talk to suport to remove that msg

This is an outdated mod that is no longer supported by its author. Use at your own risk


translate portugues..

<file name="$themedir/languages/Modifications.portuguese.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['justify'] = 'Justificar';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.portuguese-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['justify'] = 'Justificar';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['justify'] = 'Justificar';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.brazilian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['justify'] = 'Justificar';
]]></add>
</operation>
</file>
Title: Re: Justify BBCode
Post by: karlbenson on April 17, 2008, 02:04:12 PM
NIBOGO is linking to the wrong mod/ mod ;)

Link to Mod | Comment On This Mod need to be changed.

NIBOGO has taken over my Justify mod.
The actual mod link is
http://custom.simplemachines.org/mods/index.php?mod=1166.0
Title: Re: Justify BBCode
Post by: Nibogo on April 17, 2008, 08:48:20 PM
Quote from: joomlamz on April 17, 2008, 01:13:26 AM
Man talk to suport to remove that msg

This is an outdated mod that is no longer supported by its author. Use at your own risk


translate portugues..

<file name="$themedir/languages/Modifications.portuguese.php" error="skip">
   <operation>
      <search position="end" />
         <add><![CDATA[
$txt['justify'] = 'Justificar';
]]></add>
   </operation>
</file>
<file name="$themedir/languages/Modifications.portuguese-utf8.php" error="skip">
   <operation>
      <search position="end" />
         <add><![CDATA[
$txt['justify'] = 'Justificar';
]]></add>
   </operation>
</file>
<file name="$themedir/languages/Modifications.brazilian.php" error="skip">
   <operation>
      <search position="end" />
         <add><![CDATA[
$txt['justify'] = 'Justificar';
]]></add>
   </operation>
</file>
<file name="$themedir/languages/Modifications.brazilian-utf8.php" error="skip">
   <operation>
      <search position="end" />
         <add><![CDATA[
$txt['justify'] = 'Justificar';
]]></add>
   </operation>
</file>


Thanks this gonna be part of the v1.2 version  :D

Quote from: karlbenson on April 17, 2008, 02:04:12 PM
NIBOGO is linking to the wrong mod/ mod ;)

Link to Mod | Comment On This Mod need to be changed.

NIBOGO has taken over my Justify mod.
The actual mod link is
http://custom.simplemachines.org/mods/index.php?mod=1166.0 (http://custom.simplemachines.org/mods/index.php?mod=1166.0)

:o :o i am editing the info right now
Title: Re: Justify BBCode
Post by: jkdove on May 25, 2008, 07:11:53 PM
This mod is Soooooo welcome. Thank you So much
Title: Re: Justify BBCode
Post by: Nibogo on May 27, 2008, 06:30:55 PM
Quote from: jkdove on May 25, 2008, 07:11:53 PM
This mod is Soooooo welcome. Thank you So much

All the credits are for the original mod author karlbenson ;)
Title: Re: Justify BBCode
Post by: karlbenson on May 27, 2008, 08:23:13 PM
And thankyou for taking it over ;)
Title: Re: Justify BBCode
Post by: Sudhakar Arjunan on July 27, 2008, 03:00:21 PM
Hi NIBOGO,

Thanks for this good mod.

Have installed it. While installing had test failed with modsettings.php .

And i have modified it manually.

Went to the Affiliates link and filled the form and click save. - it redirected me to basic feature button and not saving and no output in forum index.

What could have caused this issue.
Title: Re: Justify BBCode
Post by: Nibogo on July 27, 2008, 10:35:47 PM
Quote from: asudhakar on July 27, 2008, 03:00:21 PM
Hi NIBOGO,

Thanks for this good mod.

Have installed it. While installing had test failed with modsettings.php .

And i have modified it manually.

Went to the Affiliates link and filled the form and click save. - it redirected me to basic feature button and not saving and no output in forum index.

What could have caused this issue.

This is the support topic of the justify bbcode xD

Support for affiliates mod:

http://www.simplemachines.org/community/index.php?topic=251654.0
Title: Re: Justify BBCode
Post by: Sabre™ on September 12, 2008, 09:35:59 PM
Hi mate :)

What does this actually do?
Allow you to post something from a site named Justify or something?
Title: Re: Justify BBCode
Post by: Nibogo on September 12, 2008, 09:45:37 PM
Quote from: Sabre™ on September 12, 2008, 09:35:59 PM
Hi mate :)

What does this actually do?
Allow you to post something from a site named Justify or something?

See the screenshot added in the page of the mod ;)

This mod justify the text with the bbcode:
Text
Title: Re: Justify BBCode
Post by: Sabre™ on September 12, 2008, 09:56:44 PM
hahaa
did you just add that picture now? lol
Maybe show some normal text in the image aswell.
It took me a sec to understand that it adds that background.
Kind of hi lighting the chosen text, like the <code> function.

Cheers for the reply mate :)
And thanks to you both :P  lol

Edit: Off topic a bit.
Is there a section where your "reflection" mod is discussed?
It hasnt been approved yet, and I was wonderin if it is the same as [THIS] (http://www.simplemachines.org/community/index.php?topic=212526.0)
Cheers
Title: Re: Justify BBCode
Post by: Nibogo on October 07, 2008, 08:09:51 PM
Justify BBCODE v2.1

o Added support for SMF 2.0 BETA 4 & SMF 1.1.6
o Fixed a readme text error
Title: Re: Justify BBCode
Post by: Costa on October 18, 2008, 09:12:25 AM
Hello Folks!

Translation to Brazilian
Modifications.brazilian.php$txt['justify'] = 'Justificar';

Gracias NIBOGO
Title: Re: Justify BBCode
Post by: Ashdaw on February 12, 2009, 07:22:32 AM
Tried to install on my NEWLY updated version 2 forum and won't let me add this mod through package manager?? Is this able to be installed on RC1? or am I doing something wrong?

Thanks in advance :D
Title: Re: Justify BBCode
Post by: Nibogo on February 12, 2009, 06:23:53 PM
Quote from: Ashdaw on February 12, 2009, 07:22:32 AM
Tried to install on my NEWLY updated version 2 forum and won't let me add this mod through package manager?? Is this able to be installed on RC1? or am I doing something wrong?

Thanks in advance :D

New package uploaded supporting SMF 2.0 RC1
Title: Re: Justify BBCode
Post by: Ashdaw on February 13, 2009, 05:42:07 AM
Muchas gracias señor. :)
Title: Re: Justify BBCode
Post by: Nibogo on February 13, 2009, 02:51:14 PM
Quote from: Ashdaw on February 13, 2009, 05:42:07 AM
Muchas gracias señor. :)

Don't call me Sr I am 16 :P

You are welcome
Title: Re: Justify BBCode
Post by: masiero on February 17, 2009, 01:54:34 PM
me da error en el
Quote
Executar Modificación     ./Sources/ModSettings.php     Prueba fallida


q tengo q ace??
Title: Re: Justify BBCode
Post by: Nibogo on February 17, 2009, 05:21:17 PM
Quote from: masiero on February 17, 2009, 01:54:34 PM
me da error en el
Quote
Executar Modificación     ./Sources/ModSettings.php     Prueba fallida


q tengo q ace??

Manual Edit / Edicion Manual
Title: Re: Justify BBCode
Post by: Grimedth on March 14, 2009, 03:16:21 PM

Hi :)

Translation to Hungarian:
$txt['justify'] = 'Sorkizárt';
Title: Re: Justify BBCode
Post by: Nibogo on March 14, 2009, 06:35:59 PM
Thanks
Title: Re: Justify BBCode
Post by: LiBen on June 11, 2009, 07:02:11 AM
Translation to Dutch:

$txt['justify'] = 'Uitvullen';

Title: Re: Justify BBCode
Post by: IvoLeite on August 04, 2009, 08:23:22 AM
Translation to Portuguese:
$txt['justify'] = 'Justificar';
Title: Re: Justify BBCode
Post by: Nibogo on August 04, 2009, 03:12:26 PM
Thanks both, I will add the translations in the next release
Title: Re: Justify BBCode
Post by: shakaran on August 25, 2009, 11:24:31 PM
Hi, I made the translations for the mod Minimun Characters or Words (http://custom.simplemachines.org/mods/index.php?mod=1528)  with spanish, spanish-utf8, spanish_es, spanish_es-utf8.

I attached a file.

<?xml version="1.0"?>

<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">

<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">

<id>NIBOGO:mincharwordsmod</id>

<version>1.0</version>

<file name="$languagedir/Modifications.english-utf8.php"error="skip">

<operation>

<search position="end" />

<add><![CDATA[//Minimun Characters or Words Mod

$txt['minWordLen'] = 'Minimum words per post';

$txt['minwords_mod'] = 'words';

$txt['minChar'] = 'Minimum characters per post';

$txt['minchars_mod'] = 'characters';

$txt['minmod_zero'] = '0 for no minimum.';

$txt['minAdminLen'] = 'Ignore the minimun characters or words of Admins';

$txt['error_minWordLen'] = 'The message does not meet the minimum word requirements (' . $modSettings['minWordLen'] . ' words).';

$txt['error_minChar'] = 'The message does not meet the minimum character requirements (' . $modSettings['minChar'] . ' characters).';]]></add>

</operation>

</file>

<file name="$languagedir/Modifications.english.php">

<operation>

<search position="end" />

<add><![CDATA[//Minimun Characters or Words Mod

$txt['minWordLen'] = 'Minimum words per post';

$txt['minwords_mod'] = 'words';

$txt['minChar'] = 'Minimum characters per post';

$txt['minchars_mod'] = 'characters';

$txt['minmod_zero'] = '0 for no minimum.';

$txt['minAdminLen'] = 'Ignore the minimun characters or words of Admins';

$txt['error_minWordLen'] = 'The message does not meet the minimum word requirements (' . $modSettings['minWordLen'] . ' words).';

$txt['error_minChar'] = 'The message does not meet the minimum character requirements (' . $modSettings['minChar'] . ' characters).';]]></add>

</operation>

</file>

<file name="$languagedir/Modifications.spanish_latin-utf8.php" error="skip">

<operation>

<search position="end" />

<add><![CDATA[//Minimun Characters or Words Mod

$txt['minWordLen'] = 'M&iacute;nima cantidad de palabras por post';

$txt['minwords_mod'] = 'palabras';

$txt['minChar'] = 'M&iacute;nima cantidad de caracteres por post';

$txt['minchars_mod'] = 'caracteres';

$txt['minmod_zero'] = '0 para no poner l&iacute;mite.';

$txt['minAdminLen'] = 'Ignorar el m&iacute;nimo de caracteres o palabras de administradores';

$txt['error_minWordLen'] = 'El mensaje no tiene la cantidad m&iacute;nima de palabras requeridas: (' . $modSettings['minWordLen'] . ' palabras).';

$txt['error_minChar'] = 'El mensaje no tiene la cantidad m&iacute;nima de caracteres requeridos (' . $modSettings['minChar'] . ' caracteres).';]]></add>

</operation>

</file>

<file name="$languagedir/Modifications.spanish_latin.php" error="skip">

<operation>

<search position="end" />

<add><![CDATA[//Minimun Characters or Words Mod

$txt['minWordLen'] = 'Mínima cantidad de palabras por post';

$txt['minwords_mod'] = 'palabras';

$txt['minChar'] = 'Mínima cantidad de caracteres por post';

$txt['minchars_mod'] = 'caracteres';

$txt['minmod_zero'] = '0 para no poner límite.';

$txt['minAdminLen'] = 'Ignorar el mínimo de caracteres o palabras de administradores';

$txt['error_minWordLen'] = 'El mensaje no tiene la cantidad mínima de palabras requeridas: (' . $modSettings['minWordLen'] . ' palabras).';

$txt['error_minChar'] = 'El mensaje no tiene la cantidad mínima de caracteres requeridos (' . $modSettings['minChar'] . ' caracteres).';]]></add>

</operation>

</file>

    <file name="$languagedir/Modifications.spanish-utf8.php" error="skip">

<operation>

<search position="end" />

<add><![CDATA[//Minimun Characters or Words Mod

$txt['minWordLen'] = 'M&iacute;nima cantidad de palabras por post';

$txt['minwords_mod'] = 'palabras';

$txt['minChar'] = 'M&iacute;nima cantidad de caracteres por post';

$txt['minchars_mod'] = 'caracteres';

$txt['minmod_zero'] = '0 para no poner l&iacute;mite.';

$txt['minAdminLen'] = 'Ignorar el m&iacute;nimo de caracteres o palabras de administradores';

$txt['error_minWordLen'] = 'El mensaje no tiene la cantidad m&iacute;nima de palabras requeridas: (' . $modSettings['minWordLen'] . ' palabras).';

$txt['error_minChar'] = 'El mensaje no tiene la cantidad m&iacute;nima de caracteres requeridos (' . $modSettings['minChar'] . ' caracteres).';]]>

</add>

</operation>

</file>

<file name="$languagedir/Modifications.spanish.php" error="skip">

<operation>

<search position="end" />

<add><![CDATA[//Minimun Characters or Words Mod

$txt['minWordLen'] = 'Mínima cantidad de palabras por post';

$txt['minwords_mod'] = 'palabras';

$txt['minChar'] = 'Mínima cantidad de caracteres por post';

$txt['minchars_mod'] = 'caracteres';

$txt['minmod_zero'] = '0 para no poner límite.';

$txt['minAdminLen'] = 'Ignorar el mínimo de caracteres o palabras de administradores';

$txt['error_minWordLen'] = 'El mensaje no tiene la cantidad mínima de palabras requeridas: (' . $modSettings['minWordLen'] . ' palabras).';

$txt['error_minChar'] = 'El mensaje no tiene la cantidad mínima de caracteres requeridos (' . $modSettings['minChar'] . ' caracteres).';]]></add>

</operation>

</file>

    <file name="$languagedir/Modifications.spanish_es-utf8.php"error="skip">

<operation>

<search position="end" />

<add><![CDATA[//Minimun Characters or Words Mod

$txt['minWordLen'] = 'M&iacute;nima cantidad de palabras por post';

$txt['minwords_mod'] = 'palabras';

$txt['minChar'] = 'M&iacute;nima cantidad de caracteres por post';

$txt['minchars_mod'] = 'caracteres';

$txt['minmod_zero'] = '0 para no poner l&iacute;mite.';

$txt['minAdminLen'] = 'Ignorar el m&iacute;nimo de caracteres o palabras de administradores';

$txt['error_minWordLen'] = 'El mensaje no tiene la cantidad m&iacute;nima de palabras requeridas: (' . $modSettings['minWordLen'] . ' palabras).';

$txt['error_minChar'] = 'El mensaje no tiene la cantidad m&iacute;nima de caracteres requeridos (' . $modSettings['minChar'] . ' caracteres).';]]></add>

</operation>

</file>

<file name="$languagedir/Modifications.spanish_es.php"error="skip">

<operation>

<search position="end" />

<add><![CDATA[//Minimun Characters or Words Mod

$txt['minWordLen'] = 'Mínima cantidad de palabras por post';

$txt['minwords_mod'] = 'palabras';

$txt['minChar'] = 'Mínima cantidad de caracteres por post';

$txt['minchars_mod'] = 'caracteres';

$txt['minmod_zero'] = '0 para no poner límite.';

$txt['minAdminLen'] = 'Ignorar el mínimo de caracteres o palabras de administradores';

$txt['error_minWordLen'] = 'El mensaje no tiene la cantidad mínima de palabras requeridas: (' . $modSettings['minWordLen'] . ' palabras).';

$txt['error_minChar'] = 'El mensaje no tiene la cantidad mínima de caracteres requeridos (' . $modSettings['minChar'] . ' caracteres).';]]></add>

</operation>

</file>

<file name="$sourcedir/ManagePosts.php">

<operation>

<search position="replace"><![CDATA[// All, next/prev...

array('int', 'enableAllMessages', 'postinput' => $txt['manageposts_posts'], 'subtext' => $txt['enableAllMessages_zero']),

array('check', 'disableCustomPerPage'),

array('check', 'enablePreviousNext'),]]></search>

<add><![CDATA[// All, next/prev...

array('int', 'enableAllMessages', 'postinput' => $txt['manageposts_posts'], 'subtext' => $txt['enableAllMessages_zero']),

array('check', 'disableCustomPerPage'),

array('check', 'enablePreviousNext'),

'',

        array('int', 'minWordLen', 'postinput' => $txt['minwords_mod'], 'subtext' => $txt['minmod_zero']),

    array('int', 'minChar', 'postinput' => $txt['minchars_mod'], 'subtext' => $txt['minmod_zero']),

                array('check', 'minAdminLen'),]]></add>

</operation>

</file>

<file name="$sourcedir/Post.php">

<operation>

<search position="replace"><![CDATA[// Check the subject and message.

if (!isset($_POST['subject']) || $smcFunc['htmltrim']($smcFunc['htmlspecialchars']($_POST['subject'])) === '')

$post_errors[] = 'no_subject';

if (!isset($_POST['message']) || $smcFunc['htmltrim']($smcFunc['htmlspecialchars']($_POST['message']), ENT_QUOTES) === '')

$post_errors[] = 'no_message';

elseif (!empty($modSettings['max_messageLength']) && $smcFunc['strlen']($_POST['message']) > $modSettings['max_messageLength'])

$post_errors[] = 'long_message';]]></search>

<add><![CDATA[if (!empty($modSettings['minWordLen']) && (!empty($modSettings['minAdminLen'])))

        {

        $Temp = trim(preg_replace('~[^a-z0-9 ]~si', '', $_POST['message']));

        $Temp = preg_replace('~(( )+)~si', ' ', $Temp);

        $WordArr = explode(' ', $Temp);

        if ((count($WordArr) < (int)$modSettings['minWordLen']) && (!$context['user']['is_admin']))

        $post_errors[] = 'minWordLen';

        }

        elseif (!empty($modSettings['minWordLen']) && (empty($modSettings['minAdminLen'])))

         {

        $Temp = trim(preg_replace('~[^a-z0-9 ]~si', '', $_POST['message']));

        $Temp = preg_replace('~(( )+)~si', ' ', $Temp);

        $WordArr = explode(' ', $Temp);

        if (count($WordArr) < (int)$modSettings['minWordLen'])

        $post_errors[] = 'minWordLen';

        }   



        if (!empty($modSettings['minChar']) && (!empty($modSettings['minAdminLen'])))

        {

        if (($smcFunc['strlen']($_POST['message']) < (int)$modSettings['minChar']) && (!$context['user']['is_admin']))

           $post_errors[] = 'minChar';

}

        elseif (!empty($modSettings['minChar']) && (empty($modSettings['minAdminLen'])))

        {

        if (($smcFunc['strlen']($_POST['message']) < (int)$modSettings['minChar']))

           $post_errors[] = 'minChar';



 

// Check the subject and message.

if (!isset($_POST['subject']) || $smcFunc['htmltrim']($smcFunc['htmlspecialchars']($_POST['subject'])) === '')

$post_errors[] = 'no_subject';

if (!isset($_POST['message']) || $smcFunc['htmltrim']($smcFunc['htmlspecialchars']($_POST['message']), ENT_QUOTES) === '')

$post_errors[] = 'no_message';

elseif (!empty($modSettings['max_messageLength']) && $smcFunc['strlen']($_POST['message']) > $modSettings['max_messageLength'])

$post_errors[] = 'long_message';]]></add>

</operation>

</file>

</modification>


Title: Re: Justify BBCode
Post by: Nibogo on August 26, 2009, 03:33:01 PM
This isn't the topic for that mod and thanks
Title: Re: Justify BBCode
Post by: shakaran on August 26, 2009, 07:13:53 PM
Oh sorry NIBOGO! But the link on http://custom.simplemachines.org/mods/index.php?mod=1528 with the text "support topic" just link here. Maybe you should check it.

Regards
Title: Re: Justify BBCode
Post by: wladymeer on August 29, 2009, 06:40:12 AM
Is it somehow possible to make all posts justified even before they start typing anything?

In other words, which files I should edit to make posts auto-justified? :)
Title: Re: Justify BBCode
Post by: Nibogo on August 29, 2009, 11:25:43 AM
Quote from: wladymeer on August 29, 2009, 06:40:12 AM
Is it somehow possible to make all posts justified even before they start typing anything?

In other words, which files I should edit to make posts auto-justified? :)

Display.template.php or Display.php
Title: Re: Justify BBCode
Post by: JailsonBR on December 11, 2009, 05:32:23 AM
upgrade for SMF 2.0 RC2 please  :'(
Title: Re: Justify BBCode
Post by: Yahmez on December 22, 2009, 08:37:36 PM
Quote from: JailsonBR on December 11, 2009, 05:32:23 AM
upgrade for SMF 2.0 RC2 please  :'(

Unzip the package, and edit two files

1) smf-2.x.xml

Find:
<file name="$sourcedir/Subs-Editor.php">
    <operation>
        <search position="after"><![CDATA['left' => array('code' => 'left', 'before' => '[left]', 'after' => '[/left]', 'description' => $txt['left_align']),]]></search>
        <add><![CDATA[
            'justify' => array('code' => 'justify', 'before' => '[justify]', 'after' => '[/justify]', 'description' => $txt['justify']),
]]></add>
    </operation>
</file>


Replace with:
    <file name="$sourcedir/Subs-Editor.php">
        <operation>
            <search position="after"><![CDATA[            array(
                'image' => 'left',
                'code' => 'left',
                'before' => '[left]',
                'after' => '[/left]',
                'description' => $txt['left_align']
            ),]]></search>
            <add><![CDATA[            array(
                'image' => 'justify',
                'code' => 'justify',
                'before' => '[justify]',
                'after' => '[/justify]',
                'description' => $txt['justify']
            ),]]></add>
        </operation>
       </file>


2) package-info.xml

Find:
<install for="2.0 - 2.0.99">

Replace with:
<install for="2.0 RC2">

Find:
<uninstall for="2.0 - 2.0.99">

Replace with:
<uninstall for="2.0 RC2">

Re zip the files and it works for 2.0 RC2  :)
Title: Re: Justify BBCode
Post by: Nibogo on December 29, 2009, 01:25:15 PM
The Yahmez code works but anyway I'll update the package as soon as I have some time
Title: Re: Justify BBCode
Post by: mirahalo on January 21, 2010, 04:49:15 PM
this mod has been officially taken by me, here's the change log:

Change logs:

2.3 - 21 January 2010
o  Take over by 130860
o Added support for SMF 2.0RC2 and 1.1.11
o Added the following languages:
-Dutch
-Hungarian
-Brazilian/utf8
-Portuguese/utf8


2.2 - 08 October 2009
o Added support for SMF 1.1.10

2.1.2 - 12 Febraury 2008
o Added support for SMF 2.0 RC1 and above versions
o Added a new readme layout :P

2.1 - 08 October 2008
o Added support for SMF 2.0 BETA 4 & SMF 1.1.6
o Fixed a readme text error

2.0 - 16 July 2008
o Added support for SMF 2.0

1.1 - 15 April 2008
o French and spanish translations
o Added an instructions page for manual edit
o NIBOGO take the mod , originally developed by karlbenson (http://www.simplemachines.org/community/index.php?action=profile;u=63186)

1.0 - 3rd October 2007
o Initial Release per request
Title: Re: Justify BBCode
Post by: Bugo on January 22, 2010, 12:33:01 PM
Russian translation:

// Justify BBCode
$txt['justify'] = 'По ширине';
Title: Re: Justify BBCode
Post by: mirahalo on January 22, 2010, 01:01:21 PM
thanks I will add it as soon as I can, does it work with russian-utf8 too?
Title: Re: Justify BBCode
Post by: Bugo on January 22, 2010, 02:00:29 PM
Of course but you need to make 2 files to install - one in utf8 without BOM (e.z. russian-utf8.xml), another in windows 1251 (simple russian.xml)
Title: Re: Justify BBCode
Post by: mirahalo on January 22, 2010, 08:21:04 PM
ok, cool, I'll add it as soon as possible, thanks.
Title: Re: Justify BBCode
Post by: 3wasef on January 28, 2010, 09:31:41 AM
Translation to Arabic


$txt['justify'] = 'تنسيق';

Attachment file included  :D
Title: Re: Justify BBCode
Post by: mirahalo on January 28, 2010, 10:05:08 AM
many thanks!   I will add it as son as I can ;)
Title: Re: Justify BBCode
Post by: petesky on March 09, 2010, 04:26:16 AM
Any chance for RC3 support :-) Thx
Title: Re: Justify BBCode
Post by: mirahalo on March 09, 2010, 09:18:15 AM
lol  I didn't even know the RC3 was out :P   thanks for letting me know, of course I will update this an my other mods to RC3 ;)
Title: Re: Justify BBCode
Post by: aw06 on March 17, 2010, 08:41:26 PM
Nice Mod, this should be default in SMF
Title: Re: Justify BBCode
Post by: Arantor on March 17, 2010, 08:44:07 PM
Quote from: aw06 on March 17, 2010, 08:41:26 PM
Nice Mod, this should be default in SMF

Any particular reason?
Title: Re: Justify BBCode
Post by: aw06 on March 17, 2010, 08:45:36 PM
Quote from: Arantor on March 17, 2010, 08:44:07 PM
Quote from: aw06 on March 17, 2010, 08:41:26 PM
Nice Mod, this should be default in SMF

Any particular reason?

lol ... why have left center right and no justify, the fact that we are composing text would warrant the need for it at some point in time
Title: Re: Justify BBCode
Post by: Arantor on March 17, 2010, 08:48:25 PM
Even forums with it installed by default don't really use it, hence my asking.
Title: Re: Justify BBCode
Post by: aw06 on March 17, 2010, 08:51:12 PM
Quote from: Arantor on March 17, 2010, 08:48:25 PM
Even forums with it installed by default don't really use it, hence my asking.

And you know this how ?? I have a forum where people post tones of articles and they were dying for this...

Reformatted text is what nobody uses
  :-X
Title: Re: Justify BBCode
Post by: Nibogo on March 17, 2010, 08:53:08 PM
Quote from: aw06 on March 17, 2010, 08:51:12 PM
Quote from: Arantor on March 17, 2010, 08:48:25 PM
Even forums with it installed by default don't really use it, hence my asking.

And you know this how ?? I have a forum where people post tones of articles and they were dying for this...

Reformatted text is what nobody uses
  :-X

I bet that your forum can continue without this BBCode but you're right there are some really useless bbcodes in the SMF Default installation like ftp, shadow, glow and reformatted.

If the mod exists and you can easily install it using the Package Manager I don't see why are you asking to have it included by default on SMF
Title: Re: Justify BBCode
Post by: Arantor on March 17, 2010, 08:54:36 PM
I've been around on forums for over a decade, seeing phpBB grow up from 1.x, seen so many forums I've lost count over the years, and seriously, I see [move], even [shadow] and [glow] or their counterparts in other forums, used more than justify.

I'm not saying we shouldn't have it but I'd be inclined to keep it out the core, personally.

Then again, when the discussion came up for 2.1, I was actually arguing for removal of ftp, glow, shadow from SMF core anyway...
Title: Re: Justify BBCode
Post by: Nibogo on March 17, 2010, 08:58:35 PM
Quote from: Arantor on March 17, 2010, 08:54:36 PM
I've been around on forums for over a decade, seeing phpBB grow up from 1.x, seen so many forums I've lost count over the years, and seriously, I see [move], even [shadow] and [glow] or their counterparts in other forums, used more than justify.

I'm not saying we shouldn't have it but I'd be inclined to keep it out the core, personally.

Then again, when the discussion came up for 2.1, I was actually arguing for removal of ftp, glow, shadow from SMF core anyway...

I have visited thousands of forums and really I never saw that someone has used the ftp and to be honest I haven't seen the shadow or glow more than 10 times, really these are useless bbcodes and should be removed but anyway we can disable those bbcodes in the admin panel and easily add then with mods
Title: Re: Justify BBCode
Post by: aw06 on March 17, 2010, 09:00:51 PM
Quote from: NIBOGO on March 17, 2010, 08:53:08 PM
Quote from: aw06 on March 17, 2010, 08:51:12 PM
Quote from: Arantor on March 17, 2010, 08:48:25 PM
Even forums with it installed by default don't really use it, hence my asking.

And you know this how ?? I have a forum where people post tones of articles and they were dying for this...

Reformatted text is what nobody uses
  :-X

I bet that your forum can continue without this BBCode but you're right there are some really useless bbcodes in the SMF Default installation like ftp, shadow, glow and reformatted.

If the mod exists and you can easily install it using the Package Manager I don't see why are you asking to have it included by default on SMF

Well i would think that allot of mods can be removed and SMF Forums would still have funtinality :P

Quote from: Arantor on March 17, 2010, 08:54:36 PM
I've been around on forums for over a decade, seeing phpBB grow up from 1.x, seen so many forums I've lost count over the years, and seriously, I see [move], even [shadow] and [glow] or their counterparts in other forums, used more than justify.

I'm not saying we shouldn't have it but I'd be inclined to keep it out the core, personally.

Then again, when the discussion came up for 2.1, I was actually arguing for removal of ftp, glow, shadow from SMF core anyway...

All I'm saying, it is standard measure for a text editor to have justify, the fact that they put left . center . right means they could have without hesitation put in justify, i have seen people use glow shadow, i guess when ftp was in people used it allot, is there a torrent bbc ?? i'd want that right now  :D runs off to search............
Title: Re: Justify BBCode
Post by: aw06 on March 17, 2010, 09:04:11 PM
Quote from: NIBOGO on March 17, 2010, 08:58:35 PM
Quote from: Arantor on March 17, 2010, 08:54:36 PM
I've been around on forums for over a decade, seeing phpBB grow up from 1.x, seen so many forums I've lost count over the years, and seriously, I see [move], even [shadow] and [glow] or their counterparts in other forums, used more than justify.

I'm not saying we shouldn't have it but I'd be inclined to keep it out the core, personally.

Then again, when the discussion came up for 2.1, I was actually arguing for removal of ftp, glow, shadow from SMF core anyway...

I have visited thousands of forums and really I never saw that someone has used the ftp and to be honest I haven't seen the shadow or glow more than 10 times, really these are useless bbcodes and should be removed but anyway we can disable those bbcodes in the admin panel and easily add then with mods

Yeah, i disable most of those useless suckers :P
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi720.photobucket.com%2Falbums%2Fww203%2FShopinJA%2Fbbc.png&hash=f9feaa8fbe8f0f3be536cb9f1df70efa978a4cff)
Title: Re: Justify BBCode
Post by: aw06 on April 01, 2010, 04:43:40 PM
I push allot of articles on my sites, so justify is well need to keep things in order
http://photojamaica.net/
Title: Re: Justify BBCode
Post by: Bugo on May 14, 2010, 12:25:41 AM
Quote from: 130860 on January 22, 2010, 08:21:04 PM
ok, cool, I'll add it as soon as possible, thanks.
Russian added?
Title: Re: Justify BBCode
Post by: mirahalo on May 14, 2010, 11:55:46 AM
sorry, I'm currently rearranging all the translations of the mods I maintain,  thanks for the reminder ;)
Title: Re: Justify BBCode
Post by: jkdove on June 23, 2010, 06:51:23 AM
I use Justify religiously.   I firmly believe it should be Default.        Glow...Really?
Title: Re: Justify BBCode
Post by: mirahalo on June 23, 2010, 10:07:58 AM
well it all depends on your needs,   for example, I need a torrent tracker, but that doesn't mean a tracker should be by default in smf right, the same applies to justify bbc or a gallery or prefix or any other mod ;)
Title: Re: Justify BBCode
Post by: Mike Draven on September 06, 2010, 01:28:46 AM
Hi,

I'll add polish (and polish-utf8 as well) translation to this useful mod. :)


$txt['justify'] = 'Wyjustuj';
Title: Re: Justify BBCode
Post by: iPhoneDestek on September 17, 2010, 06:27:01 AM
translation in german and german-utf8




<file name="$languagedir/Modifications.german.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Justify Mod translation by SirtLanVadisi.net
    $txt['justify'] = 'Justify';
// Justify Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.german-utf8.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Justify Mod translation by SirtLanVadisi.net
    $txt['justify'] = 'Justify';
// Justify Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>



translation in turkish and turkish-utf8



<file name="$languagedir/Modifications.turkish.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Justify Mod translation by SirtLanVadisi.net
    $txt['justify'] = 'Justify';
// Justify Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.turkish-utf8.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Justify Mod translation by SirtLanVadisi.net
    $txt['justify'] = 'Justify';
// Justify Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>

Title: Re: Justify BBCode
Post by: Oya on September 17, 2010, 02:43:13 PM
so the word is 'justify' in english, german and trukish? really?
Title: Re: Justify BBCode
Post by: iPhoneDestek on September 17, 2010, 07:20:42 PM
Quote from: Oya on September 17, 2010, 02:43:13 PM
so the word is 'justify' in english, german and trukish? really?

when such words are no translations. Example google or youtube
Title: Re: Justify BBCode
Post by: Oya on September 17, 2010, 07:31:43 PM
yeah but those are names

google seems to suggest rechtfertigen for german and haklı çıkarmak for turkish but that may not be 100%
Title: Re: Justify BBCode
Post by: iPhoneDestek on September 17, 2010, 07:46:49 PM
Quote from: Oya on September 17, 2010, 07:31:43 PM
yeah but those are names

google seems to suggest rechtfertigen for german and haklı çıkarmak for turkish but that may not be 100%

This is just a BBC code and nothing else. This is the only reason
Title: Re: Justify BBCode
Post by: Oya on September 17, 2010, 08:38:02 PM
thing is the string here is shown to ppl when hey hover over the button so having it be localized is helpful it isnt just the bbcode itself
Title: Re: Justify BBCode
Post by: Nibogo on October 01, 2010, 11:30:32 AM
I just took this mod again as mirahalo is giving his mods
Title: Re: Justify BBCode
Post by: Irbinss on September 28, 2011, 02:57:10 PM
to Nibogo:
I updated this mod to version 2.3.3 (little overlap with your upgrade):


Changelogs:

2.3.3 - 28 September 2011
Updated mod Irbinss (http://www.simplemachines.org/community/index.php?action=profile;u=273719)
+ Added support for SMF 2.0.1 (2.99.99) and 1.1.15 (1.99.99)
+ Correction Hungarian languages (Grimedth (http://www.simplemachines.org/community/index.php?action=profile;u=151471))
+ Added the following languages:
++ Arabic-utf8 (3wasef (http://www.simplemachines.org/community/index.php?action=profile;u=199104))
++ Polish[-utf8] (Mike Draven (http://www.simplemachines.org/community/index.php?action=profile;u=264314))
++ German[-utf8] (SirtLan (http://www.simplemachines.org/community/index.php?action=profile;u=194242))
++ Turkish[-utf8] (SirtLan (http://www.simplemachines.org/community/index.php?action=profile;u=194242))

2.3.2 - 29 July 2011
o Updated for SMF 2.0 and 1.1.14

2.3.1.1 - 26 June 2011
Updated mod Irbinss (http://www.simplemachines.org/community/index.php?action=profile;u=273719)as
+ Added the following languages:
++ Russian[-utf8] (Bugo (http://www.simplemachines.org/community/index.php?action=profile;u=229017))
+ Language Constants moved to separate files for encoding 1251 (language.xml) and utf8 (language-utf8.xml)  (Bugo (http://www.simplemachines.org/community/index.php?action=profile;u=229017))
+ Added support for SMF 2.0 Final


Nibogo, i sent copy post in PM.
If someone should send me PM.
Title: Re: Justify BBCode
Post by: khadhafi on July 29, 2012, 01:58:36 PM
Any update for smf v.2.0.2? can't use it now :(
Title: Re: Justify BBCode
Post by: kinkow on February 26, 2014, 03:58:59 AM
I found error on SMF 2.0.7.

8: Undefined index: minWordLen
Apply Filter: Only show the errors from this file
ไฟล์: C:/host/board/Themes/default/languages/Modifications.english.php
บรรทัด: 19
Title: Re: Justify BBCode
Post by: margarett on February 26, 2014, 07:11:34 AM
That error is not related to the MOD discussed here, but to this one:
http://custom.simplemachines.org/mods/index.php?mod=1528
Title: Re: Justify BBCode
Post by: Padre gremista on June 07, 2015, 01:32:18 AM
Here in my forum the MOD is not working. I selected the button to justify and the text is not justified after the post. How can I fix this ?
Title: Re: Justify BBCode
Post by: Nibogo on June 08, 2015, 10:46:38 AM
If the mod was installed without errors and text is inside the [JUSTIFY ] bbcode then it should be all right.
Title: Re: Justify BBCode
Post by: CyanGaming on August 17, 2018, 06:05:33 PM
will this mod work in 2.0.15?
Title: Re: Justify BBCode
Post by: Nibogo on August 18, 2018, 10:32:57 AM
Yes