Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Use PM component to send data (8 posts)

Started 1 year, 10 months ago by: Ashfame (Ashish Kumar)

  • Profile picture of Ashfame (Ashish Kumar) Ashfame said 1 year, 10 months ago:

    I was thinking of sending some data to the user inbox so that user can access it anytime as per his needs. Where should I be looking to accomplish this?

  • Profile picture of Ashfame (Ashish Kumar) Ashfame said 1 year, 10 months ago:

    I guess I need to create an instance of a class, fill up the data and call send member function. right?
    what should I store in thread id? I mean are there any special values for it or using a plain 0 or any negative number will do?

  • Profile picture of Ashfame (Ashish Kumar) Ashfame said 1 year, 10 months ago:

    your thoughts on the subject?

  • Profile picture of r-a-y r-a-y said 1 year, 10 months ago:

    “so that user can access it anytime as per his needs”

    Not sure what you’re trying to do.

    Can you clarify?

  • Profile picture of Ashfame (Ashish Kumar) Ashfame said 1 year, 10 months ago:

    i want to use the messages as a place holder for some more info related to user. I want that the user can access his previous info from his inbox.. (just the contents is what i want to store)

    its hard to explain but pretty simple. can you just help me on what value should I store in thread id so that it doesn’t conflict with anything?

  • Profile picture of Ashfame (Ashish Kumar) Ashfame said 1 year, 10 months ago:

    I get it. I can just use messages_new_message()

  • Profile picture of r-a-y r-a-y said 1 year, 10 months ago:

    If you’re simply looking at sending a message, then you’re right! messages_new_message() is the way to go.

    If you’re looking to modify this private message over time, you can’t do it via a function because such a function doesn’t exist; you’d have to modify the content via the DB. I’m probably just reading into your use-case a little too much!

  • Profile picture of Ashfame (Ashish Kumar) Ashfame said 1 year, 10 months ago:

    @r-a-y
    hey! thanks :)