ablakov1
  •  ablakov1
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
2009-10-08T18:03:49Z
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
2009-10-08T19:51:09Z
What is a thank you mod?
bbobb
  •  bbobb
  • 100% (Exalted)
  • YAF Developer
2009-10-08T21:14:14Z
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
2009-10-09T03:27:38Z
Hello
I really appreciate your responses.Thanks mod is explained here .
herman_herman
2009-10-09T04:30:06Z
Do not blame me but I want this too :lol: :cheesy:
simdual
2009-10-09T07:38:15Z
ablakov1
  •  ablakov1
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
2009-10-10T02:51:54Z
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
2009-10-12T01:03:54Z
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
2009-10-12T15:12:20Z
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
2009-10-12T16:20:45Z
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
2009-10-12T17:27:48Z
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
2009-10-13T04:25:11Z
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
2009-10-13T09:42:56Z
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: <YafRoot>/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 <YafRoot>/Bin folder.
2-Copy "Thanksinstall.aspx" "ThanksInstall.aspx.cs" and "Thanks.sql" to your <YafRoot>/install folder.
3-Copy these files (Overwrite the old files):
<YafRoot>/Controls/DisplayPost.ascx
<YafRoot>/Controls/DisplayPost.ascx.cs
<YafRoot>/pages/admin/hostsettings.ascx
<YafRoot>/pages/admin/hostsettings.ascx.cs
<YafRoot>/Pages/Profile.ascx
<YafRoot>/Pages/Profile.ascx.cs
<YafRoot>/Languages/English.xml
(Note if you use another language, add these tags to your specific language file):
In <Page="BUTTON">
<Resource tag="BUTTON_THANKS">
<Resource tag="BUTTON_THANKS_TT">
<Resource tag="BUTTON_THANKSDELETE">
<Resource tag="BUTTON_THANKSDELETE_TT">

In <Page="POSTS">
<Resource tag="THANKSFROM">
<Resource tag="THANKSTO">
<Resource tag="THANKSINFO">
<Resource tag="THANKSINFOSINGLE">

In <Page="PROFILE">
<Resource tag="THANKSFROM">
<Resource tag="THANKSTOTIMES">
<Resource tag="THANKSTOPOSTS">

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
2009-10-13T10:53:00Z
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
2009-10-13T11:36:43Z
Hello Kamyar jan
Thanks for this excellent mod with such easy installation.Great job golpesar :wink:

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