vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Minimum Characters Per Thread Title (https://vborg.vbsupport.ru/showthread.php?t=160566)

matrex722 05-31-2012 10:19 PM

is this working with 3.8.7
i was looking for away to that in admincp setting but i did not find

kpmedia 08-29-2012 05:48 AM

Quote:

Originally Posted by matrex722 (Post 2335226)
is this working with 3.8.7
i was looking for away to that in admincp setting but i did not find

Yes, it works in 3.8.7.
And the option is in the "Message Posting and Editing" section, about halfway down.

I realize this is a slow reply, but it may help others. ;)

kpmedia 08-16-2014 11:49 PM

Chrome browser is somehow ignoring this mod now.

valdet 11-13-2014 10:38 AM

Quote:

Originally Posted by kpmedia (Post 2511602)
Chrome browser is somehow ignoring this mod now.

You have to edit the template in order to work in Chrome too.

Replace the minimum_characters template with following

Code:

<script type="text/javascript">
<!--
function validatemessage(messagetext, subjecttext, minchars)
{
var kontrol = PHP.trim(stripcode(subjecttext, false, ignorequotechars));

        if (subjecttext.length < $vboptions[mincharters])
        {
                // subject not specified

                alert('<phrase 1="$vboptions[mincharters]">$vbphrase[must_enter_subject2]</phrase>');
                return false;
        }
        else
        {
                var stripped = PHP.trim(stripcode(messagetext, false, ignorequotechars));

                if (stripped.length < minchars)
                {
                        // minimum message length not met
                        alert(construct_phrase(vbphrase['message_too_short'], minchars));
                        return false;
                }
                else if (typeof(document.forms.vbform) != 'undefined' && typeof(document.forms.vbform.imagestamp) != 'undefined')
                {
                        // This form has image verification enabled
                        document.forms.vbform.imagestamp.failed = false;

                        if (document.forms.vbform.imagestamp.value.length != 6)
                        {
                                alert(vbphrase['complete_image_verification']);
                                document.forms.vbform.imagestamp.failed = true;
                                document.forms.vbform.imagestamp.focus();
                                return false;
                        }
                        else
                        {
                                return true;
                        }
                }
                else
                {
                        // everything seems ok
                        return true;
                }
        }
}
// -->
</script>

Basically it just removes the Chrome controls from template.


All times are GMT. The time now is 09:45 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.01039 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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