vcsharp
  •  vcsharp
  • 88.4% (Honored)
  • YAF Commander Topic Starter
2017-10-05T14:22:49Z
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
2017-10-06T14:49:44Z
Originally Posted by: vcsharp 

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.



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.




UserPostedImage

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

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved