PDA

View Full Version : [not bug] max PM characters devided by 2?


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

Chen
Sun 16th Sep '01, 8:07am
This is what I got:
<script language="javascript">
<!--
var pmmaxchars = $pmmaxchars;
function validate(theform) {
if (theform.message.value=="" || theform.title.value=="") {
alert("Please complete both the subject and message fields.");
return false; }
if (pmmaxchars != 0) {
if (theform.message.value.length > $pmmaxchars) {
alert("Your message is too long.\n\nReduce your message to $pmmaxchars characters.\nIt is currently "+theform.message.value.length+" characters long.");
return false; }
else { return true; }
} else { return true; }
}
function checklength(theform) {
if (pmmaxchars != 0) { message = "\nThe maximum permitted length is $pmmaxchars characters."; }
else { message = ""; }
alert("Your message is "+theform.message.value.length+" characters long."+message);
}
//-->
</script>
Maybe someone changed it when he translated it?

Chen
Sun 16th Sep '01, 8:10am
Oh, found it.
It's in priv_forwardmultiple template, not priv_sendprivmsg.

Pogo
Wed 7th Nov '01, 10:44am
It is still in there (priv_forwardmultiple)....why?

Chen
Wed 7th Nov '01, 12:29pm
No idea... moving to bugs.

Kier
Thu 8th Nov '01, 2:45pm
It's there by design, to stop people sending massive PMs to loads of people.

If you don't like it, it's just a case of altering that javascript in the template :)

s.molinari
Thu 8th Nov '01, 5:54pm
Originally posted by Kier
It's there by design, to stop people sending massive PMs to loads of people.

If you don't like it, it's just a case of altering that javascript in the template :)

Uh....really......uh honestly, that makes absolutely no sense what so ever. It's not that I don't like it (it just doesn't make sense to me) but rather the customer/s doesn't/don't like it. They set their max PM characters to, let say, 2000. But when they want to forward something they can only forward a pm with 1000 characters?

Hmmmmmm..........

Scott

p.s. We try not to alter the original code.:) We just make it german!:D

Chen
Fri 9th Nov '01, 10:31am
I must agree with Scott, it makes no sense...

But if Kier says Kier knows. ;)