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.
BBcode Buttons & Smileys
I had in my old forum BBcode Buttons and Smileys Buttons:
I need the same feature in Vanilla and I think the "BBCode and Smilies (v1.0)"-Extension will do it. Is it right?
The Smileys can be converted from or with the "Transmogrifier"-Extension. I only need some code that inserts the and ....
BBcode would be also very useful to add the bbcodes automatically.
I need the same feature in Vanilla and I think the "BBCode and Smilies (v1.0)"-Extension will do it. Is it right?
The Smileys can be converted from or with the "Transmogrifier"-Extension. I only need some code that inserts the and ....
BBcode would be also very useful to add the bbcodes automatically.
0
This discussion has been closed.
Comments
$this->CallDelegate('CommentForm_PreCommentsInputRender'); echo '<li> <label for="CommentBox"> <a href="./" id="CommentBoxController" onclick="' ."ToggleCommentBox('".$this->Context->Configuration['WEB_ROOT']."ajax/switch.php', '".$this->Context->GetDefinition('SmallInput')."', '".$this->Context->GetDefinition('BigInput')."'); return false;".'">'.$this->Context->GetDefinition($this->Context->Session->User->Preference('ShowLargeCommentBox')?'SmallInput':'BigInput').'</a> [= Delegate goes here. The echo will need to be split up into two parts. =] '.$this->Context->GetDefinition('EnterYourComments').' </label> <textarea name="Body" class="' .($this->Context->Session->User->Preference('ShowLargeCommentBox') ? 'LargeCommentBox' : 'SmallCommentBox') .'" id="CommentBox" rows="10" cols="85">' .$Comment->Body .'</textarea> </li> '.$this->GetPostFormatting($Comment->FormatType) .'</ul>'; $this->CallDelegate('CommentForm_PreButtonsRender');
Ditto for the Discussion Form template (after the #CommentBoxController link, but before the "enter your comments" text).
To be honest, I don't know what besides a comment toolbar extension would use something like this, so I don't blame you for not putting one there.
It would be a great extension for Vanilla
echo '<li> <label for="CommentBox"> <a href="./" id="CommentBoxController" onclick="' ."ToggleCommentBox('".$this->Context->Configuration['WEB_ROOT']."ajax/switch.php', '".$this->Context->GetDefinition('SmallInput')."', '".$this->Context->GetDefinition('BigInput')."'); return false;".'">'.$this->Context->GetDefinition($this->Context->Session->User->Preference('ShowLargeCommentBox')?'SmallInput':'BigInput').'</a>'; $this->CallDelegate('CommentForm_PostCommentToggle'); echo $this->Context->GetDefinition('EnterYourComments').' </label> <textarea name="Body" class="' .($this->Context->Session->User->Preference('ShowLargeCommentBox') ? 'LargeCommentBox' : 'SmallCommentBox') .'" id="CommentBox" rows="10" cols="85">' .$Comment->Body .'</textarea> </li>
Makes no difference to me really, since I'd be tossing the same code in both places.
My hangover apologizes.
Fixed now.
I suppose now I have to write the damn thing.
http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=26
*waiting for BBcode* )))))))))))))))
Just unrar and add the vanillacons folder into the extensions folder on your server