
07-20-2011, 07:20 PM
|
|
|
Join Date: Oct 2010
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Can someone point me in the right direction, I did read and, I am not trying to be spoon fed, but for some reason I can not seem to find the 4 template lines to replace. I have searched and searched. I do not see it in the below templates when I opened them and to top it off, I dont see a template for 8WR_media_details_edit. Any help would be appreciated in getting this mod fixed to work with vb4.14 would be greatly appreciated. I replaced the template lines in the media_ajax_comment.js file with no problems.
Respectfully,
KP
Quote:
Originally Posted by Gemma
8WR_media_comment
8WR_media_details
8WR_media_details_edit
8WR_media_submit
In the above templates, find (in all 4 templates)
Code:
.prepare_submit(this.inputname.value, {vb:raw vboptions.postminchars})
Replace with
Code:
.prepare_submit(0, {vb:raw vboptions.postminchars})
Then in your media_ajax_comment.js file, find
Code:
function post_comment(mid)
{
if (!fetch_object('vB_Editor_QR_textarea').value)
{
return false;
}
fetch_object('commentsubmit').value = vbphrase['post_comment_wait'];
fetch_object('commentsubmit').disabled = true;
YAHOO.util.Connect.asyncRequest("POST", "media_ajax.php?do=comment", {
success: send_comment,
failure: vBulletin_AJAX_Error_Handler,
timeout: 15000
}, SESSIONURL + 'securitytoken=' + SECURITYTOKEN + "&mid=" + mid + "&message=" + PHP.urlencode(fetch_object('vB_Editor_QR_textarea').value));
return false;
}
And replace that with
Code:
function post_comment(mid)
{
var inptval=vB_Editor['vB_Editor_QR'].get_editor_contents();
if(!vB_Editor['vB_Editor_QR'].prepare_submit(0, 0)) {
return false;
}
fetch_object('commentsubmit').value = vbphrase['post_comment_wait'];
fetch_object('commentsubmit').disabled = true;
YAHOO.util.Connect.asyncRequest("POST", "media_ajax.php?do=comment", {
success: send_comment,
failure: vBulletin_AJAX_Error_Handler,
timeout: 15000
}, SESSIONURL + 'securitytoken=' + SECURITYTOKEN + "&mid=" + mid + "&message=" + PHP.urlencode(inptval));
return false;
}
|
|