XF 1.4 Add "iframe" into a topic

Mike

XenForo developer
Staff member
The only way to get something like that into a post would be with a custom BB code.
 

Betclever

Active member
@Brogan

Not to miss respect to you but what can I do with this tuto?

I'm not a dev. If I ask help, it's to avoid this!
This tuto is chinese for newbie like me.

pffffff
 

Betclever

Active member
@Mike

I have checked the link above but it is chinese for me.
What must I write in these cases?

I only have a Iframe code...
I understand what I can add as title and description but for html replacement and the other options are chinese for a newbie like me...

How can I put this Iframe code with the functionn BBcode?

Thanks.
 

Mike

XenForo developer
Staff member
Create the BB code with whatever tag name (let's call it "espn") and title you want. Enter the HTML you want to see in the HTML replacement box. Enable the "Display HTML replacement when empty" option.

Then in the post enter:
Code:
[espn][/espn]
Your iframe should appear.
 

Mike

XenForo developer
Staff member
With that regex, you probably want:
#^https?://#i

However, that may not be the issue. Can you provide a link where the BB code was used and show what you typed in the post?
 

Mike

XenForo developer
Staff member
It won't show anything to users that they can't see -- you're seeing things because it's loading the page in your admin context; if another user loads the iframe, they'll see it in their context.

Unfortunately, I do really need to see it in place to confirm what's going on.
 
Top