New BBCode for you to play with!

For info on the site, community and 'battlefieldy' things

New BBCode for you to play with!

Postby Apache Thunder » Wed Jan 30, 2013 1:49 am

Attention all BFMod users. I've added some new BBCode to add a couple neat features that many should find useful. The youtube BBCode has been around for awhile now and not much else was done since.

But there are a few useful BBCodes I found that should work here and be relevant to the content users typically post here. So don't expect anything oddball like Facebook bbcode, twitter bbcode, or odd ball crap like that. If anything fancy like that does come, it will come at the hands of Fo0k, so "special" requests for more fancy BBCode should be directed at him.

First up, I've added the long missing "align" BBCode so that now you can align text to the left, center, or right using the BBCode for align.

Example:

Code: Select all
[align=center]Centered Text[/align]


The result:
Centered Text


To align it other ways, use "left" or "right" in place of "center". You don't have to use the BBCode at all to align text to the left since that's the default behavior of the forum. :P

Next up is the simple highlighting BBcode to highlight text. This time I have enabled all the BBCode I've added including the align BBcode to show up as buttons along side the youtube button above the text box while posting a reply/topic.


Text Highlight BBCode:

Code: Select all
[highlight=red]this text is highlighted[/highlight]



The result:

This text is highlighted

You can use any color you want. If you want a color that doesn't have a "name" to it. You should be able to use HTML color hex that is standard everywhere. For example, any color you can use with the "color" bbcode, you can use on this bbcode as well.


The next one I got added is the "Warning" BBcode:

Code: Select all
[warning]This is warning message[/warning]


The result:


!
This is warning message


The next one is the Goto BBCode. This requires using two BBCodes in tandem to get the desired result. The "section2" is just an example identifier I used. It can be anything you want as long as it's unique and is the same one used in both BBcodes to get a matching pair.

This should also allow you to use more then one pair of these BBCodes to provide a navigation page of sorts to certain areas of your post. Useful for long tutorial posts. So each section can have it's own unique identifier so that when the user clicks the first link the page scrolls to the correct area of your post as you intended.

Please note that the identifier code is case sensitive, so be sure they both match exactly or it won't work.

Code: Select all
[go_to=Section2] Link to a section further down in post. [/go_to]

[go_to_content=section2]Your destination Text[/go_to_content]



Link to a section further down in post.
.












(Pretend there's lots of crap here. :P )











.
Your destination Text
(the destination text can be the title of your section for example)

This one is the simple "strikethrough" BBcode that enables to you strike through text. Another one of those forum essentials that I forgot about. But Swaffy brought that one to my attention. :D

Code: Select all
[s]Your Text Here[/s]


The result:

Your Text Here


Here's another. Spoiler BBCode. Can be used to embed large amount of text that can be hidden and then "shown" when the user clicks the + button. Usefull for burying large amounts of info in a post without forcing the user to scroll through it all to get to a specific section.

Code: Select all
[Spoiler=Spoiler Title Text]Hidden Text Goes here[/spoiler]


The result:

Spoiler Title Text
Hidden Text Goes here



If any new BBCode gets added in at a later time, I'll update this thread. ;)
ImageImageImage

I have cameras in your head!
User avatar
Apache Thunder
 
Posts: 1194
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA

Re: New BBCode for you to play with!

Postby Swaffy » Wed Jan 30, 2013 6:19 pm

Do we have strikethrough?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Image
User avatar
Swaffy
 
Posts: 1645
Joined: Sun Aug 29, 2010 9:25 pm
Location: San Antonio, Texas, U.S.

Re: New BBCode for you to play with!

Postby Apache Thunder » Wed Jan 30, 2013 8:34 pm

I will dig one up for that right now. :D

EDIT: We do now! :D
ImageImageImage

I have cameras in your head!
User avatar
Apache Thunder
 
Posts: 1194
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA

Re: New BBCode for you to play with!

Postby Classical Modder » Fri Feb 15, 2013 4:39 am

Fantastic signature, Apache.
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 342
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

Re: New BBCode for you to play with!

Postby Apache Thunder » Thu Feb 28, 2013 9:50 pm

Thanks. I created it, so of coarse it would be fantastic. :D

By the way, I have enabled BBcode use (excluding flash bbcode) for Personal Messages. It must have been off by default. That has now been fixed. :D
ImageImageImage

I have cameras in your head!
User avatar
Apache Thunder
 
Posts: 1194
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA

Re: New BBCode for you to play with!

Postby Swaffy » Sat Mar 02, 2013 7:27 am

Next, we need full XHTML support.
Then, support for the BF1942 engine.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Image
User avatar
Swaffy
 
Posts: 1645
Joined: Sun Aug 29, 2010 9:25 pm
Location: San Antonio, Texas, U.S.

Re: New BBCode for you to play with!

Postby poompoom500 » Sun Feb 28, 2016 2:28 pm

:geek:

To ApacheThunder,

Nice job. Got me as your fan. Uh, are there any BBCodes for imbedded videos or pix?
User avatar
poompoom500
 
Posts: 8
Joined: Tue Nov 13, 2012 7:11 am
Location: Planet Earth - New Jersey


Return to General discussion & notices

Who is online

Users browsing this forum: No registered users and 4 guests