![]() |
How do you edit default bbcode?
How do you edit default bbcode? I forgot how to do this :(
|
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! |
it's the [img] bbcode I'm trying to edit.
--------------- Added [DATE]1248497420[/DATE] at [TIME]1248497420[/TIME] --------------- no one knows??? Woooooooooooooooooooooooooooow :-( |
Modify the BB code handler for the IMG tag, then you can do whatever the hell you want in processing the tag.
|
yes but where I need to go to do it?
|
I believe you would need to change the function handle_bbcode_img() in includes/class_bbcode.php.
|
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.
|
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.
|
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! |
Quote:
|
Seems to be working, might be version dependent though? Interstingly it doesn't seem to entirely replace the default IMG behavoir, but puts mods on top of it.
Any idea what code snippit is responsible for the popup url browser generated by the insert link or insert image default buttons? And can that code be inserted in the custom bb code interface or does it have to be coded into the php doc? I'm still looking into use of the {option} use and syntax so my answer may lie there... |
Quote:
Quote:
Quote:
|
anyone know how to change "alt" attribute in default img bbcode?
|
Quote:
|
I actually just did this in includes/class_bbcode.php look for the following function I added the red part to fit my forums fixed width.
Code:
function handle_bbcode_img_match($link, $fullsize = false) |
All times are GMT. The time now is 11:33 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|