Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
MadCap Software, Inc.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Forum Module [L...  Programmatically create forums
Previous Previous
 
Next Next
New Post 5/16/2008 3:05 AM
Unresolved
User is offline steswork
2 posts
10th Ranked


Programmatically create forums 

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 4:09 AM
User is offline Scott Stokes
108 posts
www.adverageous.com
9th Ranked


Re: Programmatically create forums 

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 2:37 PM
User is offline rnu
25 posts
10th Ranked


Re: Programmatically create forums 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Forum Module [L...  Programmatically create forums
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Disgrafic
Diseño y creación de portales web dinámicos :: Desarrollo de módulos personalizados :: Soluciones a medida :: Imagen Corporativa :: Tu proveedor DNN en España
www.disgrafic.com
DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com
Integral Hosting | DNN only $14.95/month
Experienced .NET hosting on Windows 2003, ASP.NET 1.1 & 2.0, MSSQL with real technical support.
www.integralhosting.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP