vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   build in bb codes? (https://vborg.vbsupport.ru/showthread.php?t=203195)

webForum-dev 01-26-2009 08:49 PM

build in bb codes?
 
Hi

Where are all the build in bb codes specified?

In previous version of vbulletin I could edit the functions_bbcodeparse.php so that I could make a copy of a bb code.

I want my users to ba able to choose if they want to enter the english version of the bb code, or the version of the bb code in their own language.

For example
[quote] in english, should work exactly as [citat] in swedish.

I tried to search in the class_bbcode but could not find any regular expressions that matches a [quote].

Dismounted 01-27-2009 04:12 AM

BB codes are defined in the function fetch_tag_list(). This is located at the end of class_bbcode.php. You can define your own tags by plugging into the hook in the function.

webForum-dev 01-27-2009 06:44 AM

Thanks. Works perfect!

--------------- Added [DATE]1233046535[/DATE] at [TIME]1233046535[/TIME] ---------------

One more question.

How do I make it show up in the bb code list?

http://www.domain.com/misc.php?do=bbcode

Dismounted 01-27-2009 07:38 AM

Hook into misc_bbcode_complete and add your BB codes (see the loop on lines 466+ of misc.php - vB 3.8.0).


All times are GMT. The time now is 02:32 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.01144 seconds
  • Memory Usage 1,712KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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