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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! (Pro...  DNN Forum API Question
Previous Previous
 
Next Next
New Post 8/8/2008 8:10 AM
Unresolved
User is offline John Valentine
129 posts
www.webinnovationsystems.com/
9th Ranked


DNN Forum API Question 

Has anyone ever extended a custom module that automatically creates a thread linked to data in their module?

I have a customer who wishes to do this. I agree that it would be of great value to this customer, but am unsure how to interface with the Forum module.

In a nutshell, this is what I need to accomplish:

1) If there is no forum in the group(need to figure out which group) then create a forum => create a thread.

2) If there is a forum in the group(need to figure out which group) then check to see if a thread with the same subject exists (exists ? return url to thread : create new thread and return url)

Alternately, I suppose I could store the ThreadID in my data table, and build the url at page load.

Can anyone help point me in the right direction?

 

 


Cheers!
John Valentine
http://www.webinnovationsystems.com
 
New Post 8/8/2008 8:18 AM
User is offline Brian Dukes
479 posts
www.engagesoftware.com
8th Ranked


Re: DNN Forum API Question 

We did something like this for a client.  We stored the ThreadId, like you're saying, just for ultimate flexability.

In terms of interfacing with the module, we just directly accessed the stored procedures (based on which procedures we saw the code calling).

Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
314.966.4000

The leading provider of DotNetNuke support, training and custom module development.
 
New Post 8/8/2008 9:31 AM
User is offline John Valentine
129 posts
www.webinnovationsystems.com/
9th Ranked


Re: DNN Forum API Question 

Yeah,

It looks like will be doing it much the same way. I will have to access the forum definitions manually and add one if it doesn't aready exist. Then add a post to the forum using appropriate subject and body content from my customers submit form. I think I can use the DNN PostAdd function to actually add the post ok. So that helps some.

Thanks for the affirmation.


Cheers!
John Valentine
http://www.webinnovationsystems.com
 
New Post 8/11/2008 7:32 AM
User is offline John Valentine
129 posts
www.webinnovationsystems.com/
9th Ranked


Re: DNN Forum API Question 

Hey Brian,

I seem to be getting different errors on my dev box. Sometimes everything gets added ok, sometimes the thread isn't being added to the threads table (No Errors - No Post Display). Did you encounter this issue at all?

Thanks!

John

 

 


Cheers!
John Valentine
http://www.webinnovationsystems.com
 
New Post 8/11/2008 8:18 AM
User is offline Brian Dukes
479 posts
www.engagesoftware.com
8th Ranked


Re: DNN Forum API Question 

I think we had an issue where there was a bug when we checked to see if the thread had already been created, but otherwise it went pretty smoothly for us.  Are you trying to call the stored procedure directly and it's still not getting into the table, or are you calling through a code API?  You'll probably need to do a careful study of what those are doing to make sure that you know when they might not end up creating a thread.

Hope it helps,


Brian Dukes
Engage Software
St. Louis, MO
314.966.4000

The leading provider of DotNetNuke support, training and custom module development.
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! (Pro...  DNN Forum API Question
 


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.

 


Swanzey Internet Group LLC
DotNetNuke design, development, e-Commerce, hosting, maintenance, and training. Exclusively DotNetNuke.
www.swanzey.com
Lucede Systems Group
Providing a full range of IT services for large and medium sized companies
www.lucede.com
Adaptive InfoSystems, Inc.
We provide custom programming and various levels of support for DotNetNuke and the .Net framework.
www.aisysweb.com

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