News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Box BBCode

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

Previous topic - Next topic

vbgamer45

Link to the mod

Box BBCode v1.2

You can include boxes and separate the message text into sections.

You can also edit the style of the box using the css rule box_bbcode or other styles through the attribute class.

After install you should do 'hard refresh'.

Version 1.1: attribute link added.
Version 1.2: attribute hlink added. Change validation in title (beta)

Total Attributes:
  • class
  • title
  • link
  • hlink

[box]Example[/box]

[box title=Abstract]Example[/box]

[box class=titlebg]Example[/box]

[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]

[box title=SMF link=http://www.simplemachines.org/community/index.php]
Example with link attribute.
[/box]

[box title=SMF hlink=http://www.simplemachines.org/community/index.php]
Example with hlink attribute.
[/box]
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Marcus Forsberg

This looks really cool. I gotta try this out when I have some time :P

4Kstore

really cool mod!! thanks!

¡¡NEW MOD: Sparkles User Names!!!

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

NHWD

anyway of using this as coda tags instead of using [box]---[/box]

Blinker

Nice mod, thanks .LORD.

It works similarly to the modbreak mod, but this time with a button to accompany it. :)

Could you by any chance please provide sample css styling code to give me an idea of what to aim for?

shanksta13

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.

Minare


MaryLouW

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?

Marcus Forsberg

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?

if you use a custom theme you'll have to place the button in that themes imagesfolder,

MaryLouW

#10
Thanks!!!  I found it!  Appreciate the help.

.LORD.

Quote 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: 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?

1. Thanks for your comment :)

2. Oh, yes  T.T

I was looking if there were similar MODs, I was searching for: box, shell, case, fieldset, and i not found any.

I don't search for modbreak  :'(

3. Yes, for example, in the images sample, i have used:

Image 1:

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]


Image 2:
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]


More example:


[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.

Try it:

[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: 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

Thanks for yours comments  :D

Quote from: Nas on March 04, 2009, 05:33:23 AM
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?

if you use a custom theme you'll have to place the button in that themes imagesfolder,

Thanks for help :D

shanksta13

Quote from: .LORD. on March 04, 2009, 12:46:50 PM

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.

Try it:

[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.

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.

MaryLouW

That would be pretty cool!!  I think I'd like that myself.

NHWD

Quote from: .LORD. on March 04, 2009, 12:46:50 PM
Quote 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?
1.1.8

cme1st2302

How would I go about change the font color of the Title when I use it?

Chris
SMF Version: 1.1.11
SimplePortal Version: 2.3.2

Admin

He who waits for perfect conditions sees nothing!!
If you need help adding a button or tab PM me!!

Marcus Forsberg

Swedish translation:


//Box BBCode
$txt['box_bbcode'] = 'Infoga box';

.LORD.

#17
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.

Done.

Now exists the link attribute.

Now you can use:

[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]


Thanks for idea :)

Quote from: MaryLouW on March 04, 2009, 06:40:47 PM
That would be pretty cool!!  I think I'd like that myself.

Thanks for your comments. Done. :)

Quote from: CL0WNER on March 08, 2009, 05:36:48 AM
Quote from: .LORD. on March 04, 2009, 12:46:50 PM
Quote 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?
1.1.8

Sorry for delay.

Ok, I think I understood what you want.

1.- Search:


array(
'tag' => 'br',
'type' => 'closed',
'content' => '<br />',
),


Replace:

array(
'tag' => 'br',
'type' => 'closed',
'content' => '<br />',
),
/*


2.- Search:


array(
'tag' => 'center',


Replace:

*/
array(
'tag' => 'center',


3.- Install the MOD and open the Subs.php and Search 'box' and replace by 'code'

4.- In Post.template, delete the BBCode buttom. (the buttom that you want delete).

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

Edit your style.css

Search:

.box_bbcode legend {color: #476C8E }

and change: #476C8E

Quote from: Nas on March 18, 2009, 09:45:53 AM
Swedish translation:


//Box BBCode
$txt['box_bbcode'] = 'Infoga box';


Thanks for translate :D


Smog

Hi,
have implemented the 'box mod'and have found a great use for it.
It suits my needs for making 'Notes' stand out.

example:

[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:

[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:


[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.

phpMyTony

Spanish translation ;)
//Box BBCode
$txt['box_bbcode'] = 'Inserta caja';

Advertisement: