BB code help

chibik

Active member
Registered
Joined
May 21, 2019
Messages
25
Points
13

Reputation:

Hello,

I am trying to create a bb code where when i put in a link between [custom][/custom] it will show up as an image in the post and when clicking on it it will go to that page. Here is the code i used, my issue is that i cannot get it to work it {text} bracket inside href, it keeps breaking. Any help would be appreciated

<a href="{text}"><img src="//i.imgur.com/S99ny84.png" width="300" height="225" style="border:1px solid black;" /></a>
 

chibik

Active member
Registered
Joined
May 21, 2019
Messages
25
Points
13

Reputation:

Thank you, i looked at yours and its almost like mine but i am looking for a image, to be linked to whatever link is put in inside the tag. I got it to work by adding //{text} but then it only works with links that are just enxf.net but i need it to work with https://enxf.net and vice versa. That Https:// is what causing the issue with {text}
 

jim

Well-known member
Registered
Joined
Aug 20, 2021
Messages
131
Points
38

Reputation:

Here, instead of {text} use {option} :p

Works with Https

1644912421058.jpg


Here you need to tick the option parameter

1644912479398.png


Enable stop parsing

1644912499014.png
 
Last edited:

chibik

Active member
Registered
Joined
May 21, 2019
Messages
25
Points
13

Reputation:

Oh i see what you did, you added the link after = within the bracket. Is there a way to do it without putting inside the bracket instead put the link where it says link in your screenshot? I have that achieved with my html code just cant get that https:// to work

Im just trying to simplify it to end users so they dont have to go about editing here and there, i want them paste and go
 

chibik

Active member
Registered
Joined
May 21, 2019
Messages
25
Points
13

Reputation:

Oh my god, i got it to work, and it works with {text} i think the Stop Parsing BB code made it work, thank you very much, i am very greatful
 

jim

Well-known member
Registered
Joined
Aug 20, 2021
Messages
131
Points
38

Reputation:

Glad you got it to work. :)
 
Top