YAFLogo

jimbo2
  • jimbo2
  • 60.2% (Friendly)
  • YAF Camper Topic Starter
2012-01-12T13:17:29Z
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.1
2012-01-12T13:38:00Z
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.
UserPostedImage
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
2012-01-12T20:12:39Z
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
2012-01-29T13:39:52Z
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
2012-01-30T21:02:50Z
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]