vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How do you edit default bbcode? (https://vborg.vbsupport.ru/showthread.php?t=219359)

indie2industry 07-24-2009 02:30 PM

How do you edit default bbcode?
 
How do you edit default bbcode? I forgot how to do this :(

James Birkett 07-24-2009 02:47 PM

If it's quote/code tags - look in the related template.
My forum has some SQL errors so I can't look for the other ones, sorry!

indie2industry 07-24-2009 03:01 PM

it's the [img] bbcode I'm trying to edit.

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

no one knows??? Woooooooooooooooooooooooooooow :-(

Dismounted 07-25-2009 03:47 AM

Modify the BB code handler for the IMG tag, then you can do whatever the hell you want in processing the tag.

M.C. 02-01-2012 08:40 PM

yes but where I need to go to do it?

kh99 02-02-2012 12:25 PM

I believe you would need to change the function handle_bbcode_img() in includes/class_bbcode.php.

doob 04-13-2012 09:06 AM

kh99, is that the same place you'd go to change the alt text that appears for the default Insert Image button in forum posts, etc? doing a search for insertimage.gif and "Insert Image" doesn't uncover anything in that php document.

kh99 04-13-2012 10:48 AM

That php file is only where bbcodes are processed. Using "search in phrases" I find a phrase with text "Insert Image", so that may be it (although I haven't tried it). Try adding a translation for that phrase.

doob 04-13-2012 05:18 PM

Thanks for that sugg.

FYI. It seems that if you want to override the default behavior you just add a new custom bb code with the same name as a default one. ie to override the IMG tag, just create a new custom tag and name it IMG with whatever properties you want. Fun stuff!

kh99 04-13-2012 06:58 PM

Quote:

Originally Posted by doob (Post 2319804)

FYI. It seems that if you want to override the default behavior you just add a new custom bb code with the same name as a default one. ie to override the IMG tag, just create a new custom tag and name it IMG with whatever properties you want. Fun stuff!

Thanks, I didn't know that. I thought I had tried that and had it tell me that the code already existed.


All times are GMT. The time now is 04:04 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.01874 seconds
  • Memory Usage 1,725KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete