Compatible With: | SMF 1.1.X - SMF 2 Beta & RC1 | |
Created By: | .LORD. (http://www.simplemachines.org/community/index.php?action=profile;u=192278) | |
Version: | 1.2 | |
Languages: | Swedish translation by Nas (http://www.simplemachines.org/community/index.php?topic=296629.msg1980822#msg1980822) Spanish translation by phpMyTony (http://www.simplemachines.org/community/index.php?topic=296629.msg2011390#msg2011390) Turkish translation by Özgür´ (http://www.simplemachines.org/community/index.php?topic=296629.msg2012468#msg2012468) French translation by @ngel (http://www.simplemachines.org/community/index.php?topic=296629.msg2241417#msg2241417) |
Quote from: MaryLouW on March 04, 2009, 04:47:44 AM
I love this mod... I installed it tonight but alas, there is no button - just text . How do I get a button in place of the text?
Quote from: CL0WNER on March 03, 2009, 12:18:48 AM
anyway of using this as coda tags instead of using [box]---[/box]
Quote from: Blinker on March 03, 2009, 03:46:11 AM
1) Nice mod, thanks .LORD.
2) It works similarly to the modbreak mod, but this time with a button to accompany it. :)
3) Could you by any chance please provide sample css styling code to give me an idea of what to aim for?
Test Box BBCode
[box]
In this case without title
Test Box BBCode
[/box]
[box title=Title with spaces and special chars: á Ñ 聖闘士星矢]
In this case with title
Test Box BBCode
[/box]
[box title=]
If the title is empty, not have error
Test Box BBCode
[/box]
Test Box BBCode
[box class=titlebg2]
Also is possible to assign a style to the box
Test Box BBCode
[/box]
[box title=Box Mother]
Also is possible to nest box
[box title=Box Daughter]
Test Box BBCode
[/box]
Test Box BBCode
[/box]
[box class=catbg]
Box Mother
[box class=titlebg]
Box Daughter
[/box]
[/box]
[box class=catbg]
Box Mother
[box class=titlebg]
Box dauther
[/box]
[/box]
[box class=titlebg]
Box Mother
[box class=titlebg]
Box dauther
[/box]
[/box]
Quote from: shanksta13 on March 03, 2009, 05:16:52 PM
Is there any way you could add a feature to include hyperlinks in the box title? For instance, I would like to use this mod to cite new articles from other sites and have a link to the original article in the title.
For instance:
Box Title <this would be hyperlink to a website using the URL codes>
Article content inside box.
The problem is right now, when you go to put the title into the [box title="Title here"] code, the first ] stops the title, so it won't allow for the BBC URL code.
[box title=http://custom.simplemachines.org/mods/index.php?mod=1676]
Test Box BBCode with link
[/box]
Quote from: Nas on March 02, 2009, 12:44:45 PM
This looks really cool. I gotta try this out when I have some time :P
Quote from: 4kstore on March 02, 2009, 12:55:50 PM
really cool mod!! thanks!
Quote from: edi67 on March 02, 2009, 02:46:07 PM
nice
Quote from: Minare on March 04, 2009, 01:45:15 AM
nice job bro, thanks
Quote from: Nas on March 04, 2009, 05:33:23 AMQuote from: MaryLouW on March 04, 2009, 04:47:44 AM
I love this mod... I installed it tonight but alas, there is no button - just text . How do I get a button in place of the text?
if you use a custom theme you'll have to place the button in that themes imagesfolder,
Quote from: .LORD. on March 04, 2009, 12:46:50 PMQuote from: shanksta13 on March 03, 2009, 05:16:52 PM
Is there any way you could add a feature to include hyperlinks in the box title? For instance, I would like to use this mod to cite new articles from other sites and have a link to the original article in the title.
For instance:
Box Title <this would be hyperlink to a website using the URL codes>
Article content inside box.
The problem is right now, when you go to put the title into the [box title="Title here"] code, the first ] stops the title, so it won't allow for the BBC URL code.
Try it:Code Select[box title=http://custom.simplemachines.org/mods/index.php?mod=1676]
Test Box BBCode with link
[/box]
Let me know if that's what you want.
Quote from: .LORD. on March 04, 2009, 12:46:50 PM1.1.8Quote from: CL0WNER on March 03, 2009, 12:18:48 AM
anyway of using this as coda tags instead of using [box]---[/box]
Yes, What SMF version are you using?
Quote from: shanksta13 on March 04, 2009, 06:35:06 PM
Yeah, that doesn't actually allow the link to function as a hyperlink. That's what I was asking for, some way to make it so that you can go to the actual page by clicking on the link. As it is now, a URL appears as just an unlinked title.
[box title=More Info: link=http://en.wikipedia.org/wiki/Simple_Machines_Forum]
Simple Machines Forum (abbreviated as SMF) is a freeware Internet forum application...[/box]
Quote from: MaryLouW on March 04, 2009, 06:40:47 PM
That would be pretty cool!! I think I'd like that myself.
Quote from: CL0WNER on March 08, 2009, 05:36:48 AMQuote from: .LORD. on March 04, 2009, 12:46:50 PM1.1.8Quote from: CL0WNER on March 03, 2009, 12:18:48 AM
anyway of using this as coda tags instead of using [box]---[/box]
Yes, What SMF version are you using?
array(
'tag' => 'br',
'type' => 'closed',
'content' => '<br />',
),
array(
'tag' => 'br',
'type' => 'closed',
'content' => '<br />',
),
/*
array(
'tag' => 'center',
*/
array(
'tag' => 'center',
Quote from: cme1st2302 on March 11, 2009, 12:59:28 PM
How would I go about change the font color of the Title when I use it?
Chris
Quote from: Nas on March 18, 2009, 09:45:53 AM
Swedish translation:Code Select
//Box BBCode
$txt['box_bbcode'] = 'Infoga box';
[box class=catbg]
Note:
[box class=titlebg]
As you are using Vista... please right click the desktop icon and select '[color=red]Run as Administrator[/color]'
[/box]
[/box]
[box class=catbg]
Note:
[box class=titlebg]
[/box]
[/box]
[note]As you are using Vista... please right click the desktop icon and select '[color=red]Run as Administrator[/color]'[/note]
Quote from: Smog on April 10, 2009, 05:33:54 PM
Hi,
have implemented the 'box mod'and have found a great use for it.
It suits my needs for making 'Notes' stand out.
example:Code Select
[box class=catbg]
Note:
[box class=titlebg]
As you are using Vista... please right click the desktop icon and select '[color=red]Run as Administrator[/color]'
[/box]
[/box]
Now my question is,
How can i make this:Code Select
[box class=catbg]
Note:
[box class=titlebg]
[/box]
[/box]
into a shortcut?
what i want to do is to be able to post the above message as:Code Select
[note]As you are using Vista... please right click the desktop icon and select '[color=red]Run as Administrator[/color]'[/note]
is this possible?
I'm using Version 2 RC 1.
Many thanks for any help.
'box' => array('code' => 'box', 'before' => '[box title=TitleBox]', 'after' => '[/box]', 'description' => $txt['box_bbcode']),
'box' => array('code' => 'box', 'before' => '[box class= catbg]\nNote:\n[box class= titlebg]', 'after' => '[/box]\n[/box]', 'description' => $txt['box_bbcode']),
array(
'tag' => 'blue',
'before' => '<span style="color: blue;" class="bbc_color">',
'after' => '</span>',
),
array(
'tag' => 'note',
'before' => '<fieldset class="box_bbcode catbg">Note:<fieldset class="box_bbcode titlebg">',
'after' => '</fieldset></fieldset>',
'block_level' => true,
),
'box' => array('code' => 'box', 'before' => '[box title=TitleBox]', 'after' => '[/box]', 'description' => $txt['box_bbcode']),
'note' => array('code' => 'note', 'before' => '[note]', 'after' => '[/note]', 'description' => $txt['box_bbcode']),
Quote from: phpMyTony on April 10, 2009, 05:39:14 PM
Spanish translation ;)Code Select//Box BBCode
$txt['box_bbcode'] = 'Inserta caja';
//Box BBCode
$txt['box_bbcode'] = 'Kutu Ekle';
Quote from: Özgür´ on April 11, 2009, 04:16:34 PM
Nice Idea.
Turkish Trans.Code Select
//Box BBCode
$txt['box_bbcode'] = 'Kutu Ekle';
How can i add url in title?
[box title=[url=http://]Title[/url]]
Or how can linked title to link.
[box title=More Info: link=http://en.wikipedia.org/wiki/Simple_Machines_Forum]
Must be seem
[url=http://en.wikipedia.org/wiki/Simple_Machines_Forum]More Info:[/url]
array(
'tag' => 'box',
'parameters' => array(
'title' => array('optional' => true, 'value' => '$1', 'match' => '(.{0,192}?)'),
'link' => array('optional' => true, 'value' => '$1', 'match' => '(http://[\w.]+/?\S*?)'),
'class' => array('optional' => true, 'value' => ' $1', 'match' => '([\w-]+)'),
),
'before' => '<fieldset class="box_bbcode{class}"><legend><a href="{link}">{title}</a></legend>',
'after' => '</fieldset>',
'block_level' => true,
),
Quote from: Özgür´ on April 11, 2009, 05:53:53 PM
Actually i use for thisCode Select
array(
'tag' => 'box',
'parameters' => array(
'title' => array('optional' => true, 'value' => '$1', 'match' => '(.{0,192}?)'),
'link' => array('optional' => true, 'value' => '$1', 'match' => '(http://[\w.]+/?\S*?)'),
'class' => array('optional' => true, 'value' => ' $1', 'match' => '([\w-]+)'),
),
'before' => '<fieldset class="box_bbcode{class}"><legend><a href="{link}">{title}</a></legend>',
'after' => '</fieldset>',
'block_level' => true,
),
This is work for me but if i no select link title linked topic. Whatever thank you for mod =)
array(
'tag' => 'blue',
'before' => '<span style="color: blue;" class="bbc_color">',
'after' => '</span>',
),
array(
'tag' => 'box',
'parameters' => array(
'title' => array('value' => '$1', 'match' => '(.{0,192}?)'),
'link' => array('value' => '$1', 'match' => '(http://[\w.]+/?\S*?)'),
'class' => array('optional' => true, 'value' => ' $1', 'match' => '([\w-]+)'),
),
'before' => '<fieldset class="box_bbcode{class}"><legend><a href="{link}">{title}</a></legend>',
'after' => '</fieldset>',
'block_level' => true,
),
array(
'tag' => 'blue',
'before' => '<span style="color: blue;" class="bbc_color">',
'after' => '</span>',
),
Quote from: .LORD. on April 11, 2009, 11:49:55 PM
Your welcome, if you like let me know the results :P
Quote from: Smog on April 12, 2009, 02:29:52 PM
Hi .LORD
i can't find this coding in 'Subs-Editor.php'Code Selectarray(
'tag' => 'blue',
'before' => '<span style="color: blue;" class="bbc_color">',
'after' => '</span>',
),
but i can find it in 'Subs.php'
is this what you meant?
didn't want to mess in there until you replied.
Thanks.
Quote from: yura_mdj on April 13, 2009, 02:07:27 PM
.LORD. help me.
I use MS IE 7 & Firefox 3.0.4
I installed your mod package version 1.1
Quote from: Özgür´ on April 13, 2009, 06:59:00 PM
Download package and move "box.gif" to "./Themes/yourtheme/images/bbc".
Quote from: TDNY on April 15, 2009, 08:18:06 PM
Hi, great mod, I was looking around and this caught my eye. I installed it on my default core vers. 1.1.8 test forum. I only have 1 button and when clicked I get this:
[box title=TitleBox][/box] am I supposed to have a button for each of the other attributes like: [box]Example[/box]
[box title=Abstract]Example[/box]
[box class=titlebg]Example[/box]
Thanks for the help and the Mod.
TD
.modbox {
etc,etc
}
'modbox' => array('code' => 'box', 'before' => '[box title=XXXXX class=modbox]', 'after' => '[/box]', 'description' => $txt['modbox_bbcode']),
Quote from: CerebralJam on June 03, 2009, 10:06:36 AM
Forgive me, I really know not a lot, but I want to be able to expand the rather bleak profile page to include input boxes for individuals to add information about me: media - ie youtube embed, esnips mpg widget embed, photos etc etc - could this mod be used to give this sort of thing or am I way offline?
Quote from: Dante` on June 08, 2009, 02:36:20 AM
nice mod thanks
Quote from: CerebralJam on June 30, 2009, 08:06:48 AM
thank you for replying and excuse my late return... I would love that mod and have looked at it several times but unfortunately it is not available for SMF 2.0 RC1/RC1-1 :)
Quote from: woolly bugger on July 08, 2009, 01:31:14 PM
I think this mod is what i've been looking for but I need to set the style and change the name of the text box.
I need a little help in the css dept...
Here is what I would like:
1. Titlebox replaced with Report
2. background of box set to black
3. font set to white, arial 100% bold and centered.
Thanks.
.box_bbcode {
font-family: Arial;
text-align: center;
background: black;
font-weight: bold;
color: white;
}
QuoteInsérer un cadreI prefer this first translation than the litteral translation
QuoteInsérer une boîte
Quote from: @ngel on September 02, 2009, 10:31:53 PM
French TranslationQuoteInsérer un cadreI prefer this first translation than the litteral translationQuoteInsérer une boîte
Quote from: @ngel on September 02, 2009, 10:31:53 PM
About the title in the example "More Info:", don't work with my version 2.0RC1.2; If I remove the ":", it's ok.
array(
'image' => 'quote',
'code' => 'quote',
'before' => '[quote]',
'after' => '[/quote]',
'description' => $txt['bbc_quote']
),
array(
'image' => 'box',
'code' => 'box',
'before' => '[quotebox=TitleBox]',
'after' => '[/box]',
'description' => $txt['box_bbcode']
),
Quote from: mgrmgr on November 26, 2009, 01:53:54 PM
... but a silent hope still remains: to meet a kind soul all of a sudden which can help with a (at least interim) solution for 2.0 RC2 :)
'before' => '[quotebox=TitleBox]',
'before' => '[box=TitleBox]',
Quote from: Arantor on November 27, 2009, 03:24:10 PMLOL - I never got to know a "Real Programmer" who was NOT lazy (even if I may say so about myself ) :)
Tell you the truth, I'm actually somewhat lazy too, despite all my posting and so on, I write things so they're done.
Quote from: Arantor on November 27, 2009, 03:24:10 PM
In the case above it was easier for me to copy/paste than to attempt to write from scratch.
Quote//Box BBCode
$txt['box_bbcode'] = 'Inserir caixa';
array(
'image' => 'box'
'code' => 'box',
'before' => '[box title=TitleBox]',
'after' => '[/box]',
'description' => $txt['box_bbcode']),
<?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>
Quote from: aelmiger on July 23, 2011, 10:05:17 PM
Please upgrade to 2.0 version
<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>
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
Quote from: Jessica. on April 09, 2012, 11:12:02 AM
update for 2.0.2 please?
[box title=[img]http://myimage.com[/img]] {Text Here}[/box]
'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt['bbc_quote']),