vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Single Tag vB Code... (https://vborg.vbsupport.ru/showthread.php?t=41096)

cbn 07-15-2002 01:26 PM

Single Tag vB Code...
 
Would it be possible for a hack to allow the creation of custom vB codes where and [/ending] tag is not required, only a [start] tag?

You may ask, why not use a replacement? As we need the [tag] to be displayed instead of the rendered code when editing posts.

If someone could make this hack, please please let me know!

Please email me!

Thanks! :p

Logician 07-15-2002 02:03 PM

if you omit the ending tag, how is the script supposed to know where your tag ends and non-tag lines begin then?

Xenon 07-15-2002 02:43 PM

you can make a new replacement and enable replacements in posts, look how: here

cbn 07-15-2002 05:15 PM

I'm still confused.

I need to be able to use a [tag] of some sort so that whenever I edit a post, the [tag] code is there instead of the replacement HTML code.

Say I create a replacement:

Code:

[dad] => <a href="http://www.commanderbond.net/Categories/9.html">Die Another Day</a>
So, I then post a topic:

Quote:

Check out the lastest Bond news here at [dad]
Say I want to then edit the post, at the moment, all I get is:

Code:

Check out the lastest Bond news here a <a href="http://www.commanderbond.net/Categories/9.html">Die Another Day</a>
How can I get it to display:

Quote:

Check out the lastest Bond news here at [dad]
...when editing a post...?

Xenon 07-15-2002 07:29 PM

yes i know, thats the probleme with the replacement vars.

you have another possibility: download fireflys /me hack, and change the /me to for example [dad] and the replacement for /me to what ever you want, that'll do the trick, but you have to change the code from him, so if you can do so.... ;)


All times are GMT. The time now is 06:03 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.01039 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_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