vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How tow modify the STANDARD bbcode? (https://vborg.vbsupport.ru/showthread.php?t=76952)

memobug 02-24-2005 06:45 AM

How tow modify the STANDARD bbcode?
 
I've created my own custom codes before, but I want now to modify the standard BBCODE for the URL tag:

I want to change it from <a href="url">target</a> to
<a href="myphpframeset.php?link=url">target</a> so I can put the offsite links into my own frameset

Thanks,

Matt

Xenon 02-24-2005 05:08 PM

you have to take a look at functions_bbcodeparse.php :)

memobug 02-24-2005 09:18 PM

Thanks very much Stefan for letting me know where to look.

I am a little surprised the vb folks did that. It would be nice to have some phrase level control of the links and html attributes defined by standard bbcode. I can see where people might want to open in the current or existing window or add CSS attributes to some of them. "Hardwiring" them in php does not seem like the best approach.

Regards,

Matt

Xenon 02-25-2005 04:18 PM

you're welcome :)

yeah harcoding anything in htlm is a bad way, maybe with the next bigger release those little snipets will be in the phrasesystem as well :)


All times are GMT. The time now is 11:52 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.02039 seconds
  • Memory Usage 1,707KB
  • 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