potski Posted August 25, 2016 Share Posted August 25, 2016 (edited) Greetings guys, I hope someone can help me out, I will try to keep it short. Currently, the private messaging page on my site appears as: From, subject, date and then read/delete. I would like to change this to: From, date and preview of message (showing a few words of the latest message). Instead of having a 'Read' button, it can be opened by clicking on the preview message. Also, another thing I am trying to do is to make the messages appear like conversations instead of email-like layout. Currently, even if I have several messages from the same user, each message will have its own thread. So instead of having multiple threads from the same user, I am trying to add all messages from the same user into one thread. Opening the thread will show all messages from the user and your replies. Anyone know how this is possible? Please take a look at the PHP I currently have and let me know what's up Thanks in advance! Any help is greatly appreciated. private_messaging.php Edited August 25, 2016 by potski Quote Link to comment https://forums.phpfreaks.com/topic/301997-help-with-private-messaging/ Share on other sites More sharing options...
mac_gyver Posted August 25, 2016 Share Posted August 25, 2016 (edited) yes, just about anything is possible in programming, that's why this is called software. if it doesn't do what you want, it can be changed so that it does. however, this code is badly organized, to the point that it would take rewriting and retesting it just to get it to the point where it could be understood and then be modified to work differently. the code should be organized as follows - 1) initialization 2) post method form processing code 3) get method business logic - code that gets/produces data that's needed for the dynamic content on the page 4) get method presentation logic - code that knows how to produce the dynamic output on the page (for simple processing, this can be handled in the html document/template system.) 5) html document/template - produce the html document, or portion this code is responsible for, based on the result from the above sections Edited August 25, 2016 by mac_gyver Quote Link to comment https://forums.phpfreaks.com/topic/301997-help-with-private-messaging/#findComment-1536629 Share on other sites More sharing options...
potski Posted August 25, 2016 Author Share Posted August 25, 2016 (edited) Thanks for the reply and for looking into it! Well, it is from a WordPress theme that unfortunately is discontinued meaning no support so trying to figure this out is tricky to say the least. It is functional though, no bugs it just needs some modifications. Since it works and its layout is acceptable, I'm wondering if there are any chance of any free messaging scripts out there that I can add to it and be done with it that way? I am no expert in coding I have to admit. Edited August 25, 2016 by potski Quote Link to comment https://forums.phpfreaks.com/topic/301997-help-with-private-messaging/#findComment-1536638 Share on other sites More sharing options...
potski Posted August 27, 2016 Author Share Posted August 27, 2016 (edited) Any further ideas? I have been trying to find a PHP Wordpress compatible script that works better than the one in OP but no luck so far Edited August 27, 2016 by potski Quote Link to comment https://forums.phpfreaks.com/topic/301997-help-with-private-messaging/#findComment-1536735 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.