News:

Wondering if this will always be free?  See why free is better.

Main Menu

sendpm

Started by Chen Zhen, February 21, 2017, 02:55:45 PM

Previous topic - Next topic

Chen Zhen

re.
sendpm from Subs-Post.php

One of the function parameters is $pm_head which defaults to 0.
0 means to start a new PM.

Is this integer supposed to represent the actual PM id to act as a reply to an existing PM ??
ie. for an auto-reply to a sent PM ?

Regards.

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

Arantor

No, it's not the one you're replying to. It's the one that is the top of the chain, and is how PMs get grouped together to form a conversation in the conversation mode.

If you have PM 1, PM 2 replies to PM 1 and PM 3 replies to PM 2, all of them have the ultimate head value of 1, because PM 1 is the head of the conversation and everything is part of that conversation. You shouldn't need to pass in a head value for a PM that isn't part of a current conversation if I remember the code correctly.

Chen Zhen


Thanks for the explanation.

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

Advertisement: