Register   Login
     
  Categories  
  Archive  
  Authors  
11

A common function in most forum systems is the ability to send a private message to another user.

In a typical forum, when viewing a post by another user, it is common to see the "Send Message" link, as shown here:-

PostInfo.jpeg

Private Messages is a popular messaging module available for DotNetNuke, you can read more about it here. We will attempt to integrate it with a popular forums module (Active Forums from www.activemodules.com). Find the page your Private Messages module is on and remember that URL.

Active Forums allows you to customize the user section on each post (called PostInfo). We are able to customize this section to provide a link to the private messaging module passing the ID of the post's author.

To customize the PostInfo section in ActiveForums:-

  • Navigate to the page your forums module is on.
  • Use the menu and select Control Panel
  • Click on Templates
  • Click on PostInfo from the list of Templates
  • Add a hyperlink in HTML to your private messaging module.(Adding a [USERID] parameter and remember the URL of private messages)
    • e.g.  <a HREF="/tabid/201/type/Compose/SendTo/[USERID]/Default.aspx"><img src="/DesktopModules/DnnForge%20-%20PrivateMessages/images/icon_pm_message.gif" border="0"></a>
  • Click Update

You should now be able to see the changes reflected in your forums for each user as shown below:-

PostInfo2.jpeg


The good thing about the method is that you can link in to private messages from virtually any module. You should also be able to pass in a default subject by passing in a subject parameter.

Post Rating

Comments

Anonymous User
# Anonymous User
Wednesday, July 13, 2005 4:53 PM
Not a flame, just curious. If you're using ActiveForums then why is the private message module needed? isn't it redundant?
Scott McCulloch
# Scott McCulloch
Wednesday, July 13, 2005 5:18 PM
Active Forums doesn't have a messaging feature..
DNN Professor
# DNN Professor
Wednesday, July 27, 2005 6:04 PM
Can you give an example of passing a subject parameter?
Mark Matthews
# Mark Matthews
Sunday, August 07, 2005 8:41 PM
Wow! Just got around to trying this!! It works GREAT!! If you can provide the same feature to Simple Gallery, than this is a KILLER combo!
stipe k
# stipe k
Wednesday, August 10, 2005 4:53 AM
Scott, don't know if I'm doing something wrong, but it foesn't seem to work with AF 3.0.8 patch. Any ideas?
Dave Buckner
# Dave Buckner
Sunday, August 14, 2005 11:33 PM
Very nice!
Gene Vaz
# Gene Vaz
Sunday, December 04, 2005 8:48 PM
Would this be the same for DNN 3.2? I can not seem to get it to work with the current configuration you have shown.
Anonymous User
# Anonymous User
Sunday, December 18, 2005 11:16 AM
-o[p]p[o]p
EJ Hunyadi
# EJ Hunyadi
Saturday, April 22, 2006 11:42 PM
This works like a charm: I can't believe it was so easy to set up!!!
Andre Teixeira
# Andre Teixeira
Wednesday, July 19, 2006 7:43 AM
Thank you! Due to this site I bought active forums and am extremely happy with it. This little script sure is easy to set up and helps a lot. thank you so much.
Mike Webb
# Mike Webb
Wednesday, October 11, 2006 7:22 AM
Excellent!! It worked perfectly the first time. DNN 4.3.5 AF 3.6.7.26575.

I added a Title="Send Private Message".
BDS
# BDS
Sunday, May 13, 2007 8:05 PM
Really nice. Easy to implement. Works the first time.
sschneider
Thursday, June 21, 2007 1:51 AM
Great job. Any idea, if this could be integrated to the DNN Forum? That would also be nice :-)
Jose Maldonado
# Jose Maldonado
Friday, June 22, 2007 3:56 AM
Their modules are exceptional! this could be integrated to the forum of the DNN?
Scott McCulloch
# Scott McCulloch
Friday, June 22, 2007 5:44 AM
It could be integrated into the DNN forum, but I'm unsure if you can do it through the screens (does it support templating similar to active forums?)
Jose Maldonado
# Jose Maldonado
Friday, June 22, 2007 5:49 AM
I already managed to integrate it! I published the Forum_UserProfile.ascx file:

/Default.aspx">
I am investigating for a greater integration, I will communicate. Greetings
Andre Teixeira
# Andre Teixeira
Sunday, November 11, 2007 9:38 PM
to integrate with the core DNN forum, i put this HTML tag (from post above) to the signature section of the user settings. that way the button appears on every post I do on my signature.



where PMTAB is the tab # and USERID is the user id. so I forced the tab and user id to the number that worked for me.

is there a token I could use on my signature that could be used for anyone? like a userid token?
Steve J.
# Steve J.
Saturday, March 08, 2008 10:05 AM
Thanks, it works great!!!
Steve

Post Comment

Name (required)

Email (required)

Website

Enter the code shown above: