XF 2.0 HTML in posts

Do you mean there is no option to allow HTML in posts at all?

I wouldm also like to know how to allow embedded tweets. This is the forum imported from vBulletin 4 where there were several posts with embedded tweets.
 
Do you mean there is no option to allow HTML in posts at all?
You can't post pure HTML into posts as it can cause security issues. Posts use BBCode (the output of which can create HTML but it is safe).

You can embed tweets simply by copying the link to a tweet (from the dropdown at the top right of a tweet) and then posting that link into a post. The Media Sites in 2.0 support Twitter so it will automatically embed the tweet like this:

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
I have an ad I want to put in the middle of a post.

Basically this:

Code:
<a href="https://indyskipass.com/" target="_blank" rel="noopener sponsored">
<img src="https://nyskiblog.com/wp-content/uploads/2020/09/indy-pass-320.gif">

Any way to do that?
 
That's just an image linked to a URL - you can do that with bb code.

Code:
[URL='https://www.indyskipass.com/'][IMG]https://nyskiblog.com/wp-content/uploads/2020/09/indy-pass-320.gif[/IMG][/URL]
 
I tried this:

Code:
[CENTER][URL='https://indyskipass.com/?utm_source=referral&utm_medium=referral&utm_campaign=partner-website'][ATTACH type="full"]5788[/ATTACH][/URL][/CENTER]

but I get this:

Screen Shot 2020-09-04 at 12.11.11 PM.webp
 
There are definite ways with PHP to only accept certain HTML tags so that someone can't add in JS, etc...

It would probably be a custom add on to develop where you could determine in the ACP which tags can render such as <b> is allowed, but <script> would render as text (unless you like living dangerously).

I'm not seeing any add on to accomplish this though.
 
This addon might help

 
Top Bottom