Quote:
Originally Posted by michal72
Please try this:
Relapace in all 8 WR Media templates:
PHP Code:
.prepare_submit(this.inputname.value, {vb:raw vboptions.postminchars})
with
PHP Code:
.prepare_submit(0, {vb:raw vboptions.postminchars})
In media_ajax_comment.js replace:
PHP 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;
}
with
PHP 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;
}
BTW
Jaxel very nice mod!
|
WooW :up: working like a charm
Thanks brother
_________
Michal, could you help me on that?
I feel you are experience on this mod.
Quote:
Hi Jaxel
I know you don't support your vb mod anymore but I am trying from long time and really need your help, I will tell you the story and hope to help us.
About this mod.
https://vborg.vbsupport.ru/showthread.php?t=240677
I want to use this your vb media library as a wiki shown here:
http://www.8wayrun.com/wiki/index/
After a lot of works, I finished the layout but I have only one issue so I wish you can help me on that.
When I want to add new media, it ask me to put video link i.e youtube video link, but I use it as a wiki so there is no video to add.
Simply, I want to remove the option for video link and add the page without it. Now I can't add any new page unless I put video link, I want to cancel that.
which code should I remove Jaxel?
I tried to remove the video link box but I got this error
(Please fill the service ID and service VAL to submit new media)
I will appreciate your help
Best Regards;
Sadiq
|
I sent it from long time and there is no answer
I will appreciate your help Michal