vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   PHP function to parse BBCode? (https://vborg.vbsupport.ru/showthread.php?t=182841)

A2Nation 06-18-2008 10:17 AM

PHP function to parse BBCode?
 
Can anyone tell me how to parse BBCode in vB 3.7? I'm fetching news posts on my homepage from vBulletin which is fine but bbcode isn't being parsed.

I looked in the code documention but could not find anything .... did I miss it?

Opserty 06-18-2008 10:55 AM

Its amazing what the search feature finds Parse BBCode (in 3.5) ;)

A2Nation 06-18-2008 04:44 PM

Quote:

Originally Posted by Opserty (Post 1552487)
Its amazing what the search feature finds Parse BBCode (in 3.5) ;)

Thanks but I already found that and it didn't work for me.

RLShare 06-18-2008 04:50 PM

Then I think you must be doing something wrong as the class still exists with a member function that still takes the exact same parameters.

Opserty 06-18-2008 04:54 PM

As stated above the class hasn't changed much, I have used that in the past with 3.6 and it still works. You can find the class details listed in: vBulletin 3.7 Code Documentation and then see if you are going wrong somewhere.

If all else fails, find where vBulletin parses it's posts/signatures and see how it is done in the default vBulletin code. Then just mimic what has been done.

King Kovifor 06-18-2008 10:10 PM

That code is still exactly the same. If you provide us the code we can have a look at it and see where you are going wrong.


All times are GMT. The time now is 10:29 PM.

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.00963 seconds
  • Memory Usage 1,718KB
  • 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_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