• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Edit img BBCode

#1
Hello,

I'm looking for a way to edit the default BBCode for the img tag.

Here is what I want to do:

Right now
Code:
[img]url[/img]
is rewritten to
Code:
<img src="url">
What I want to do is add something in between.

I want to rewrite
Code:
[IMG]url[/IMG]
to
Code:
<img src="http://example.org/url">
Anyone who can help me?

Regards

tr1cky
 

OUTL4W

Active member
#4
I created a custom [img] bbcode that when hovering over them causes 10px round corners...
html replacement:
Code:
<img src="{text}" class="hvr-round-corners" />
and apparently this overwrote the default bbcode

don't see why you couldn't do the same thing by creating a new [img] custom bbcode..
html replacement:
Code:
<img src="http://example.org/{text}">
could give a try and see if it works...if not delete the bbcode...
 
#5
Right now I did this the most dirtiest way possible by editing the Base.php of the BBCode-Parser.
Can a xenforo staff confirm that adding a custom img BBCode tag overwrites the default img bbcode tag?
@Brogan @Jeremy