vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Have Custom BB Code (<H2> tags) display as rendered/styled Headings in WYSIWYG Editor (https://vborg.vbsupport.ru/showthread.php?t=328205)

rushabh 08-24-2020 09:20 AM

Have Custom BB Code (<H2> tags) display as rendered/styled Headings in WYSIWYG Editor
 
1 Attachment(s)
Have searched around but couldn't find a solution to this.


We've added a Custom BBcode via the vBulletin admin, for html <h2> headings.

They work fine and show up perfectly in submitted posts.

However, when viewed in the WYSIWYG editor, they show up as the bbcode without any parsing. eg. they look like:
Code:

[h2]Here is the Heading[/h2]
Attachment 157715

How can I get the custom bbcode h2 tags to render / convert to HTML in the WYSIWYG editor?

Even pointing me to the right file (vBulletin v3.6.8) would be really helpful, as I've looked through a few but haven't quite had any success.


Thanks,
R

Nas.er 09-15-2020 12:12 AM

I had the same issue before and i tried to make it work but no luck. Until i made all my threads h2 tag by "postbit_legacy"
PHP Code:

<h2>$post[message]
        </
h2></div>
        <!-- / 
message --> 

Which thats improved seo for my website and i put h1 tag on thread name "showthread"

rushabh 09-15-2020 03:53 PM

Quote:

Originally Posted by Nas.er (Post 2603974)
I had the same issue before and i tried to make it work but no luck.

Bummer. I'd imagine its a fairly easy change to make -- though I just can't seem to find the right PHP file.


Quote:

Originally Posted by Nas.er (Post 2603974)
Until i made all my threads h2 tag by "postbit_legacy"

Whoa... Interesting to hear that worked well for you.


All times are GMT. The time now is 07:24 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.01057 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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