Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumShow new private messages on non-forum pages?Show new private messages on non-forum pages?
Previous
 
Next
New Post
2/19/2008 10:29 AM
 

Is there a way to show that a user has new messages via a module or something like that on a page/pane outside of the forums?

 
New Post
2/19/2008 8:57 PM
 

There is no feature of this in the Forum Module.  Also I did not know of an AddOn.   But I think you can do that with the Report Module.

 

 
New Post
2/20/2008 4:36 PM
 

Thanks Matthias, I got it to work with the Report module.

I created a module that shows on all pages with no displaying container and the code looks like this - Glad I could get this to work:


declare @cnt int
,@str varchar(2000)

set @cnt = 0
set @str = ''
DECLARE @tcnt TABLE
(acnt int)

insert into @tcnt exec Forum_PM_GetUserNewMessageCount @UserID,@PortalID
select @cnt=acnt from @tcnt
IF @cnt > 0
BEGIN
select @str='<b>You have <a href="http://xxxxxxxxxxx.org/dnn/MembersOnly/Forums/tabid/58/ctl/PMInbox/mid/381/Default.aspx">'
select @str= @str + convert(varchar(4),@cnt) + ' New '
IF @cnt >1
select @str=@str+'Messages.</b></a>'
else
select @str=@str+'Message.</b></a>'
END
select @str

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumShow new private messages on non-forum pages?Show new private messages on non-forum pages?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out