![]() |
A-ha!!!!
Silly me, I found the culprit :blush: In the hack details, I have the following code added: Code:
// preview hack In any event, doing this fix will NOT harm your script. |
OK, I think it makes sense. :)
BTW, I just noticed that the name of this hack doesn't really suit what it does..."Preview Sent Private Message"...you haven't really sent the message yet, when you preview it. ;) |
yeah, it should have been 'Preview Private Message before Sending' -- but I can't change it :/
|
If you haven't installed the hack, ignore this message -- the installation instructions in the first thread and the downloadable attachment txt file have been modified.
ok, found - and corrected - another bug. Problem: if you are replying to a PM or forwarding it, the icon in the folder for that PM does not change from a regular "read PM" to a "replied to PM" or a "forwarded PM". The reason is that if you preview a message, the values for "privatemessageid" and "forward" -- hidden fields in the form -- are not stored. For this, we have to redclare them in the 'preview' part of the hack. If you already installed this hack, find in private.php: Code:
$subject = $title; Code:
$privatemessageid = $prevmessageid; |
Love it, installed here. :D
Thanks. :) |
wow, thanks :)
|
Thank you. :)
One problem though, with this code: Code:
$privatemessageid = $prevmessageid; So I had to remove that bit for now, let us when you get a fix. :) (and sorry about my test message :D) |
FireFly, you shouldn't remove it. I'll explain:
In the send new pm form, there are two hidden fields (original code): Code:
<input type="hidden" name="prevmessageid" value="$privatemessageid"> if $privatemessageid has a value, then it means you are now replying to or forwarding a message. If it doesn't have a value, it means you are writing a new message. if $privatemessageid has a value and $forward=1, it means you are forwarding a message and not replying. These then determine which icon will be displayed in your inbox next to that message. Now, when you click on "Reply" for a message, these values are filled. When you hit "Preview", these values are lost. So we need to "reinstate" them. That's what these two lines are for: Code:
$privatemessageid = $prevmessageid; For the vast majority of the people, that error won't show up because they are not in development environment with high error reporting, and functionality is not tampered. However, if you want to be "holier than the pope" so to speak, do this instead: PHP Code:
Cheers, Bira |
[QUOTE]Originally posted by bira
From what you are telling me, I can only assume you have high error reporting set in php.ini. |
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:
PHP Code:
|
All times are GMT. The time now is 12:51 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|