Integrating Joomla Private Messages to SMF Personal Messages

Started by bananaman, March 08, 2006, 12:48:52 AM

Previous topic - Next topic

bananaman

When users create new Joomla articles (or when any other Joomla PM) is triggered, Joomla will generate a Private Message in the Joomla PM table and will send out a Joomla PM email notification - but this is obviously idependent to SMF and doesn't show up in the SMF messages or the 'Hey Bananaman, you have 1 new message'.

Has anyone developed an way of integrating Joomla PM and SMF PMs so that the Joomla PMs will actually be written into the SMF PM table (and trigger the SMF PM notifications) so that I can see all my PMs in one place?

If nobody has done this yet, this would be a fantastic improvement to the Joomla/SMF bridge.
Visit my website Wolfenstein Resource for Wolfenstein and Enemy Territory Hints and Tips!

Orstio

This cannot be done by the bridge.

You would need to hack the Joomla core to do this.

The bridge can send SMF PM's out to your Joomla PM's in the future, but not the other way.  In order to do that, Joomla needs to send the information to SMF, which the bridge cannot accomplish.

bananaman

Thanks Orstio

I figured out that I would need to modify the "messaging for new items" section of joomla/components/com_content/content.php
and replace the send() command to call sendpm() in smf/Sources/Subs-Post.php instead.

It looks like a relatively simple mod. I might give it a go myself later on.

:D
Visit my website Wolfenstein Resource for Wolfenstein and Enemy Territory Hints and Tips!

Orstio

If the code you are working with is in content.php, you might be able to work that into a content bot instead.....

Advertisement: