The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need help with Quick Reply in Mod...
Okay, this is the code for my Quick Reply Form in my mod...
Code:
require_once(DIR . '/includes/functions_editor.php'); $editorid = construct_edit_toolbar('',0,'nonforum',1,1,0,'qr'); Code:
$templater->register('editorid', $editorid); $templater->register('messagearea', $messagearea); Code:
<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script> <link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}editor.css" /> <link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}bbcode.css" /> <form action="media.php" name="vbform" method="post" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(this.inputname.value, {vb:raw vboptions.postminchars})"> <div name="commentform" id="commentform"> <div class="mediarow floatcontainer" style="padding: 10px;"> {vb:raw messagearea} </div> </div> <div style="padding-right: 30px; text-align: right;"> <input type="submit" class="button" name="commentsubmit" id="commentsubmit" value="{vb:phrase media_comment_submit}" /> </div> <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="do" value="comment" /> </form> Simple right? Looks like it should be working. However, I am having an issue where the buttons on the form (for bold, italics, etc) do not work. If I switch it from the Quick Reply to the Full Editor, the buttons work fine, its only in the Quick Reply that it doesnt work. Also, when using QR, I get the following error "Uncaught ReferenceError: vB_Text_Editor is not defined", which I do not get when using the FE. I have tried the HOW TO thread in the articles section, but I did not receive the answers I was looking for. Also, how do I disable the REQUIRE CLICK option? In VB3, I would use "$show['qr_require_click'] = 0;", but it appears that this function is no longer working. |
#2
|
||||
|
||||
All mod related questions should be asked at their own threads. The same goes for the styles, as per the rules here.
|
#3
|
|||
|
|||
WTF are you talking about?
|
#4
|
||||
|
||||
Now I saw that it was for your mod. I appologize as I thought that it was for another mod from the mod section. Hence my reply above
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|