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 ForumsForumForumProgramatically create a new thread?Programatically create a new thread?
Previous
 
Next
New Post
12/18/2006 6:53 PM
 

Posted this in the ExtendIt forum and was recommended I post it here:

I'm creating a custom module similar to Announcements that needs to have a forum thread associated with it (one of those "Talk about this here:" kind of deals). Rather than having the user manually create the thread, I'd like the module to create said thread. Do the Forums have an API I can tap into to programmatically create a new thread? Or do I need to figure out the schema and just insert the data in my Data object?

Also, this module was going to be date sensitive (i.e. a start date, so the user can add items in advance and have them show up when their startdate hits). Does the Forum module have a similar feature? A publish date of sorts?

-shnar

 
New Post
12/21/2006 11:43 AM
 

The forum does not have a 'publish' date. You could work around this using some tricks around moderation but it would pretty much be a 'hack'. As for creating a thread progromatically, this would be done by looking at the PostToDatabase() method in the Forum_EditPost.ascx. It sends to a sproc that then determines if it is a new thread or a reply post.

 

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
1/1/2007 7:19 PM
 
What is this PostToDatabase() method you speak of, I can't find it any where.

I'm trying to build a page where i can simply Get/Post a thread title and message.
 
New Post
1/2/2007 8:40 PM
 

PostToDatabase is a method in the Forum_PostEdit.ascx.vb.

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumProgramatically create a new thread?Programatically create a new thread?


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