vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Creating custom bbcode like [*] (https://vborg.vbsupport.ru/showthread.php?t=196714)

bluesoul 11-19-2008 06:19 PM

Creating custom bbcode like [*]
 
I use quite a few custom BBCodes that I would absolutely love to be able to use much like the[*] code in lists. Namely, I have a [para] tag that inserts 5 nbsp's prior to a paragraph, and a [clear] tag that I use to clear text below floating images. Right now I have to do and . I want to just be able to do [para] and [clear]. I've looked around quite a bit and the search is just a bit too vague to be useful. Has anyone managed to get something like this going?

bluesoul 11-25-2008 03:01 PM

Anyone?

Lynne 11-25-2008 03:42 PM

Have you read the manual? Custom BB Codes

bluesoul 11-25-2008 04:04 PM

Yes, I did thanks. And it doesn't answer my question. I want to build a tag like[*] that doesn't require a closing tag.

Lynne 11-25-2008 04:40 PM

You could just write a plugin to do a replace string for your tag. Replace "[para]" with "     " Or use replacement variables for it.

bluesoul 11-26-2008 12:03 AM

Question about the replacement variables, can it match a word on it's own, either by wrapping spaces or {curly brackets} around it like the censorship filter?

Lynne 11-26-2008 12:56 AM

You can read up on them in the manual - Replacement Variables And, you can always just try them to see what they do (try them on a test style that other users don't have access to or try them on a test site).


All times are GMT. The time now is 12:14 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.01426 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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