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.
FCKeditor Issue
jross
New
MySchizoBuddy C- Here's my source code you requested to my FCKeditor Issue. I only posted the form code.
I don't get the buttons at all and the text box doesn't appear. I'm fairly certain all the scripts are in their proper place.
<div id="Form" class="AddComments">
<fieldset>
<legend>Add your comments</legend><form id="frmPostComment" method="post" action="http://www.domain.com/vc/post.php"><input type="hidden" name="CommentID" value="0" />
<input type="hidden" name="DiscussionID" value="733" />
<input type="hidden" name="PostBackAction" value="SaveComment" />
<input type="hidden" name="UserCommentCount" value="0" />
<input type="hidden" name="AuthUserID" value="0" />
<ul><li>
<label for="WhisperUsername">Whisper your comments to <small>(optional)</small></label>
<input id="WhisperUsername" name="WhisperUsername" type="text" value="" class="Whisper AutoCompleteInput" maxlength="20" />
<script type="text/javascript">
var WhisperAutoComplete = new AutoComplete("WhisperUsername", false);
WhisperAutoComplete.TableID = "WhisperAutoCompleteResults";
WhisperAutoComplete.KeywordSourceUrl = "/vc/ajax/getusers.php?Search=";
</script>
</li>
<li>
<label for="CommentBox">
<a href="./" id="CommentBoxController" onclick="ToggleCommentBox('/vc/ajax/switch.php', 'small input', 'big input'); return false;">big input</a>Enter your comments
</label>
<textarea name="Body" class="SmallCommentBox" id="CommentBox" rows="10" cols="85"></textarea>
</li>
<li class="Invisible"><input type="hidden" name="FormatType" value="FCKeditor" /></li></ul><div id="Vanillacons"><select name="VanillaconsDir" class="LargeSelect" onchange="changeSmilies(this.options[this.selectedIndex].value);" id="VanillaconsComboBox">
<option value="cool" >cool</option>
<option value="happy" >happy</option>
<option value="love" >love</option>
<option value="standard" selected="selected">standard</option>
<option value="tongue" >tongue</option>
</select>
<div id="VanillaconsSmilies"><ul><li><span onclick="insertSmilie('angry');" class="VanillaconsLink"><img src="/vc/extensions/Vanillacons/smilies/standard/angry.gif" alt="" /></span></li><li><span onclick="insertSmilie('bigsmile');" class="VanillaconsLink"><img src="/vc/extensions/Vanillacons/smilies/standard/bigsmile.gif" alt="" /></span></li><li><span onclick="insertSmilie('confused');" class="VanillaconsLink"><img src="/vc/extensions/Vanillacons/smilies/standard/confused.gif" alt="" /></span></li><li><span onclick="insertSmilie('cool');" class="VanillaconsLink"><img src="/vc/extensions/Vanillacons/smilies/standard/cool.gif" alt="" /></span></li><li><span onclick="insertSmilie('cry');" class="VanillaconsLink"><img src="/vc/extensions/Vanillacons/smilies/standard/cry.gif" alt="" /></span></li><li><span onclick="insertSmilie('devil');" class="VanillaconsLink"><img src="/vc/extensions/Vanillacons/smilies/standard/devil.gif" alt="" /></span></li><li><span onclick="insertSmilie('neutral');" class="VanillaconsLink"><img src="/vc/extensions/Vanillacons/smilies/standard/neutral.gif" alt="" /></span></li><li><span onclick="insertSmilie('sad');" class="VanillaconsLink"><img src="/vc/extensions/Vanillacons/smilies/standard/sad.gif" alt="" /></span></li><li><span onclick="insertSmilie('shamed');" class="VanillaconsLink"><img src="/vc/extensions/Vanillacons/smilies/standard/shamed.gif" alt="" /></span></li><li><span onclick="insertSmilie('shocked');" class="VanillaconsLink"><img src="/vc/extensions/Vanillacons/smilies/standard/shocked.gif" alt="" /></span></li><li><span onclick="insertSmilie('smile');" class="VanillaconsLink"><img src="/vc/extensions/Vanillacons/smilies/standard/smile.gif" alt="" /></span></li><li><span onclick="insertSmilie('surprised');" class="VanillaconsLink"><img src="/vc/extensions/Vanillacons/smilies/standard/surprised.gif" alt="" /></span></li><li><span onclick="insertSmilie('tongue');" class="VanillaconsLink"><img src="/vc/extensions/Vanillacons/smilies/standard/tongue.gif" alt="" /></span></li><li><span onclick="insertSmilie('wink');" class="VanillaconsLink"><img src="/vc/extensions/Vanillacons/smilies/standard/wink.gif" alt="" /></span></li></ul></div></div>
<ul><li><label for="Attachments">Attachments</label>
<input id="AttachmentFile" type="file" name="file" class="AttachmentInput" /></li></ul>
<script type="text/javascript" language="javascript">
var f = document.getElementById('frmPostComment');
f.encoding = 'multipart/form-data';
f.enctype = 'multipart/form-data';
</script>
<div class="Submit">
<input type="submit" name="btnSave" value="Add your comments" class="Button SubmitButton AddCommentsButton" onclick="Wait(this, 'Wait');" /><input name="btnPreview" value="Preview Post" class="Button SubmitButton PreviewButton" type="button" onclick="showpreview('http://www.Domain.com/vc/', {id : 12517, name : 'j'});" /> </div>
</form>
</fieldset>
0
This discussion has been closed.
Comments
I wanna see the head code. check if the javascript is entered correctly
safari doesnt show up any fck .
and the linebrake handling is a disaster
a linebrake looks like this:
with fck:
Hello
World
it should be:
Hello
World
any ideas?
try Firefox
and i noticed also the error, if youre browsing through a topic (pages like <1234>) than a popup appears with following the msg:
Error: The TEXTAREA with id or name set to "BODY" was not found.
how can i fix that?
once again, thanks for helping me here.
oh , and a anotherone here
could you try to make fck work with the UserInfo Tooltip? i realized it doesnt work, and my heart is bleeding
I'll post a better fix latter on
In default.php file where u have window.onload (). replace it with this
window.onload = function() { if (document.getElementById("CommentBox")) { var oFCKeditor = new FCKeditor("Body") ; oFCKeditor.BasePath = "' . $Configuration['WEB_ROOT'] . 'js/FCKeditor/" ; oFCKeditor.Config["CustomConfigurationsPath"] = "' . $Configuration['WEB_ROOT'] . 'extensions/FCKeditor/config.js" ; oFCKeditor.Config["StylesXmlPath"] = "' . $Configuration['WEB_ROOT'] . 'extensions/FCKeditor/fckstyles.xml" ; oFCKeditor.Config["EditorAreaCSS"] = "' . $Configuration['WEB_ROOT'] . 'extensions/FCKeditor/content.css"; oFCKeditor.ToolbarSet = "Vanilla" ; oFCKeditor.ReplaceTextarea() ; document.getElementById("CommentBoxController").style.display = "none"; } }
the tooltip is this one here
http://lussumo.com/addons/?PostBackAction=AddOn&AddOnID=106
open up default.php in fckeditor and change it to this
window.onload = function() { UserInfoTooltip.Init(); if (document.getElementById("CommentBox")) { var oFCKeditor = new FCKeditor("Body") ; oFCKeditor.BasePath = "' . $Configuration['WEB_ROOT'] . 'js/FCKeditor/" ; oFCKeditor.Config["CustomConfigurationsPath"] = "' . $Configuration['WEB_ROOT'] . 'extensions/FCKeditor/config.js" ; oFCKeditor.Config["StylesXmlPath"] = "' . $Configuration['WEB_ROOT'] . 'extensions/FCKeditor/fckstyles.xml" ; oFCKeditor.Config["EditorAreaCSS"] = "' . $Configuration['WEB_ROOT'] . 'extensions/FCKeditor/content.css"; oFCKeditor.ToolbarSet = "Vanilla" ; oFCKeditor.ReplaceTextarea() ; document.getElementById("CommentBoxController").style.display = "none"; } }
and in functions.js in userinfotooltip folder. remove this line
window.onload = function() { UserInfoTooltip.Init(); }
let me know if you need something for your website, a header graphic or such (= cookies)
thanks a lot it worked very well.