PDA

View Full Version : New Posting Features - Minimum Characters Per Thread Title


Atakan KOC
10-18-2007, 10:00 PM
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=160566) - Nominate for MOTM (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=160566&type=1)
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=159378) - Nominate for MOTM (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=160566&type=1)
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
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
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
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
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

<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.