UzziSoft Forum Index UzziSoft
Provider of free downloads and services - www.uzzisoft.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[RC1] Thank Post by User v0.3.2
Goto page 1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    UzziSoft Forum Index -> phpBB Mods
View previous topic :: View next topic  
Author Message
alexi02
Site Admin


Joined: 17 Aug 2004
Posts: 230
Location: Brisbane, Australia

PostPosted: Fri Sep 15, 2006 12:46 am    Post subject: [RC1] Thank Post by User v0.3.2 Reply with quote

MOD Title: Thank Post by User
MOD Description: Allows registered users to thank a post which was posted by another user
MOD Version: 0.3.2

MOD Features:
- Able to thank users for specific posts
- View posts to see the users who have thanked them
- View a topic and see the number of times you have been thanked and the number of times you have thanked other users posts
- Use popups or use the current window
- Deincrements thanks given and received by 1 when deleting posts
- Able to enabled/disable on each forum
- Shows thanks received and given in user profile

MOD Download: Thank Post by User v0.3.2 RC1 (11.1KB)
Last Stable version: N/A

phpBB Thread Link: http://www.phpbb.com/phpBB/viewtopic.php?t=441758

MOD Screenshot:
Viewtopic , Popup , No Popup & ACP

MOD History:
2008-06-10 - Version 0.3.2
- Thanks is now removed for each post when deleting threads

2008-06-01 - Version 0.3.1 (RC1)
- Fixed a slight bug which was added in v0.3 that allowed users to thank anonymous posts
- Added in thanks in user profile
- Improved sql query in thanks.php

2008-04-3 - Version 0.3
- New thanks table created
- Thanked x times in y posts now only shows y posts as the posts which users have thanked and not the total posts the user has
- Ability to enable / disable this mod on each forum via the ACP

2007-10-26 - Version 0.2.6
- Updates thanks_given and thanked_received when posts are deleted

2006-10-29 - Version 0.2.5a
- Thanks icon updated

2006-10-23 - Version 0.2.5
- Bug Fix: Thanks button was sometimes displayed even though the user had thanked the post

2006-10-22 - Version 0.2.4
- Removes the thanks button from posts that the user has already thanked

2006-10-21 - Version 0.2.3
- Updated the way "Thanked 2 Times in 1 Posts" is displayed. Posts are now referred to the total number of posts that were thanked by other users instead of the user's total posts.

2006-10-19 - Version 0.2.2
- Bug Fix: Adjusted Thanked by row in viewtopic to wrap the users who thanked the post

