YAFLogo

jimbo2
  • jimbo2
  • 60.2% (Friendly)
  • YAF Camper Topic Starter
11 years ago
Hi,

I would like to automatically create a new (welcome)thread when a user have successfully registered on my website.
Is there a way to create a new thread programatically or do I have to fill the database table via code?

Thanks in advance
jimbo
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
11 years ago
You only need to call the method LegacyDB.topic_save(...) and parse the parameters manually. Take a look at the postmessage.ascx.cs file which parameters are needed.
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
11 years ago
Originally Posted by: jimbo2 

Hi,

I would like to automatically create a new (welcome)thread when a user have successfully registered on my website.
Is there a way to create a new thread programatically or do I have to fill the database table via code?

Thanks in advance
jimbo


Why not to simply send him a pm?
saedabaid
11 years ago
please how to show the topic related to the quer string
i dragged and dropped the displayposts control like this


then what can i do?
JP
  • JP
  • 100% (Exalted)
  • YAF Leader
11 years ago
I kinda have a similar "wish to have" feature request...

My wish is to create a topic in the forum for discussion around articles published on the main site... One topic/article...
Would be nice to have some kind of "call API" to create a topic from outside the forum, but of course with forum security so non-members cannot create anything... Maybe also a read-only API so you can publish the created forum discussion at the bottom of the article with a link to the forum topic so members can easily go there and reply to the topic ...

Just some wild idea of mine... 😁
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb]
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button