vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help on bbcode please (https://vborg.vbsupport.ru/showthread.php?t=108603)

Moya 02-22-2006 06:40 AM

Help on bbcode please
 
Hello All,

I am trying to understand the bbcdoe parsing function and I couldn't get it to work

Here is my test code

PHP Code:

    <hookname>bbcode_create</hookname>
            <
phpcode><![CDATA[
$this->tag_list['option']['test'] = array(
                
'callback' => 'handle_external',
                
'strip_empty' => true,
                
'stop_parse' => true,
                
'disable_smilies' => true,
                
'disable_wordwrap' => true,
                
'strip_space_after' => 1,
                
'external_callback' => 'handle_test_bbcode'
            
);
            
$this->tag_list['no_option']['test'] = array(
                
'callback' => 'handle_external',
                
'strip_empty' => true,
                
'stop_parse' => true,
                
'disable_smilies' => true,
                
'disable_wordwrap' => true,
                
'strip_space_after' => 1,
                
'external_callback' => 'handle_test_bbcode'
                
            
if (!function_exists('handle_test_bbcode'))
            {
                
                
{
    
                function 
handle_test_bbcode( &$parser$text )
                {
                    
                    
                    
$parser->options['cachable'] = false;
                    
                    
                    
                    return 
'success';    
                    
                }                
            }    
        ]]></
phpcode

I create a new bbcode call test

Then I create a new thread with the following content

Code:


Above the test

[test] inside the test[/test] next to test

and nothing happen.

What did I do wrong? Please help please

Thanks

Moya 02-23-2006 07:06 AM

Anyone?????????????

Luggruff 02-23-2006 06:59 PM

Don't really understand, explain more.. sounds like something that's allready in progress..

Moya 02-24-2006 05:17 AM

Never mind I got it figured out

Adult SEO 11-14-2006 01:20 PM

Hi!

Moya, could you please share how you did it?

I've been trying to figure it out also but am stuck on the converted BBcode not being available to edit in the Wysiwyg editor.

Best Regards,
Jan Jaap


All times are GMT. The time now is 03:50 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.01121 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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