// preview hack
if (!$pagetext) {
// parse message for html if previewing
$message = htmlspecialchars($message); // Without this, a </textarea> in the message breaks the form on preview
}
// preview hack
e) Find:
Code:
if ($bbuserinfo[userid]!=0 and !$previewpost and $bbuserinfo[signature]!="") {
$signaturechecked="CHECKED";
}
Right under it insert:
Code:
// preview hack
if (!isset($parseurl)) {
$parseurlchecked="CHECKED";
}
if (!isset($savecopy)) {
$savecopychecked="CHECKED";
}
if (!isset($pmreceipt)) {
$pmreceiptchecked="CHECKED";
}
// preview hack
tnks i need this fix - works great -
tnks for the help,
the hack - is just what the doctor ordered - every one likes a preview, i think
ken
[QUOTE]Originally posted by wluke OKay.. I have installed this as well and come across another pecularity.
If you look in private.php in the "New Message" section there is this line:
PHP Code:
if (isset($privatemessageid)) {
Well what this does is start a check to make sure the previous message actually exists. On my version and installation of PHP even though it was set to '0' this was returning true. I had to change the line to the following to prevent a "Invalid Message Error".
PHP Code:
if (isset($privatemessageid) and $privatemessageid!=0) {
With that it works great. I recommend that if the error doesn't occur then use Bira's original code. If it does then make this modification.
sending pms works, but when I press "Preview" I get a error message telling me that ** privatemessage ** is not defined or missing?
Ive tripple checked the code and it seems ok, any ideas?
---- update ----
bira forget my message. I was just "holier than the pope" and made the change you suggested to firefly and now it works great! Thanks
I ran into a unique problem tonight totally by accident. (The wife noticed it, actually. ) If I reply to a message and send it, everything works fine. But if I preview it before sending it, somehow it "forwards" the message instead of sending it. The better half noticed an FW: on the message after she recieved it and asked how come I was always forwarding messages to her instead of sending them. I always hit the send button, never the forward button. It only seems to happen after previewing them first. Any ideas on this one?
The only thing is, unlike your screen shot in the opening post, in preview it does no appear to be converting the smilie code into smilies in the preview pane. It just shows the emoticon :-) for example.
No big deal really, I am very happy that it's working!!
If you think of a reason as to why the smilies don't work, that would be kewl, if not...no worries!!
This hack is working great for me except when I use "PM To Buddies", and select multiple recipients. We sending multilples, I don't get an option to preview at all.
I send mutiples regularly and would really love to have this option available there as well. Any chance?
When I install the smilie fix, if the use signature is checked before I preview the message, it is no longer checked when previewing the message. And ideas on this one?