YAFLogo

vcsharp
  • vcsharp
  • 88.4% (Honored)
  • YAF Commander Topic Starter
6 years ago
I have a custom requirement in which I need to populate a custom table whenever a user posts a question i.e. posts the first thread in a multi-thread post.

I have already written the stored procedure for this in same database as that of YAF.

I am not sure what would be the best approach for handling this requirement. I could call my stored procedure from the YAF procedure that saves a message. i.e. in yaf_message_save or may be there is a better way of doing this.

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
6 years ago

I have a custom requirement in which I need to populate a custom table whenever a user posts a question i.e. posts the first thread in a multi-thread post.

I have already written the stored procedure for this in same database as that of YAF.

I am not sure what would be the best approach for handling this requirement. I could call my stored procedure from the YAF procedure that saves a message. i.e. in yaf_message_save or may be there is a better way of doing this.

Originally Posted by: vcsharp 

if you only want to fill a custom table then altering the SP for the message_save would be the best option.

But don't forget no matter what changes you make always documentation everything or create a fork and commit all the changes. So when there is a new version you can always apply your changes easily.