[RC1] Thank Post by User v0.3.2

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

[RC1] Thank Post by User v0.3.2

Post by alexi02 »

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

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.
Last edited by alexi02 on Tue Jun 10, 2008 6:04 am, edited 16 times in total.
User avatar
eddywatson
Registered User
Posts: 220
Joined: Wed Aug 30, 2006 8:35 pm
Location: England
Contact:

Post by eddywatson »

hey cool i requested this

Thank you very much, does it work with EasyMOD?

Il try it out later!!!

Also, how do i install? do i need to run a DB update?
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

Yep it works with EasyMOD. You don't need to do a DB update as EasyMOD handles that as well :). Once installed with EasyMOD it's all ready.
User avatar
eddywatson
Registered User
Posts: 220
Joined: Wed Aug 30, 2006 8:35 pm
Location: England
Contact:

Post by eddywatson »

Dude, i could kiss you!!! lol. Once ive fixed a few problems on my forum, il try this mod out and let you know how it goes :D
User avatar
eddywatson
Registered User
Posts: 220
Joined: Wed Aug 30, 2006 8:35 pm
Location: England
Contact:

Post by eddywatson »

oh..

I use Cobalt template, so will i have to make a Cobalt folder in templates, and put the same files from subsilver into the Cobalt file? Also, il have to create a thank button that linked to the Cobalt theme wont i? other wise the subsilver 1 will out of place lol
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

You should already have a Cobalt folder, so yeah you'll need to put the files from Subsilver to the Cobalt folder and manually edit the Cobalt.cfg and viewtopic_body.tpl files.
User avatar
eddywatson
Registered User
Posts: 220
Joined: Wed Aug 30, 2006 8:35 pm
Location: England
Contact:

Post by eddywatson »

alexi02 wrote: manually edit the Cobalt.cfg and viewtopic_body.tpl files.


ut oh... what do you mean? im a n00b
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

Well we edit the Subsilver.cfg and the viewtopic_body.tpl for the Subsilver style when installing this mod so we have to do the same for the Cobalt style.

I might install the Cobalt style and make you a custom install file for the Cobalt style, but you will have to create your own icon_thank.gif to fit with the style.
User avatar
eddywatson
Registered User
Posts: 220
Joined: Wed Aug 30, 2006 8:35 pm
Location: England
Contact:

Post by eddywatson »

alexi02 wrote: Well we edit the Subsilver.cfg and the viewtopic_body.tpl for the Subsilver style when installing this mod so we have to do the same for the Cobalt style.

I might install the Cobalt style and make you a custom install file for the Cobalt style, but you will have to create your own icon_thank.gif to fit with the style.


yeah that would be great! thank you!
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

Ok I'm done.

Before installing the mod with EasyMOD you'll have to firstly copy the Cobalt.cfg and viewtopic_body.tpl from the templates/Cobalt/ directory to your main forum directory.

Then install the mod and copy those two files back to the templates/Cobalt/ directory.

You have to do this moving files because for some reason the Cobalt directory is read-only which makes EasyMOD have problems.

http://www.uzzisoft.com/projects/thank_ ... cobalt.zip

I've included the two files in the contrib folder just incase something doesn't work.
User avatar
eddywatson
Registered User
Posts: 220
Joined: Wed Aug 30, 2006 8:35 pm
Location: England
Contact:

Post by eddywatson »

So place Cobalt.cfg and viewtopic_body.tpl in Forum root, then install with EasyMOD, then place Cobalt.cfg and viewtopic_body.tpl into root/templates/cobalt ?

cheers
User avatar
eddywatson
Registered User
Posts: 220
Joined: Wed Aug 30, 2006 8:35 pm
Location: England
Contact:

Post by eddywatson »

I get this error when i try to install with easymod...

Critical Error

FIND FAILED: In file [viewtopic.php] could not find:

'POSTER_FROM' => $poster_from,
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Post by IPB_Refugee »

Hello alexi02,

thank you for the mod! Just two short questions:

- Will there be any problem when you delete or move a thread/posting which has been thanked?
- How many additional queries does your mod add to the viewtopic pages?

Greetings from Austria!
Wolfgang
User avatar
eddywatson
Registered User
Posts: 220
Joined: Wed Aug 30, 2006 8:35 pm
Location: England
Contact:

Post by eddywatson »

Got it working now

ive made a new cobalt "thanks" button and i uploaded it looks good.

But... this code has nocked the CASHmod off, its just disapread, any ideas?

Cheers
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

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

To upgrade from v0.1.0 to v0.1.1, just copy over the new thanks.php file.
Post Reply

Return to “[2.0.x] MODs in Development”