Jump to content

Help with private messaging


potski

Recommended Posts

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 by potski
Link to comment
Share on other sites

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 by mac_gyver
Link to comment
Share on other sites

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 by potski
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.