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  |  

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


  Ads  
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


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.

 


DNN Photo Gallery
DNN Photo Gallery is a truly unique photo management module released January 1st 2006. With DNN Photo Gallery you can REALLY integrate images into your existing portal and make them look like they were designed for your site.
DNN Photo Gallery
Swirlhost Inc.
Affordable DotNetNuke Hosting, Skin Development, Custom Module Development, and DotNetNuke Consulting. We will install your preference of DNN and now host with us and get a free license for the Swirl AJAX Chatroom Module.
www.swirlhost.com
Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com

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