Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: SoutlinK on August 14, 2007, 12:38:22 PM

Title: HTML only for Admins
Post by: SoutlinK on August 14, 2007, 12:38:22 PM
Its possible allow all html tags, but only to admin users?
Becasue I am writing a mod/portal, but but nedd allow html in post, but this html must be only allowed to admins.

plz anyone can help me

thanks
Title: Re: HTML only for Admins
Post by: Thantos on August 14, 2007, 12:42:32 PM
In 1.1 admins can use the [html] bbc tags to post any HTML they want.  It is restricted to admins.

Quote me to see it in action.

Blarg
Title: Re: HTML only for Admins
Post by: SoutlinK on August 14, 2007, 01:01:16 PM
I trayed to put the html that i want and it dont work :S

Ok sorry was my fault, it works
Sorry Sorry Sorry  :-[ :-[ :-[ :-[ :-[ :-[ :-[
Title: Re: HTML only for Admins
Post by: karlbenson on August 14, 2007, 01:05:21 PM

[html]
Put your html here

[/html]


Don't use any of the following tags inside the html
<html><body><form><head>

Using them with prevent the page w3c validation and/or cause unknown issues and/or prevent quickedit/quick reply from working,
Title: Re: HTML only for Admins
Post by: codenaught on August 14, 2007, 01:07:13 PM
Can you tell us what code you are trying to use? It definitely should work with valid xhtml code, but may act up if something is unusual about the code you use.

Also, you aren't using SMF 1.0 are you? This feature was added in SMF 1.1.

Update: Just saw what karlbenson posted. That is important to check too.
Title: Re: HTML only for Admins
Post by: SoutlinK on August 14, 2007, 01:08:07 PM
im sorry, guys,
It works perfect

Im really sorry :-[:-[:-[:-[:-[:-[:-[
Title: Re: HTML only for Admins
Post by: karlbenson on August 14, 2007, 01:10:22 PM
No worries.
I'm glad you got it working.  :D
Title: Re: HTML only for Admins
Post by: Sincere on August 24, 2007, 06:29:34 PM
Quote from: Thantos on August 14, 2007, 12:42:32 PM
In 1.1 admins can use the [html] bbc tags to post any HTML they want.&nbsp; It is restricted to admins.

Quote me to see it in action.

<strong><em>Blarg</em></strong>


thank you very much for this very helpful post.

I love smf.