Welcome Guest! To enable all features please Login or Register.
Options
View
Go to last post Go to first unread
Offline vcsharp  
#1 Posted : Thursday, October 5, 2017 8:22:49 AM(UTC)
vcsharp


Rank: YAF Camper

Reputation:

Joined: 10/3/2017(UTC)
Posts: 19

Thanks: 4 times
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
Offline tha_watcha  
#2 Posted : Friday, October 6, 2017 8:49:44 AM(UTC)
tha_watcha


Rank: YAF.NET Project Lead

Reputation:

Medals: Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.

Joined: 3/6/2010(UTC)
Posts: 3,686
Germany

Thanks: 70 times
Was thanked: 1142 time(s) in 972 post(s)
Originally Posted by: vcsharp Go to Quoted Post
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.



thanks 1 user thanked tha_watcha for this useful post.
vcsharp on 10/6/2017(UTC)
Rss Feed  Atom Feed
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error