YAFLogo

ablakov1
  • ablakov1
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
Hello
I am new to this community but not new to yaf and have no idea about programming or C# or C not sharp. I found yaf sometime ago (1.9.3) searching for an asp.net bulletin board. And I am very happy with it.
A feature that I have always missed in yaf is “Thank you” mod. I searched the forum and I found that several others have also requested this. I know that such requests and modifications are not going to be done for free by yaf developer .I cannot pay in cash (poor university student) but I will do something in return for such mod. I am graphic designer and a photographer living in Poland. I would appreciate if someone does this for me.

Thank you
A.Blakov

Sponsor

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
13 years ago
What is a thank you mod?
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
13 years ago
Another table in YAF:) . It can be combined with something like proposed user warnings feature in one table, i.e. Technically it's simply a list with positive and negative messages and votes, filtered by user name + spam filter to ward off short messages, flood.
ablakov1
  • ablakov1
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
Hello
I really appreciate your responses.Thanks mod is explained here .
herman_herman
13 years ago
Do not blame me but I want this too :lol: :cheesy:
simdual
  • simdual
  • 60.8% (Friendly)
  • YAF Forumling
13 years ago
ablakov1
  • ablakov1
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
Anybody please?
I know it takes lots of time and efforts and i do not expect it for free.I appreciate if somebody help me.

Thank you
Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer
13 years ago
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.


If at first you don’t succeed, call it version 1.0
ablakov1
  • ablakov1
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
Kamyar wrote:

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 in the page.



Hello Kamyar,
Do you mind sharing it with me/us?
I really appreciate that.
herman_herman
13 years ago
Hi my compatriot,
It will be a great contribution to the community if you share your mod as there have been many request from users for this mod.Thanks.
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
13 years ago
Kamyar wrote:

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 in the page.


That sounds great... if you could provide your changes back to the community, I'm sure it'd be greatly appreciated! 😁
Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer
13 years ago
Jaben wrote:

Kamyar wrote:

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 in the page.


That sounds great... if you could provide your changes back to the community, I'm sure it'd be greatly appreciated! 😁


Sure Jaben. It's a great pleasure for me. Just let me make it ready for everyone in the BIN format too. so everyone can use it even if they're not interested in developing it. I'll upload the code here in the next couple of days.
Cheers.
If at first you don’t succeed, call it version 1.0
Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer
13 years ago
Ok guys. Here's the forum for the "Thanks" feature. The forum version is: 1.9.3 RC2.
I'll try to add the feature to version 1.9.4 beta 2 in the next couple of days.

To install it:
If you're installing yaf for the first time, just follow the original instructions and after installing:
1- go to: /Install/ThanksInstall.aspx
2- run the page and follow the wizard steps. you'll have the "Thanks" feature installed.

If you want to upgrade your installed Yaf forum:
1-Copy the dll files from the file attached to this post to your /Bin folder.
2-Copy "Thanksinstall.aspx" "ThanksInstall.aspx.cs" and "Thanks.sql" to your /install folder.
3-Copy these files (Overwrite the old files):
/Controls/DisplayPost.ascx
/Controls/DisplayPost.ascx.cs
/pages/admin/hostsettings.ascx
/pages/admin/hostsettings.ascx.cs
/Pages/Profile.ascx
/Pages/Profile.ascx.cs
/Languages/English.xml
(Note if you use another language, add these tags to your specific language file):
In





In





In




Refer to "Languages/English.xml" to undestand where these tags are used and translate it to your own language.

3-run "ThanksInstall.aspx"

Here'e the link:
YAF 1.9.3 RC2 with "Thanks" feature 

If you encounter any bugs, please let me know.

All the credits goes to Jaben and YAF development team for their spectacular programming capabilities and this wonderful forum site.
Thanks for sharing it for free! :wink:
If at first you don’t succeed, call it version 1.0
Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer
13 years ago
Here's the source version. the modified files are:

YAF.Classes.Data/DB.cs
Controls/DisplayPost.ascx
Controls/DisplayPost.ascx.cs
pages/admin/hostsettings.ascx
pages/admin/hostsettings.ascx.cs
Pages/Profile.ascx
Pages/Profile.ascx.cs
Languages/English.xml
Yaf.Classes.Utils/Constants.cs
Yaf.Classes.Utils.Config/BoardSettings.cs
ForumActiveDiscussion.ascx
Added "Thanks.cs" to YAF.Controls
Added Reference to "Ajaxpro2.dll" in YAF.Controls

Here's the link:
YAF 1.9.3 RC2 with "Thanks" feature 
If at first you don’t succeed, call it version 1.0
herman_herman
13 years ago
Hello Kamyar jan
Thanks for this excellent mod with such easy installation.Great job golpesar :wink:
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