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)

Atakan KOC 10-18-2007 10:00 PM

Minimum Characters Per Thread Title
 
Minimum Characters Per Thread Title

This hack helps to chosse the minimum nuber of characters when writing a new message. This hack needed why? Some members write messages with 2 characters which is not clear. So the user can write hello instead of hi for example. As the forum cultere is different from chat culture. If you have problems I will try to help you immediatelly.

Mark as Installed - Nominate for MOTM
install

Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-mincharters.xml' from your computer then press 'Import'

Modifications Info

Plugin : 2
Phrases : 3
Template : 1
Setting : 1

Versions:
v1.0 - 19 Octaber 2007
-First release


This hack helps to chosse the minimum nuber of characters when writing a new message. This hack needed why? Some members write messages with 2 characters which is not clear. So the user can write hello instead of hi for example. As the forum cultere is different from chat culture. If you have problems I will try to help you immediatelly.

Mark as Installed - Nominate for MOTM
install


Masiello 10-19-2007 07:35 AM

Wow! First post :)
Thanks for this, installed.

ninjamaster 10-19-2007 07:46 AM

thanks for this nice work

Shadow777 10-19-2007 04:07 PM

thanks..
thanks thanks de:D
Atakan Bey turk?e tercume eder misiniz biraz :)

Atakan KOC 10-19-2007 04:17 PM

Quote:

Originally Posted by Shadow777 (Post 1363816)
thanks..
thanks thanks de:D
Atakan Bey turk?e tercume eder misiniz biraz :)

Hehehe. Ok.... Minimum Characters Per Thread Title;

yani yeni konu oluştururken en az girilmesi gereken başlık karakter sayısını belirliyorsun.

Shadow777 10-19-2007 04:20 PM

Quote:

Originally Posted by Atakan KOC (Post 1363823)
Hehehe. Ok.... Minimum Characters Per Thread Title;

yani yeni konu oluştururken en az girilmesi gereken başlık karakter sayısını belirliyorsun.

thanks

iogames 10-19-2007 09:43 PM

u r Ok... lol gr8 1! :p

maxicep 10-24-2007 12:26 AM

Thanks / installed

yoyoyoyo 11-05-2007 09:41 AM

thanks much.

Since people like screenshots...

kpmedia 01-25-2010 12:45 AM

Excellent. Just what I needed. I'm so tired of "help me" and "look at this" crap post titles. I want to know what's there before I have to click on it. Better SEO, too.

Looks to work on vB 3.7 and 3.8 both.

Thanks! :)

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 05:08 AM.

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.01220 seconds
  • Memory Usage 1,754KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete