Version: , by SemperFidelis
Developer Last Online: Feb 2007
Version: Unknown
Rating:
Released: 01-20-2003
Last Update: Never
Installs: 0
No support by the author.
Ok, straight up I have a reasonably well hacked test board which once its finished 100%, I will be rolling out as my production board.
Right now Im having issues with viewing PM's.
Im getting this error when trying to view a PM :
Quote:
Line : 295
Char: 87
Error: Unterminated string constant
Here is the code from around that line when viewing source thru IE (with line 295 being "currently "+theform.message.value.length+" characters long.)
PHP Code:
<script language="javascript">
<!--
var pmmaxchars = 1000;
function validate(theform) {
if (theform.touser.value=="" || theform.message.value=="" || theform.title.value=="") {
alert("Please complete the recipient, subject and message fields.");
return false; }
if (pmmaxchars != 0) {
if (theform.message.value.length > 1000) {
alert("Your message is too long.\n\nReduce your message to 1000 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 1000 characters."; }
else { message = ""; }
alert("Your message is "+theform.message.value.length+" characters long."+message);
}
//-->
</script>
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td>$forumjump</td>
<td align="right"><smallfont><b>$timezone</b></smallfont></td>
</tr>
<tr>
<td colspan="2" align="center">
<a href="private.php?s=$session[sessionhash]&action=newmessage&privatemessageid=$privatemessageid"><img src="{imagesfolder}/pm_sendreply.gif" alt="Reply to this message" border="0"></a>
<a href="private.php?s=$session[sessionhash]&action=newmessage&forward=true&privatemessageid=$privatemessageid"><img src="{imagesfolder}/pm_forward.gif" alt="Forward this message to another member" border="0"></a>
$buddyforwardlink
<a href="private.php?s=$session[sessionhash]&action=newmessage"><img src="{imagesfolder}/pm_sendnew.gif" alt="Send a new private message" border="0"></a>
</td>
</tr>
</table>
<script language="javascript">
<!--
var pmmaxchars = $pmmaxchars;
function validate(theform) {
if (theform.touser.value=="" || theform.message.value=="" || theform.title.value=="") {
alert("Please complete the recipient, 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>
automatically adds [url] and [/url] around internet addresses.
<br><input type="checkbox" name="signature" value="yes" checked><b>Show Signature:</b> include your profile
signature. Only registered users may have signatures.
<br><input type="checkbox" name="savecopy" value="yes" checked><b>Save a copy:</b> Also save a copy in the
'Sent Items' folder.
<br><input type="checkbox" name="pmreceipt" value="yes" checked><b>Request Read Receipt:</b> Allows you to
check whether your message has been read by the recipient.
</smallfont></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
Can someone please give me some assistance with getting this one sorted ?
If you need to view private.php Im more than happy to email / PM it to you as I cant post it here in its entirity.
Thanks in advance for any assistance given
It is greatly appreciated.
if (theform.message.value.length > 1000) {
alert("Your message is too long.\n\nReduce your message to 1000 characters.\nIt is currently " + theform.message.value.length + " characters long.");
return false;
}