Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Aaron10 on January 26, 2019, 03:07:35 PM

Title: Automatically parsing HTML in posts without [html] tags
Post by: Aaron10 on January 26, 2019, 03:07:35 PM
I would like to allow "basic HTML in posts" but without the need of users having to wrap html tags around their HTML. Mainly for embedding content from video/music websites. An easy way of doing this maybe would be to wrap the html tags around the entire post (but without the tags being displayed in the post field) perhaps?
Title: Re: Automatically parsing HTML in posts without [html] tags
Post by: Arantor on January 26, 2019, 03:25:14 PM
Use the Simple Audio Video Embed mod - it just embeds from having the link.
Title: Re: Automatically parsing HTML in posts without [html] tags
Post by: Aaron10 on January 26, 2019, 03:36:47 PM
I had thought of that (having used it previously) but do you not need to have specific websites coded inside of it? For example, using <video> would still require the post to have html tags?
Title: Re: Automatically parsing HTML in posts without [html] tags
Post by: vbgamer45 on January 26, 2019, 03:38:48 PM
You just grab the link from the address bar for the supported video/audio sites and put that in your post.
Title: Re: Automatically parsing HTML in posts without [html] tags
Post by: Aaron10 on January 26, 2019, 03:40:08 PM
I know thats how that mod works, but like you said it has to be a supported site.
Title: Re: Automatically parsing HTML in posts without [html] tags
Post by: vbgamer45 on January 26, 2019, 03:41:21 PM
Yes it does unless it is a  link to a direct .mp4 or media file.
Title: Re: Automatically parsing HTML in posts without [html] tags
Post by: Aaron10 on January 26, 2019, 07:08:20 PM
Ah okay so it still works even if its a direct link? Didn't know that. Thanks.