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 ForumsForumForumProgrammatically create forumsProgrammatically create forums
Previous
 
Next
New Post
5/16/2008 6:05 AM
 

Hi

I've got a module called Groups which I'm writing for a client - a bit like Facebook groups but using DNN - and I want to use the forums as a discussion module within the groups - I want to be able to programmatically create a forum when a Group is approved by a moderator - this will be an empty forum only visible to the members of the group but can't leave the creation to Moderators or Users and need it to be automatic.

I've run SQL Profiler on the addition of a new forum and rather logically, it calls Forum_ForumAdd sproc - which I now do from my module - I also complete the permissions for user -1 and the user who has created the group (using Forum_Permissions_AddForum) .  But the forum fails to appear until after I restart the web server - just need to know what I need to do to get the forum to appear - am I missing a sproc call or something on the website to register it somewhere - and if so how do I do it.  I have downloaded the source for the forums but there's a lot of it and can't find what I need

Any help would be appreciated.

Thanks
Steve

 
New Post
5/16/2008 7:09 AM
 

Looking at an older version of the forum module code,

In the ForumController, after it adds the forum to SQL, it clears some cache:

ClearCache_ForumGetAll(GroupID)

This might not be exactly how to fix your issue, but if you pull up the source for the version of core DNN forums you are using...you can probably verify and find how to clear the needed cache key-thingy.

 

 
New Post
5/16/2008 5:37 PM
 

We've been down this road and suggest you might want to use ActiveForums rather than the DNN Forum Module.  There are a number of operative factors in implementation and user experience, but the main one is that the native forums don't have search in the industry standard sense.  When you do a search for more than one word it requires an exact match of those words contiguously, which is worlds away from true information retrieval such as one expects and finds almost everywhere else.  Imagine searching for

  President Mexico

in Google, and it would only return pages with that exactly, and not, for example:    President of Mexico

If you use ActiveForums they support proper information retrieval search, not just string match.

There are a numbe of other factors weighing in this direction including a big difference in apparent speed, and, importantly, that the native forums implements its own private messaging.  The latter modularizes improperly so that if you use private messaging elsewhere in your site the two private messaging systems won't be integrated!.  This problem is anticipated and avoided in ActiveForums insofar as they integrate cleanly with MyMessages using a simple tag.

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumProgrammatically create forumsProgrammatically create forums


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