Advertisement:

Author Topic: HTML only for Admins  (Read 3699 times)

Offline SoutlinK

  • Semi-Newbie
  • *
  • Posts: 18
HTML only for Admins
« 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

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,163
  • Gender: Male
Re: HTML only for Admins
« Reply #1 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

Offline SoutlinK

  • Semi-Newbie
  • *
  • Posts: 18
Re: HTML only for Admins
« Reply #2 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  :-[ :-[ :-[ :-[ :-[ :-[ :-[
« Last Edit: August 14, 2007, 01:07:08 PM by SoutlinK »

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,630
  • Gender: Male
    • Lifeproof
Re: HTML only for Admins
« Reply #3 on: August 14, 2007, 01:05:21 PM »
Code: [Select]
[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,

Offline codenaught

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,653
  • Gender: Male
  • Formerly Known As akabugeyes
Re: HTML only for Admins
« Reply #4 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.
Dev Consultant
Former SMF Doc Coordinator

Offline SoutlinK

  • Semi-Newbie
  • *
  • Posts: 18
Re: HTML only for Admins
« Reply #5 on: August 14, 2007, 01:08:07 PM »
im sorry, guys,
It works perfect

Im really sorry :-[:-[:-[:-[:-[:-[:-[

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,630
  • Gender: Male
    • Lifeproof
Re: HTML only for Admins
« Reply #6 on: August 14, 2007, 01:10:22 PM »
No worries.
I'm glad you got it working.  :D

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
Re: HTML only for Admins
« Reply #7 on: August 24, 2007, 06:29:34 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.

Do you need a special mod for your smf forums? contact me for a quote.