s.molinari
Sun 16th Sep '01, 7:48am
Hello.
A user on our board asked this and I couldn't give him a logical answer (go figure) so now I'm here to ask the vB gods. ;)
The question: Why are the maximum PM characters devided by 2 in the "priv_sendprivmsg" template. Here is the code.
<script language="javascript">
<!--
var pmmaxchars = $pmmaxchars;
function validate(theform) {
if (theform.touser.value=="" || theform.message.value=="" || theform.title.value=="") {
alert("Bitte füll das Empfänger, Betreff und Nachricht Feld aus.");
return false; }
if (pmmaxchars != 0) {
if (theform.message.value.length > (pmmaxchars/2)) {
alert("Deine Nachricht ist zu lang.\n\nKürze Deine Nachricht auf "+(pmmaxchars/2)+" Zeichen.\nDeine Nachricht ist "+theform.message.value.length+" Zeichen lang.");
return false; }
else { return true; }
} else { return true; }
}
function checklength(theform) {
if (pmmaxchars != 0) { message = "\nDie maximale Nachrichtenlänge beträgt "+(pmmaxchars/2)+" Zeichen."; }
else { message = ""; }
alert("Deine Nachricht ist "+theform.message.value.length+" Zeichen lang."+message);
}
//-->
I checked this on our board and the setting we have is 5000 characters. But in the PM input mask it says only 2500 are allowed.
Whas up wit dat?
Scott
A user on our board asked this and I couldn't give him a logical answer (go figure) so now I'm here to ask the vB gods. ;)
The question: Why are the maximum PM characters devided by 2 in the "priv_sendprivmsg" template. Here is the code.
<script language="javascript">
<!--
var pmmaxchars = $pmmaxchars;
function validate(theform) {
if (theform.touser.value=="" || theform.message.value=="" || theform.title.value=="") {
alert("Bitte füll das Empfänger, Betreff und Nachricht Feld aus.");
return false; }
if (pmmaxchars != 0) {
if (theform.message.value.length > (pmmaxchars/2)) {
alert("Deine Nachricht ist zu lang.\n\nKürze Deine Nachricht auf "+(pmmaxchars/2)+" Zeichen.\nDeine Nachricht ist "+theform.message.value.length+" Zeichen lang.");
return false; }
else { return true; }
} else { return true; }
}
function checklength(theform) {
if (pmmaxchars != 0) { message = "\nDie maximale Nachrichtenlänge beträgt "+(pmmaxchars/2)+" Zeichen."; }
else { message = ""; }
alert("Deine Nachricht ist "+theform.message.value.length+" Zeichen lang."+message);
}
//-->
I checked this on our board and the setting we have is 5000 characters. But in the PM input mask it says only 2500 are allowed.
Whas up wit dat?
Scott