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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...DNN Forum API QuestionDNN Forum API Question
Previous
 
Next
New Post
8/8/2008 10:10 AM
 

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 10:18 AM
 

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
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
8/8/2008 11:31 AM
 

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 9:32 AM
 

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 10:18 AM
 

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
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...DNN Forum API QuestionDNN Forum API Question


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