Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Allow any form of HTML syntax in a post

Started by Naytheet, September 16, 2023, 09:57:26 AM

Previous topic - Next topic


Hello, as the main admin, I'd like to use my js/html scripts in my SMF, but I see it's not possible and there is no mod allowing this. Do I have to create another mod?
In me sanitas et robur


Inside a post? Or just on the forum overall? In a post you can do html tags as admin
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more! -  Paid Modifications for SMF

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

Aleksi "Lex" Kilpinen

That would be [HTML] [/HTML]. This works for admins only, like vbgamer45 said.

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF


I tried it, it doesn't work when I preview the message.
In me sanitas et robur


DO NOT pm me for support!

Diego Andrés

Check in the BBC settings if it's enabled.
Features and Options > Bulletin Board Code > Enable basic HTML in posts

SMF Tricks - Free & Premium Responsive Themes for SMF.


In me sanitas et robur


actually it works, lol, but I want it to deal with js too and <style> tag.

EDIT : Or maybe I can "import" a stuff from my domain, showing it within an iframe?
In me sanitas et robur


can you explain exactly what you are trying to do? so far you have not told us what your exact goal is.


Actually I want to do the same of what I had before, i.e. publishing a news containing a script of mine including a whole podcast that can be played directly on in the news post. The podcast was done by me, you can see every song played in a streaming radio I'm sharing with others. The old version of the newspage is there and the forum post is there , struggled to make it work there too, so I guess I'll choose an iframe.
In me sanitas et robur


I had to manually change the message in the db for the iframe to show, HTML tags didn't do the job entirely. Maybe it would deserve some MOD, but mobile phones etc. responsiveness would not be taken care of.

You can test this by editing the message in the db :

[HTML]<iframe src="..."/>[/HTML]
I realize an iframe would be for a really specific use, like a javascript with maybe some css. Thanks for the help though.
In me sanitas et robur