PDA

View Full Version : Header [h=1] BBcode


steeler7
08-10-2011, 08:29 PM
I was wondering if the issue with the new CKEditor not converting Header code can be solved by using Header BBcode? I tried adding some Header BBcode that I found but it doesn't seem to be working at all..

I used the following ...

Header
Title: Header
Tag: header
Replacement: <h{option}>{param}</h1>
Example: This is the biggest headerThis is the second biggestAnd this is the smallest
Description: Modifies the text sized to the option (1 being largest, 6 smallest).
Use Option: Yes
Remove Tag if Empty: Yes
Disable BB Code within this BB Code: No
Disable Smilies within this BB Code: No
Disable Word Wrap within this BB Code: No

When I copy and paste something into vBulletin, It doesn't convert the Header tags, so I'm trying to figure out how to get it to do that (along with a way to get line breaks <p> tags to automatically work)

steeler7
08-19-2011, 03:41 AM
Bumping this up

kh99
08-19-2011, 10:16 AM
Are you having that problem in vb4.1.5? I noticed that problem in 4.1.4 but it seems to be fixed in 4.1.5.

steeler7
09-27-2011, 05:21 PM
I havent tried in 4.1.5, I havent installed it yet. At vBulletin it's not showing the [H=1] tags but it's also not rendering the boldness which it should be

kh99
09-27-2011, 05:32 PM
I think it now replaces header tags with font size, so it won't be bold.

cellarius
09-27-2011, 05:41 PM
Your replacement would only work for h1 level. <h2></h1> is broken html.

steeler7
10-06-2011, 12:53 PM
Your replacement would only work for h1 level. <h2></h1> is broken html.
My replacement code doesn't work at all, actually lol.

The code I run into the most is actually h=1 and a /h. either way I can't substitute that and get it to work.

any ideas? I'd rather have those tags render exact rather than the half arsed vbulletin fix of eliminating what the tag does rather than making it work

cellarius
10-06-2011, 06:00 PM
Honestly, I think you are making this awfully complicated. How many heading levels do you need in a post? 2? 3 at the most? Make a seperate BBCOde for each , and so on.

steeler7
10-06-2011, 11:29 PM
Honestly, I think you are making this awfully complicated. How many heading levels do you need in a post? 2? 3 at the most? Make a seperate BBCOde for each , and so on.

I can't get the code to work for any of them right now