vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Creating an advanced BBCode (https://vborg.vbsupport.ru/showthread.php?t=118583)

ralle89 06-14-2006 04:51 PM

Creating an advanced BBCode
 
Hello!
I own a website where I am making a code highlighting system like the php highlighting system so now I want to make a bbcode for it so I say [trigger]somecode[/trigger] which the bbcode system then will parse. I cant use the standard custom bbcode system for this. so how do I add a new one?

ralle89 06-17-2006 06:06 PM

sry for bumping but can anyone answer my question?

Christine 06-17-2006 09:36 PM

The bbcode system basically replaces html. For example, doing a spoiler box -- it sets the opening and closing of the table with the content in the middle.

I am not sure what you mean by "parsing highlighting"?

Tralala 06-17-2006 10:21 PM

Can there be a conditional in the HTML replacement?

Something like, "if the browser is MSIE, use this.
If the browser is Firefox, use that."

I'd love to see an example of code that could do that.

ralle89 01-29-2007 07:08 PM

have you ever seen the [highlight] mod for vbulletin? well I don't understand the source of it, but I am making something similiar to that.
I don't know which hook to use when wanting to modulate the text..

I have seem something in the source saying
[php] //
PHP Code:

            $tag_list['no_option']['php'] = array(
                
'callback' => 'handle_bbcode_php',
                
'strip_empty' => true,
                
'stop_parse' => true,
                
'disable_smilies' => true,
                
'disable_wordwrap' => true,
                
'strip_space_after' => 1
            
); 

SO I would like to make something similiar to that.. But I dunno what to set these values to. if we said my function was called highlight_kralimut().

And I want to do this with hooks and plugins


All times are GMT. The time now is 04:58 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.01102 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
  • (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