I agree. this is certainly necessary for a wonderful forum like YAF.
Anyway I have added thanks mode to YAF 1.9.3.
I don't know if this is the right place to discuss the logic but I just want to share my idea! :-d
I added a table ([dbo].yaf_Thanks) and some stored procedures to database to add, remove thanks and retrieve thanked users, etc.
Then I edited userbox and Displaypost.ascx's repeater to show/hide Thanks buttons and info dynamically.
Then I dynamically added some Javascript functions to the code behind file to be able to change the thanks status divs on the client side.
And Finally, I used AjaxPro.Dll to make asynch. calls to my newly created "Thanks" class to interact with the DB and add/remove thanks buttons and thanks statuses on the page.
Edited by user
13 years ago
|
Reason: Not specified
If at first you don’t succeed, call it version 1.0