Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: sahertian - huhtikuu 25, 2005, 07:00:12 AP

Otsikko: Disallow BBC/HTML only in signature...
Kirjoitti: sahertian - huhtikuu 25, 2005, 07:00:12 AP
hello from a newbee  ;)

How do i disallow users to use HTML/ BBC-codes in their signature? I just want them to use plain text for obvious reasons... :)

thanx in advance!

Richard
Otsikko: Re: Disallow BBC/HTML in signature...
Kirjoitti: DrDom - huhtikuu 25, 2005, 09:19:34 AP
go to admin -> Edit Features and Options

look for
Enable basic HTML in posts     
Enable bulletin board code (BBC)

just make certain the these 2 are NOT checked

then in this
Disabled BBC Code (comma separated)
you can also specify which BBC codes you want to ban

also dont forget that bb codes can sometimes be useful.
Otsikko: Re: Disallow BBC/HTML in signature...
Kirjoitti: sahertian - huhtikuu 25, 2005, 09:39:33 AP
thanx for the quick reply!

I guess I wasn't very clear on this, what I meant was how to disallow it ONLY in the signature box because disabling BBC/HTML in the configuration wil disallow it as well in the 'regular' posts and that's absolutely not what I want  ::)

greetings,

Richard
Otsikko: Re: Disallow BBC/HTML only in signature...
Kirjoitti: DrDom - huhtikuu 25, 2005, 10:18:40 AP
sorry, thats my mistake, I assumed you meant to disable it completely.
I dont really know any more, so perhaps it might be best to get an answer from someone
more knowledgeable.
Otsikko: Re: Disallow BBC/HTML only in signature...
Kirjoitti: Oldiesmann - huhtikuu 25, 2005, 12:19:45 IP
Sources/Load.php

Find (around line 521)
$profile['signature'] = doUBBC($profile['signature']);

And remove it
Otsikko: Re: Disallow BBC/HTML only in signature...
Kirjoitti: johnatthebar - heinäkuu 16, 2006, 08:40:47 IP
Does that disallow the basic HTML as well? Or just the BB code?
Otsikko: Re: Disallow BBC/HTML only in signature...
Kirjoitti: Elmacik - heinäkuu 16, 2006, 09:05:27 IP
Both, because html is also handled by BBC tags.