News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Extarnal PM function

Started by Geekologist, June 18, 2017, 01:04:19 PM

Previous topic - Next topic

Geekologist

My external site has access to SMF db so creating a function which does a action in the SMF db isn't a problem.

I do not understand how the PM setup is working, I tried creating a function which sends a PM, but didn't work.. Not sure how it all hangs together.. Anyone able to give me an example maybe?

As far I can tell, there is 2 db tables belonging to the PM system, but how do they relate, which id goes where?

Arantor

You don't touch the tables directly. Call the sendpm function in Subs-Post.php to do it for you.

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Geekologist

@Arantor, thanks for your reply, should be able to use that function. And just to note, I'm not trying to spy on members PM, but we have a external system which needs to send the member a PM with information.

@Kindred, thanks. That was very helpful  :)

Advertisement: