#1
|
||||
|
||||
Is this possible?
When replying to a user's PM, I'd like to place a copy of the title and text from the original message into the new PM.
In view/messagesview.php it already detects if you're replying to a user (rather than making a new PM) by use of this: PHP Code:
PHP Code:
PHP Code:
But that's also not a copy of the title I'm replying to, either, it's just a placeholder title (I added it in so people wouldn't get errors while attempting to send messages with no subject lines). So... if $user equals a 'get' value of id, is that because that's how the url is being rewritten? Where's that the rewrite happening (because its not part of the htaccess)? If values containing the original message (and title) are already being sent, what're they called? Do I need to explicitly send these values, if they're not already being sent? (Because I don't mind jabbing at the message on the page with some javascript and attaching it to the url the reply button goes to if I have to. But do I have to?) EDIT - Discussed this on aim with HoF. The solution was to send the message's actual id (not the username) and use the PrivateMessage object to pull data from the id that had the user name, title, and message contents. In view/messagesview.php, inside the newpm() function, I changed the contents of the if statement mentioned above to now contain the data I asked for (EDIT 2 - this has been updated to reflect issues discussed later in the thread): PHP Code:
Change appropriate $pmForm lines as needed. Mine's different, but this is the jist of the two lines changed: PHP Code:
PHP Code:
PHP Code:
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. Last edited by Kyttias; 12-23-2015 at 11:00 AM. |
|
|
What's New? |
What's Hot? |
What's Popular? |