News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Box BBCode

Started by vbgamer45, March 02, 2009, 12:39:44 PM

Previous topic - Next topic

qubbah

hope there is and upgrade version for smf rc3

Cereus

#61
Portuguese_brazilian
Portuguese_pt

Quote//Box BBCode
$txt['box_bbcode'] = 'Inserir caixa';



Special characters (like 'ã', 'é') doesn't work.

SMF 1.1.11
Theme: Tolkien.

qubbah

Any new news for rc3?

qubbah

still waiting for rc3

Loginsvarios

Another one interested in RC3 version. ; - )

akbora

This is compatible with rc3 but only there is one problem in this file:

./Sources/Subs-Editor.php

How can we solve this? Thanks
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

timned88

count me in for rc3 as well.

i tried adding

array(
      'image' => 'box'
      'code' => 'box',
      'before' => '[box title=TitleBox]',
      'after' => '[/box]',
      'description' => $txt['box_bbcode']),

but it didn't work.

the_knight

#67
Here is the code i altered for RC4 ( in the install_2.xml 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>.LORD.:BoxBBCode</id>
<name>Box BBCode</name>
<version>1.2</version>

<file name="$sourcedir/Subs-Editor.php">
<operation>
<search position="before"><![CDATA[
array(
'image' => 'quote',
'code' => 'quote',
'before' => '[quote]',
'after' => '[/quote]',
'description' => $txt['bbc_quote']
),]]</search>
<add><![CDATA[
array(
'image' => 'box',
'code' => 'box',
'before' => '[box title=TitleBox]',
'after' => '[/box]',
'description' => $txt['box_bbcode']
),
array(),]]></add>
</operation>
</file>

<file name="$sourcedir/Subs.php">
<operation>
<search position="before"><![CDATA[
array(
'tag' => 'blue',
'before' => '<span style="color: blue;" class="bbc_color">',
'after' => '</span>',
),]]></search>
<add><![CDATA[
array(
'tag' => 'box',
'parameters' => array(
'class' => array('optional' => true, 'value' => ' $1', 'match' => '([\w-]+)'),
),
'before' => '<fieldset class="box_bbcode{class}">',
'after' => '</fieldset>',
'block_level' => true,
),
array(
'tag' => 'box',
'parameters' => array(
'title' => array('value' => '$1', 'match' => '([\w\s\x]{0,192}?)'),
'hlink' => array('value' => '$1', 'match' => '(http://[\w.]+/?\S*?)'),
'class' => array('optional' => true, 'value' => ' $1', 'match' => '([\w-]+)'),
),
'before' => '<fieldset class="box_bbcode{class}"><legend><a href="{hlink}" target="_blank">{title}</a></legend>',
'after' => '</fieldset>',
'block_level' => true,
),
array(
'tag' => 'box',
'parameters' => array(
'title' => array('optional' => true, 'value' => '$1', 'match' => '([\w\s\x]{0,192}?)'),
'link' => array('optional' => true, 'value' => ' <a href="$1" target="_blank">$1</a>', 'match' => '(http://[\w.]+/?\S*?)'),
'class' => array('optional' => true, 'value' => ' $1', 'match' => '([\w-]+)'),
),
'before' => '<fieldset class="box_bbcode{class}"><legend>{title}{link}</legend>',
'after' => '</fieldset>',
'block_level' => true,
),
array(
'tag' => 'box',
'before' => '<fieldset class="box_bbcode">',
'after' => '</fieldset>',
'block_level' => true,
),]]></add>
</operation>
</file>

<file name="$themedir/css/index.css">
<operation>
<search position="end" />
<add><![CDATA[

/* Box BBCode */
.box_bbcode { margin: 10px 50px 10px 50px; border: 1px solid #ADADAD; }
.box_bbcode legend {color: #476C8E }
]]></add>
</operation>
</file>

</modification>


The button won't show but the bbc tag works^^

Is there any documentation about the fillable parameters of the tag ?

aelmiger

Please upgrade to 2.0 version

Cereus

Quote from: aelmiger on July 23, 2011, 10:05:17 PM
Please upgrade to 2.0 version

Enforcing the request.

See you.

SSimple Team

Patience, we are the team with more mods in smf and we are working on versions of our mods. Besides having 51 official mods, we have over 70 mods and one Portal unofficial, so we have a lot of work and time is a tyrant. So I ask for your patience.
Thank you for understanding




Mi Web: SMFSimple.com -

Apllicmz

Nice work
when Update Mod Dont forget Portuguese files

<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
                <add><![CDATA[
//    Box BBCode Translate by Candidosa2
$txt['box_bbcode'] = 'Inserir a Caixa';]]></add>
        </operation>
    </file>
   
    <file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
                <add><![CDATA[
//    Box BBCode Translate by Candidosa2
$txt['box_bbcode'] = 'Inserir a Caixa';]]></add>
        </operation>
    </file>
   
    <file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="end" />
                <add><![CDATA[
//    Box BBCode Translate by Candidosa2
$txt['box_bbcode'] = 'Inserir a Caixa';]]></add>
        </operation>
    </file>
   
    <file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="end" />
                <add><![CDATA[
//    Box BBCode Translate by Candidosa2
$txt['box_bbcode'] = 'Inserir a Caixa';]]></add>
        </operation>
    </file>




Cereus

Quote from: SSimple Team on December 25, 2011, 08:22:21 PM
Patience, we are the team with more mods in smf and we are working on versions of our mods. Besides having 51 official mods, we have over 70 mods and one Portal unofficial, so we have a lot of work and time is a tyrant. So I ask for your patience.
Thank you for understanding

And we understand. I just enforce it because the last post is from July.

Jessica.

update for 2.0.2 please?
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

Jack_40k


N i g h t m a r e

How could i possibly add IMG tags into the title?

so:


[box title=[img]http://myimage.com[/img]] {Text Here}[/box]


...?

br360

I know this is an older topic, but just found this mod so my apologies in advance for bumping it.

I am on version 2.0.7, and when I uploaded the mod, I didn't get the "this mod won't work on your version" or "is corrupt" message, so I didn't have to emulate. I did get a test failed message in ./Sources/Subs-Editor.php, but when I went to parse the code that the warning suggested, the part it wanted me to add new code after, didn't even exist in my subs-editor file.

This one- (does not exist)
'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt['bbc_quote']),

I also saw a "File Not Found" message in -./Themes/default/style.css.

This being just a test site, I installed it anyway, and it works fine. There is no icon in my bbc list when replying or starting a topic, but since I would plan to have only admins use this, I have no problem with that at all. I can still manually type in all the different attributes manually into a post, and everyone works great.

I also tried to look at the files in the smf mod parser, and none of them existed in any of my files. I'm guessing that a lot changed from when this mod was written for 2.0 RC1.2 to 2.0.7, but just odd that for the most part it works great- installs and uninstalls with no other errors than the warning I received above.

Besides being a little curious how this happened, is there any issue with keeping this mod installed, even though I can't find what file edits were done?

qubbah

One problem when we put in the text that have : or ' in [box title=TitleBox-here-][/box] the code not function.

Advertisement: