Log in

View Full Version : BB Code Enhancements - [BBCODE] border


chrslp
05-16-2009, 10:00 PM
First post; not sure about the format:

I searched for a decent BBcode in which gave me a border around the text.. just a simple border; nothing fancy.. nothing that is pure trash and confusing the user, just something to make the post purty.. well after a while and some help in the right direction from Lynne

Title: Border

BB Code Tag Name: Border

Replacement:
<div style="border: 2px ridge #F4E673; padding: 5px;">{option}<hr>{param}</div>

Example:
body goes here; doesnt affect the layout

Description:
This gives the user a golden border around the text which also allows for a header above the section

Use Option: Yes
Disable if tag not used: Yes
Rest of them: no

Demo: Here (http://www.closestudios.com/forums/showthread.php?t=14)



Extra info: if i get any requests to make a button image for it; ill do it- but i dont have it readily available on this computer.

Your Support
I dont care how you do it; just dont say its your when you know you got it from here =)

Brandon Sheley
05-17-2009, 02:48 AM
Can you add a screenshot? The site(demo) is loading really slow

thx :)

TheLastSuperman
05-17-2009, 03:15 AM
*tagged.

Good effort, decent BB Code!

chrslp
05-17-2009, 03:17 AM
screenshot added; sorry about the forums loading a tad slow; still refining them

BigDog56
05-17-2009, 03:46 PM
Thank you! Played with it a little works good.

mikey1991
05-17-2009, 05:51 PM
Good Job! I'll look at using this :)

Tagged

chrslp
05-18-2009, 04:09 PM
ty =)

ErrorLog
05-19-2009, 10:02 AM
Thanks installed.

Frondy
05-19-2009, 02:26 PM
Well, it allmost works.
If I put no title (e.g.bla,bla), it does not work.
There must be at least = sign (e.g.bla,bla)

Anyway, thanks for it, installed

DobieGillis?
05-19-2009, 07:30 PM
Well, it allmost works.
If I put no title (e.g.bla,bla), it does not work.
There must be at least = sign (e.g.bla,bla)

Anyway, thanks for it, installed

you're right, tested both way, must use =

chrslp
05-20-2009, 06:26 PM
Glad y'all are enjoying it; and yes there has to be at least a = sign, i usually just add a space after it just to be sure.

mandingo
11-22-2009, 10:36 PM
I did it like this:
<div style="border: 2px ridge #CC0000; padding: 5px;">{param}</div>
Obviously you can change the color and the border thickness and style
then all you need is:
text or whatever

cheat-master30
12-18-2009, 07:11 PM
Installed, although I changed the style in the tag to a class and put the CSS bit in the stylesheet.

Vaupell
12-18-2009, 08:59 PM
nice installed,,

PS "use option" should be No..
then you dont have to add = to

thats only if you want to add special features maybe let the user control border color.

then you would use this code

<div style="border: 2px ridge #{option}; padding: 5px;">{param}</div>

and the bbcode will be [border=ff0000] this makes a red box

I added both exsamples on screenshot

107727