Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Changing default Format comments as setting
rayk
New
Hey guys, I've upgraded to 1.1.2 of Vanilla - now I have BBInsertBar and BBCodeParser installed and running. So wondering how to set the comment section to have the default as BB code and not Text. It's the little thing "Format comments as (*) Text ( ) Html" , just instead of Html I have BBcode.
Thanks for the help in advance.
0
This discussion has been closed.
Comments
if ( $Context->Session->UserID > 0 && $Context->Session->User->Permission('PERMISSION_HTML_ALLOWED') ) { //Make BBCode formater the only formatter available to post a new comment or to edit an old one $Context->Configuration['DEFAULT_FORMAT_TYPE'] = 'BBCode'; $Context->Session->User->DefaultFormatType = 'BBCode'; $Context->Session->User->Preferences['ShowFormatSelector'] = 0; }
Example problem URL:
[url=http://www.amazon.co.uk/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.co.uk%2FDisney-Classics-Animals%2Fdp%2FB000DN5UV8%3Fie%3DUTF8%26s%3Ddvd%26qid%3D1173748176%26sr%3D1-4&tag=moma-21&linkCode=ur2&camp=1634&creative=6738]Amazon[/url]
Posted: Friday, 23 March 2007 at 7:44AM (AEDT)
if u want to add a class to an image is bbcode able to do that
@others: because DefaultFormatter can hide the selector for everyone upon admin request, I'd like DefaultFormatter to be able to hide the option "Show the comment format type selector when adding comments" in the account>forum preferences, somebody knows how to do that ?
#AccountPage #ShowFormatSelector { display:none; }
but that doesnt get rid of the words
Comment form