2006-10-19 - Version 0.2.1
- Bug Fix: Moved Thanks icon back next to quote icon since the ICQ icon gets displayed over the thanks icon if the user has an ICQ number set (couldn't find a reasonable solution)

2006-09-27 - Version 0.2.0
- Moved Thanks icon to right hand side of where Profile, PM, links are displayed
- Made the username of people who thanked a user link to their profile
- Be able to select whether the thanks should popup or be displayed on the same page

2006-09-12 - Version 0.1.1
- Bug Fix: Thanks received wasn't updating correctly

2006-09-11 - Version 0.1.0
- Initial Release (for phpBB 2.0.21)

Author Notes:
A mod which allows you to thank a post that a user has posted.
When the Thanks button is pressed a page is displayed showing the user that they have successfully thanked the other user for their post.

You can choose whether that page should be a popup or not by editing the $popup_enabled to 0 or 1 in viewtopic.php and thanks.php
If set to 0, the user is shown the thanks page on the current window and will be automatically redirected to the post they thanked.

You can view the thanks given and thanks received by a user in the topic under their username.
You are shown the users who have thanked the specific post.
When a post has been deleted, the thanked received for the poster is decreased as well as the thanks given by other users.

You can enable or disable this mod for each forum via the ACP -> Forum Admin -> Management.
This mod is set to 'disabled' as default, therefore you will have to enable it on which ever forums you want.

Please post any problems or ways to improve this mod here.
There is a thank topic mod around but not a thank post mod as far as I can tell.
As requested from http://www.phpbb.com/phpBB/viewtopic.php?t=440526

alexi02.
_________________

UzziSoft Administrator


Last edited by alexi02 on Tue Jun 10, 2008 4:04 pm; edited 17 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
alexi02
Site Admin


Joined: 17 Aug 2004
Posts: 230
Location: Brisbane, Australia

PostPosted: Wed Sep 27, 2006 6:09 pm    Post subject: Reply with quote

2006-09-27 - Version 0.2.0
- Moved Thanks icon to right hand side of where Profile, PM, links are displayed
- Made the username of people who thanked a user link to their profile
- Be able to select whether the thanks should popup or be displayed on the same page
_________________

UzziSoft Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
alexi02
Site Admin


Joined: 17 Aug 2004
Posts: 230
Location: Brisbane, Australia

PostPosted: Thu Oct 19, 2006 12:39 pm    Post subject: Reply with quote

2006-10-19 - Version 0.2.1
- Bug Fix: Moved Thanks icon back next to quote icon since the ICQ icon gets displayed over the thanks icon if the user has an ICQ number set (couldn't find a reasonable solution)
_________________

UzziSoft Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
alexi02
Site Admin


Joined: 17 Aug 2004
Posts: 230
Location: Brisbane, Australia

PostPosted: Thu Oct 19, 2006 8:12 pm    Post subject: Reply with quote

2006-10-19 - Version 0.2.2
- Bug Fix: Adjusted Thanked by row in viewtopic to wrap the users who thanked the post
_________________

UzziSoft Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Star



Joined: 21 Oct 2006
Posts: 15

PostPosted: Sat Oct 21, 2006 9:02 am    Post subject: Reply with quote

hi dear alexi Surprised
thanks for your nice mod Wink

i found a problem in this mod
fo example:
Thanked 1 Times in 2 posts
2 is total number of post, but i need replace 2 by number of posts be thanked
exp: Thanked 50 Times in 30 posts
30 is number of post be thanked & 50 is total thanked to user
thanks Embarassed
Back to top
View user's profile Send private message
alexi02
Site Admin


Joined: 17 Aug 2004
Posts: 230
Location: Brisbane, Australia

PostPosted: Sat Oct 21, 2006 11:44 am    Post subject: Reply with quote

Thanks, I didn't know thats how VB did it.

2006-10-21 - Version 0.2.3
- Updated the way "Thanked 2 Times in 1 Posts" is displayed. Posts are now referred to the total number of posts that were thanked by other users instead of the user's total posts.

To update from v0.2.2
In viewtopic.php

Find
Code:
$thanks_given = $lang['Thanks_thanks'] . ': ' . $user_row['user_thanks_given'];
           $thanks_received = $lang['Thanks_thanked_1'] . ' ' . $user_row['user_thanks_received'] . ' ' . $lang['Thanks_thanked_2'] . ' ' . $user_row['user_posts'] . ' ' . $lang['Thanks_thanked_3'];


Replace with
Code:
           // Thanked Posts SQL
           $sql = "SELECT COUNT(thanks_count) AS thanks_count
                   FROM " . POSTS_TABLE . "
                   WHERE poster_id = " . $postrow[$i]['user_id'] . "
                   AND thanks_count <> 0";

           if ( !($result = $db->sql_query($sql)) ) {
              message_die(GENERAL_ERROR, "Could not obtain posts information", '', __LINE__, __FILE__, $sql);
           }

           $thanked_post_count = $db->sql_fetchrow($result);
           $db->sql_freeresult($result);

           $thanks_given = $lang['Thanks_thanks'] . ': ' . $user_row['user_thanks_given'];
           $thanks_received = $lang['Thanks_thanked_1'] . ' ' . $user_row['user_thanks_received'] . ' ' . $lang['Thanks_thanked_2'] . ' ' . $thanked_post_count['thanks_count'] . ' ' . $lang['Thanks_thanked_3'];

_________________

UzziSoft Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Star



Joined: 21 Oct 2006
Posts: 15

PostPosted: Sat Oct 21, 2006 10:24 pm    Post subject: Reply with quote

thanks dear alexi Wink

but i found two new bug
1- View posts to see the users who have thanked them is not working (not show)
2- when i thanked to one post, if hide the thanks icon for this post, really better, because i easily know i aerly thanked to this post
Back to top
View user's profile Send private message
alexi02
Site Admin


Joined: 17 Aug 2004
Posts: 230
Location: Brisbane, Australia

PostPosted: Sat Oct 21, 2006 10:47 pm    Post subject: Reply with quote

Mahdi1944 wrote:
1- View posts to see the users who have thanked them is not working (not show)


Did this happen when you updated to v0.2.3 or has it always happened?

Mahdi1944 wrote:
2- when i thanked to one post, if hide the thanks icon for this post, really better, because i easily know i aerly thanked to this post


So once the user has thanked a post, the thanks button should no longer be displayed for that post?
_________________

UzziSoft Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Star



Joined: 21 Oct 2006
Posts: 15

PostPosted: Sat Oct 21, 2006 10:56 pm    Post subject: Reply with quote

alexi02 wrote:
Mahdi1944 wrote:
1- View posts to see the users who have thanked them is not working (not show)


Did this happen when you updated to v0.2.3 or has it always happened?




this future worked in v0.2.0 , but not working in 0.2.3 Crying or Very sad
i installed clearly (not updated from v.0.2.0 to 0.2.3 Wink )


alexi02 wrote:
Mahdi1944 wrote:
2- when i thanked to one post, if hide the thanks icon for this post, really better, because i easily know i aerly thanked to this post


So once the user has thanked a post, the thanks button should no longer be displayed for that post?



yes Smile


thanks my firend
Back to top
View user's profile Send private message
alexi02
Site Admin


Joined: 17 Aug 2004
Posts: 230
Location: Brisbane, Australia

PostPosted: Sun Oct 22, 2006 12:23 am    Post subject: Reply with quote

Mahdi1944 wrote:
this future worked in v0.2.0 , but not working in 0.2.3 Crying or Very sad
i installed clearly (not updated from v.0.2.0 to 0.2.3 Wink )


That's odd, it should have worked. When you installed v0.2.3 did you undo the file and database changes that v0.2.0 did?
_________________

UzziSoft Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Star



Joined: 21 Oct 2006
Posts: 15

PostPosted: Sun Oct 22, 2006 12:34 am    Post subject: Reply with quote

alexi02 wrote:
Mahdi1944 wrote:
this future worked in v0.2.0 , but not working in 0.2.3 Crying or Very sad
i installed clearly (not updated from v.0.2.0 to 0.2.3 Wink )


That's odd, it should have worked. When you installed v0.2.3 did you undo the file and database changes that v0.2.0 did?


i did undo files , but database not changes, (replace backup files and install mod new, but not changes in DB) Rolling Eyes
Back to top
View user's profile Send private message
alexi02
Site Admin


Joined: 17 Aug 2004
Posts: 230
Location: Brisbane, Australia

PostPosted: Sun Oct 22, 2006 10:29 am    Post subject: Reply with quote

Did you install it by hand ?
Maybe you should send me (admin@uzzisoft.com) your viewtopic.php and viewtopic_body.tpl files.
_________________

UzziSoft Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
alexi02
Site Admin


Joined: 17 Aug 2004
Posts: 230
Location: Brisbane, Australia

PostPosted: Sun Oct 22, 2006 11:06 am    Post subject: Reply with quote

2006-10-22 - Version 0.2.4
- Removes the thanks button from posts that the user has already thanked
_________________

UzziSoft Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Star



Joined: 21 Oct 2006
Posts: 15

PostPosted: Mon Oct 23, 2006 10:19 am    Post subject: Reply with quote

hi dear firend

my broblem fixed (my viewtopic had a problem &....)
but now find new bug
Removes the thanks button from posts that the user has early thanked not working always good, when thank to 1st post in topic and then go 3th post in topic the button not remove. but when is thanking to all of the post (1st post and 2nd post and .....) without skip, remove thanks button is working Rolling Eyes

i installed this on my forum
u can test it
www.centralclubs.com

thanks Embarassed
Back to top
View user's profile Send private message
alexi02
Site Admin


Joined: 17 Aug 2004
Posts: 230
Location: Brisbane, Australia

PostPosted: Mon Oct 23, 2006 11:03 am    Post subject: Reply with quote

2006-10-23 - Version 0.2.5
- Bug Fix: Thanks button was displayed sometimes even though the user had thanked the post


Update from v0.2.4

In viewtopic.php

Find
Code:
if ( ($userdata['session_logged_in']) && ($userdata['user_id'] != $poster_id) ) {


Before, Add
Code:
$thanks_img = '';

_________________

UzziSoft Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    UzziSoft Forum Index -> phpBB Mods All times are GMT + 10 Hours
Goto page 1, 2, 3, 4, 5, 6  Next
Page 1 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group