YAFLogo

jimbo2
  • jimbo2
  • 60.2% (Friendly)
  • YAF Camper Topic Starter
13 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: 4.0.1 BETA
13 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
13 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

Originally Posted by: jimbo2 

Why not to simply send him a pm?

saedabaid
13 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
13 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]