Advertisement:

Author Topic: Automatically parsing HTML in posts without [html] tags  (Read 448 times)

Offline Aaron10

  • Full Member
  • ***
  • Posts: 515
  • Gender: Male
Automatically parsing HTML in posts without [html] tags
« 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?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,409
    • StoryBB/StoryBB on GitHub
Re: Automatically parsing HTML in posts without [html] tags
« Reply #1 on: January 26, 2019, 03:25:14 PM »
Use the Simple Audio Video Embed mod - it just embeds from having the link.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Aaron10

  • Full Member
  • ***
  • Posts: 515
  • Gender: Male
Re: Automatically parsing HTML in posts without [html] tags
« Reply #2 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?

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,508
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Automatically parsing HTML in posts without [html] tags
« Reply #3 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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Aaron10

  • Full Member
  • ***
  • Posts: 515
  • Gender: Male
Re: Automatically parsing HTML in posts without [html] tags
« Reply #4 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.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,508
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Automatically parsing HTML in posts without [html] tags
« Reply #5 on: January 26, 2019, 03:41:21 PM »
Yes it does unless it is a  link to a direct .mp4 or media file.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Aaron10

  • Full Member
  • ***
  • Posts: 515
  • Gender: Male
Re: Automatically parsing HTML in posts without [html] tags
« Reply #6 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.