The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How do you edit default bbcode?
How do you edit default bbcode? I forgot how to do this
|
#2
|
|||
|
|||
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! |
#3
|
||||
|
||||
it's the [img] bbcode I'm trying to edit.
--------------- Added [DATE]1248497420[/DATE] at [TIME]1248497420[/TIME] --------------- no one knows??? Woooooooooooooooooooooooooooow :-( |
#4
|
||||
|
||||
Modify the BB code handler for the IMG tag, then you can do whatever the hell you want in processing the tag.
|
#5
|
|||
|
|||
yes but where I need to go to do it?
|
#6
|
|||
|
|||
I believe you would need to change the function handle_bbcode_img() in includes/class_bbcode.php.
|
#7
|
|||
|
|||
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.
|
#8
|
|||
|
|||
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.
|
#9
|
|||
|
|||
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! |
#10
|
|||
|
|||
Thanks, I didn't know that. I thought I had tried that and had it tell me that the code already existed.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|