Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   Web design and Programming (https://novahq.net/forum/forumdisplay.php?f=32)
-   -   Using BBC in Forums (https://novahq.net/forum/showthread.php?t=39980)

bigjoe11a 11-01-2007 03:00 PM

Using BBC in Forums
 
I have SMF 1.1.4 installed with an added MOD for custom BBCode.

Does any one know how I can add to this mod to use tags on my forums sections.

I never used it before. It asks for information that I have no idea on what to enter to get the option that I want, heres the lay out for the questions it ask for.

Tag Name
Description
----------------
Tag Type
1) <tag>content<tag>
2) <tag=option]content<tag>
3) <tag>
Parse enclosed BBCode
1) No Parsing
2) Content Only
3) No content

Trin Whitespace
1) No Trin
2) Out Side
3) Inside
4) Both
Block Level
This is a check box

Then the last thing it has a textarea asking for

The HTML used for the tag
<tag>{content}</tag>
<tag alt={option}>{content}</tag>

PLEASE can any one help

IcIshoot 11-01-2007 03:31 PM

I installed it.... lol figuring it out

bigjoe11a 11-01-2007 03:32 PM

Yep, Thats what I can't under stand.

IcIshoot 11-01-2007 03:50 PM

Ok - lol

The words "{options}" and "{content}" are replaced by the forum software.

So if you choose tag type [tag]{content}[/tag], and then in your post do

[tag]Hi[/tag] - The forum software takes the stuff between the tag, and replaces {content} with it.


Example steps: Creating a bbcode for bolding text, in red.

Tag name: rbold
tag description: Bolded Red text

Tag type: [tag]{content}[/tag]

Parsing: I chose content only... not sure what that does.

For the html:

<b><font color=red>{content}</font></b>


The forum will automatically replace {content} with what ever you include between the [rbold] tags.

You could make it so that this tag will do it for any color, by changing the tag type to [tag=option]content[/tag] and change html code to

<b><font color={option}>{content}</font></b>

bigjoe11a 11-01-2007 05:14 PM

Thats so cool, What about url's and imgs.

How would I create a tag for them

and Thank You

IcIshoot 11-01-2007 05:30 PM

same way. BB code just takes your tags [b] and converts them to standered HTML.


So if you wanted to make a special sig bbcode, you could do something like


[sig]http://mysig.com/image.jpg[/sig] and the html code would be

<img src="{content}" />


Not sure if you can embed bbcode into a custom bbcode, would have to test it out.


IcI

bigjoe11a 11-01-2007 05:32 PM

I just wanted to tell you that your sample doesn't work

Tag Name rbold

And the same options as you added. So how do I use it, Is this right

[rbold]Bold Text Thats Red[/rbold]

For some reason it's not working, Any ideas from you would be great

Thanks again

bigjoe11a 11-01-2007 05:40 PM

Ok, Your 2nd option worked, Thank You. This is so cool. Can't under stand why your 1st one doesn't work

Thanks

IcIshoot 11-01-2007 06:07 PM

Did you enable the first example? Forgot to mention that part, have to check the box that says Enable after you set one up lol.


I'm not sure why the first one didn't work for you, it works for me lol

bigjoe11a 11-01-2007 06:26 PM

Well I didn't see any thing that says enable. I change the first one to your sample and I added one of my own, And both of them work. SO thank you

I have on idea why your first sample didn't work

Thank You for your help.


All times are GMT -5. The time now is 09:55 AM.

Powered by vBulletin®