Skip to Content Skip to Menu

Detect "new message" or "message reply"

12 years 6 months ago #197121 by localnetmarket
Detect "new message" or "message reply" was created by localnetmarket
Hello All,

I would like to add some line code in the source of uddeim,
in the frame of a linking between a personal script and uddeIm.

For this I would like to know how can I know if the message is a new message or a reply when the "task" is "save".

What's the variable who define this ??

Thank you very much for your help,

MICKAEL

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
12 years 6 months ago #197123 by slabbi
Replied by slabbi on topic Re: Detect "new message" or "message reply"
Check uddeim.php line 676:

function uddeIMsaveMessage($myself, $to_name, $to_id, $pmessage, $tobedeleted, $tobedeletedsent, $forceembedded, $item_id, $messageid, $copytome, $addccinfo, $sendeform_showallusers, $cryptpass, $backto, $config)

When $messageid>0 then it is a reply.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

12 years 6 months ago #197135 by localnetmarket
Replied by localnetmarket on topic Re: Detect "new message" or "message reply"
Thankz for your help mister slabbi

Finally i'll use "messageid" send in a $_POST index to the URL with "task=sav"...

Have a very nice Week-end,

MICKAEL

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum