vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Make Custom BBCode Re-Appear (https://vborg.vbsupport.ru/showthread.php?t=148175)

MRGTB 05-26-2007 04:16 PM

Make Custom BBCode Re-Appear
 
When you create a custom BBCode to use with vBulletin. What do you have to do, so if you ever use the Rebuild Post Cache in the admin control panel. The text within your custom BBCode comes back. Basicly it is cached in the post still, and not stripped.

Eikinskjaldi 05-27-2007 10:15 PM

Any idea why it is being stripped? rebuilding the post cache just means reparsing posts, if they displayed data before they should do so again.

Having said that they "fixed" a "problem" in 3.6.6 where by empty tags are completely removed from both the parsed and raw text. If your custom tags are empty then they will have been removed.

To prevent this behaviour edit includes/class_dm.php and comment out the line
$pagetext = $this->strip_empty_bbcode($pagetext);

which appears in function verify_pagetext.

MRGTB 05-28-2007 06:57 AM

Thanks for that, but removing that bit of code did not work. The TAGS are still removed.

That bit of code was there to remove n 3.6.5 also, which I'm currently running.

Here is the stangest thing though. After you run the "Rebuild Post Cache" and the TAGS are removed from posts. If you edit a post where the TAG was removed from, the TAG is still displayed with the content in it. And when saved the TAG comes back again

Eikinskjaldi 05-30-2007 12:40 AM

Quote:

Originally Posted by MRGTB (Post 1256020)
Thanks for that, but removing that bit of code did not work. The TAGS are still removed.

That bit of code was there to remove n 3.6.5 also, which I'm currently running.

Yes...but it didn't work in 3.6.5 They re-wrote it in 3.6.6 so that it did.

Quote:

Here is the stangest thing though. After you run the "Rebuild Post Cache" and the TAGS are removed from posts. If you edit a post where the TAG was removed from, the TAG is still displayed with the content in it. And when saved the TAG comes back again
That means the problem is in the parser, not pre-parser (which is good, obviously).

What do your custom tags do?

MRGTB 05-30-2007 05:30 AM

they let you add ed2k links

Eikinskjaldi 05-30-2007 08:53 PM

That means nothing to me, and is not quite what I was asking.

Where have you added the cutom bbcodes, in admincp r as some kind of class_bbcode hack? DO they just do formatting, or do they run some kind of code?


All times are GMT. The time now is 04:08 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.00958 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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