vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Header [h=1] BBcode (https://vborg.vbsupport.ru/showthread.php?t=268334)

steeler7 08-10-2011 07:29 PM

Header [h=1] BBcode
 
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 ...

Quote:

Header
Title: Header
Tag: header
Replacement: <h{option}>{param}</h1>
Example: [h=1]This is the biggest header[/h][h=2]This is the second biggest[/h][h=6]And this is the smallest[/h]
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 02:41 AM

Bumping this up

kh99 08-19-2011 09: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 04: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 04:32 PM

I think it now replaces header tags with font size, so it won't be bold.

cellarius 09-27-2011 04:41 PM

Your replacement would only work for h1 level. <h2></h1> is broken html.

steeler7 10-06-2011 11:53 AM

Quote:

Originally Posted by cellarius (Post 2250617)
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 05: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 10:29 PM

Quote:

Originally Posted by cellarius (Post 2254029)
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


All times are GMT. The time now is 01:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01507 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete