vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - 8WayRun.Com - Media Library (https://vborg.vbsupport.ru/showthread.php?t=240677)

weexto 07-02-2011 04:55 PM

I still have the same problem
after adding the video: I have this message

The description you have entered is too short (0 characters). Please lengthen your description to at least 5 characters.

Can you help me ?

liefdesdichter 07-02-2011 05:25 PM

Quote:

Originally Posted by michal72 (Post 2215879)
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", {
        
successsend_comment,
        
failurevBulletin_AJAX_Error_Handler,
        
timeout15000
    
}, 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(00)) {
        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", {
        
successsend_comment,
        
failurevBulletin_AJAX_Error_Handler,
        
timeout15000
    
}, SESSIONURL 'securitytoken=' SECURITYTOKEN "&mid=" mid "&message=" PHP.urlencode(inptval));

    return 
false;



BTW
Jaxel very nice mod!

problem fixed thank you :up:

weexto 07-02-2011 05:28 PM

after making the changes I have always this problem: (

sadiq6210 07-02-2011 07:45 PM

Quote:

Originally Posted by weexto (Post 2215941)
after making the changes I have always this problem: (

Ctrl + F5

humptyboy 07-03-2011 05:32 PM

Having the same problem with the so called character count - I input 500 characters and I get a message saying "Navigate Away" or "Stay On" this page. Nav away and the stupid character count warning appears. Stay and you just sit there. Pressing Ctrl+F5 made no difference.

appsfinder 07-03-2011 05:47 PM

Quote:

Originally Posted by weexto (Post 2215930)
I still have the same problem
after adding the video: I have this message

The description you have entered is too short (0 characters). Please lengthen your description to at least 5 characters.

Can you help me ?

this happened to me when submiting media fom nav bar :( but works when using Submit Media at bottom of page main page?:) strange!

so for now ive removed submit media from navbar as a work around. vb 4.1.4

michal72 07-04-2011 08:06 AM

Quote:

Originally Posted by appsfinder (Post 2216314)
this happened to me when submiting media fom nav bar :( but works when using Submit Media at bottom of page main page?:) strange!

so for now ive removed submit media from navbar as a work around. vb 4.1.4

Try this

Replace in media_ajax_submit.js:

PHP Code:

fetch_object('vB_Editor_001_textarea').value description

with:
PHP Code:

vB_Editor['vB_Editor_001'].write_editor_contents(description); 


And:
PHP Code:

function validate()
{
    var 
error ''

with:
PHP Code:

function validate()
{
    
vB_Editor['vB_Editor_001'].prepare_submit(00);
    var 
error ''

BR

humptyboy 07-04-2011 08:33 AM

michal72 you are not only a lifesaver you are a star too - thank you so much for the time and effort you put in to help coding noobs like me lol. This fix works perfectly!

temsamane 07-04-2011 08:35 AM

Quote:

Originally Posted by weexto (Post 2215930)
I still have the same problem
after adding the video: I have this message

The description you have entered is too short (0 characters). Please lengthen your description to at least 5 characters.

Can you help me ?

i have the same problem.. who can help us??

Gn_Snake 07-04-2011 08:13 PM

Quote:

Originally Posted by michal72 (Post 2215879)
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", {
        
successsend_comment,
        
failurevBulletin_AJAX_Error_Handler,
        
timeout15000
    
}, 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(00)) {
        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", {
        
successsend_comment,
        
failurevBulletin_AJAX_Error_Handler,
        
timeout15000
    
}, SESSIONURL 'securitytoken=' SECURITYTOKEN "&mid=" mid "&message=" PHP.urlencode(inptval));

    return 
false;



BTW
Jaxel very nice mod!

Sorry but i don't have 8 Template, i have:
Code:

8WR_media_comment
8WR_media_details
8WR_media_details_edit
8WR_media_submit

:confused:


All times are GMT. The time now is 08:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03770 seconds
  • Memory Usage 1,796KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (12)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete