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: 3.0.3
6 years ago
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.



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