[2.0.19] Thank You Mod

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply

Rating:

Excellent!
26
62%
Very Good
8
19%
Good
2
5%
Fair
2
5%
Poor
4
10%
 
Total votes: 42

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 27361
Joined: Sat Aug 16, 2003 7:36 am

[2.0.19] Thank You Mod

Post by Extensions Robot » Mon Mar 13, 2006 1:43 am

MOD Name: Thank You Mod
Author: Kinfule
MOD Description: This mod will add a feature for thanking the poster for his/her post.


MOD Version: 1.1.8

Download File: thank_mod_1.1.8.zip
mods overview page: View
File Size: 13893 Bytes

Security Score: 0

Support for this MOD needs to be asked within this topic. The phpBB Teams are not responsible or required to give anyone support for this MOD. By installing this MOD, the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

This MOD has only been tested by the phpBB MOD Team with the phpBB version in the topic title. It may not work in any other versions of phpBB.
Last edited by Extensions Robot on Mon Apr 30, 2007 12:31 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

User avatar
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 » Wed Mar 22, 2006 11:35 am

MOD Validated/Released

Notes:
As the title suggests, this MOD allows users to "thank" a particular post (if enabled by admin), and a list of "thankful" people would be shown in viewtopic.

User avatar
The Snoman
Registered User
Posts: 63
Joined: Sun Dec 04, 2005 7:39 pm

Re: [2.0.19] Thank You Mod

Post by The Snoman » Wed Mar 22, 2006 8:15 pm

MOD Database Manager wrote: Classification: 54 Communication

MOD Name: Thank You Mod
Author: Kinfule
MOD Description: This mod will add a feature for thanking the poster for his/her post.



Is this general or configurable by topic/poster and can the message be changed? (a Demo would help)

Kinfule
Registered User
Posts: 706
Joined: Tue Mar 02, 2004 12:16 am
Location: Chile

Post by Kinfule » Wed Mar 22, 2006 10:19 pm

FAQ:

Q:I want to use the thanks mod with Hide BBcode
A: Install this

Code: Select all

##############################################################
## MOD Title: Thanks mod and PhiliWeb Hide BBCode
## MOD Author: Kinfule < kinfule@lycos.es > (Javier B) http://kinfule.tk
## MOD Description: This mod will change the way the hide BBcode works.
##                           To see the hidden message the user will have to thank the topic
##                           instead of posting on it.
##
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: 3
## Included Files: n/a
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##############################################################
## MOD History:
##
##   2005-03-12 - Version 1.0.0
##      - Release, My users are more important.
##   2005-03-12 - Version 1.0.1
##      - Fixed Bug wich hided mesagge from topic poster.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
posting.php

#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = " . $userdata['user_id'];

#
#-----[ REPLACE WITH ]------------------------------------------
#
$sql = "SELECT p.topic_id, t.topic_id
FROM " . THANKS_TABLE . " p, ". TOPICS_TABLE ." t
WHERE p.topic_id = $topic_id
AND p.user_id = " . $userdata['user_id']. "
OR t.topic_id = $topic_id
AND t.topic_poster = " . $userdata['user_id'];

#
#-----[ FIND ]------------------------------------------
#
else { $sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = " . $userdata['user_id'];


#
#-----[ REPLACE WITH ]------------------------------------------
#
else { $sql = "SELECT p.topic_id, t.topic_id
FROM " . THANKS_TABLE . " p, ". TOPICS_TABLE ." t
WHERE p.topic_id = $topic_id
AND p.user_id = " . $userdata['user_id']. "
OR t.topic_id = $topic_id
AND t.topic_poster = " . $userdata['user_id'];


#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = " . $userdata['user_id'];

#
#-----[ REPLACE WITH ]------------------------------------------
#
$sql = "SELECT p.topic_id, t.topic_id
FROM " . THANKS_TABLE . " p, ". TOPICS_TABLE ." t
WHERE p.topic_id = $topic_id
AND p.user_id = " . $userdata['user_id']. "
OR t.topic_id = $topic_id
AND t.topic_poster = " . $userdata['user_id'];


#
#-----[ OPEN ]------------------------------------------
#
includes/topic_review.php

#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = " . $userdata['user_id'];

#
#-----[ REPLACE WITH ]------------------------------------------
#
$sql = "SELECT p.topic_id, t.topic_id
FROM " . THANKS_TABLE . " p, ". TOPICS_TABLE ." t
WHERE p.topic_id = $topic_id
AND p.user_id = " . $userdata['user_id']. "
OR t.topic_id = $topic_id
AND t.topic_poster = " . $userdata['user_id'];

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM 
Last edited by Kinfule on Mon Aug 28, 2006 9:46 pm, edited 1 time in total.
My Mods:
Show Voters || Moderate Own Topics || Thanks Mod || Tibian Char BBcode || Tibian Guild BBCode
Working on:
Ajax Shoutbox
I don't support by PM

User avatar
niksa
Registered User
Posts: 612
Joined: Mon Sep 08, 2003 7:20 pm
Location: Future birthplace of James T. Kirk
Contact:

Post by niksa » Wed Mar 22, 2006 11:15 pm

Looks good.. this is definitely helpful for particular forums. Is it possible to have this feature off in some boards within one forum? I have an Image request board, and it would be cool to have this there. But I don't want it in my site announcements board or my general chat, for example. Does it let me specify which board allows the thankfulness in this version or would I need to modify it?

( Also, just so you know, you have that FuntKlakow bot registered on your demo board... 8O )

Kinfule
Registered User
Posts: 706
Joined: Tue Mar 02, 2004 12:16 am
Location: Chile

Post by Kinfule » Thu Mar 23, 2006 1:24 am

Looks good.. this is definitely helpful for particular forums. Is it possible to have this feature off in some boards within one forum? I have an Image request board, and it would be cool to have this there. But I don't want it in my site announcements board or my general chat, for example. Does it let me specify which board allows the thankfulness in this version or would I need to modify it?

Yes, you can. You need to activate the feature per forum.


( Also, just so you know, you have that FuntKlakow bot registered on your demo board... Shocked )

Any idea how to fix that? I delete some post and banned ip but somehow they continue to post, well atleast they don't get link for PR.
My Mods:
Show Voters || Moderate Own Topics || Thanks Mod || Tibian Char BBcode || Tibian Guild BBCode
Working on:
Ajax Shoutbox
I don't support by PM

User avatar
niksa
Registered User
Posts: 612
Joined: Mon Sep 08, 2003 7:20 pm
Location: Future birthplace of James T. Kirk
Contact:

Post by niksa » Fri Mar 24, 2006 12:34 am

Kinfule wrote:
Looks good.. this is definitely helpful for particular forums. Is it possible to have this feature off in some boards within one forum? I have an Image request board, and it would be cool to have this there. But I don't want it in my site announcements board or my general chat, for example. Does it let me specify which board allows the thankfulness in this version or would I need to modify it?

Yes, you can. You need to activate the feature per forum.


Great! Definitely very useful. 8)
( Also, just so you know, you have that FuntKlakow bot registered on your demo board... Shocked )

Any idea how to fix that? I delete some post and banned ip but somehow they continue to post, well atleast they don't get link for PR.


As far as I know, you are supposed to delete it and have visual confirmation up so it doesn't re-register.

User avatar
ScoopingAround
Registered User
Posts: 25
Joined: Tue Apr 26, 2005 7:37 am
Location: USA

Post by ScoopingAround » Thu Mar 30, 2006 2:31 am

I am having some trouble getting this installed onto phpBB 2.0.19 I have checked, double checked and even triple checked the codes, files and I get it working in the admin area (telling it to allow the thanks in certain forums) but the thanks image is a red x (as tho it wasn't in the correct folder and it is) & when I click on the red X it just sends me back to the index page without posting a thanks.

Could you please help me get this fixed?

Thanks!

Kinfule
Registered User
Posts: 706
Joined: Tue Mar 02, 2004 12:16 am
Location: Chile

Post by Kinfule » Thu Mar 30, 2006 3:08 am

Did you upload the image file to templates/subSilver/images/lang_english/thanks.gif?


When you put your mouse over the X (the image) what url appears in your status bar (in the bottom of your browser)?
My Mods:
Show Voters || Moderate Own Topics || Thanks Mod || Tibian Char BBcode || Tibian Guild BBCode
Working on:
Ajax Shoutbox
I don't support by PM

User avatar
ScoopingAround
Registered User
Posts: 25
Joined: Tue Apr 26, 2005 7:37 am
Location: USA

Post by ScoopingAround » Thu Mar 30, 2006 3:15 am

Kinfule wrote: Did you upload the image file to templates/subSilver/images/lang_english/thanks.gif?


Yes
Kinfule wrote: When you put your mouse over the X (the image) what url appears in your status bar (in the bottom of your browser)?


Ummm the forum index URL does.. that isn't correct, what did I do?

Kinfule
Registered User
Posts: 706
Joined: Tue Mar 02, 2004 12:16 am
Location: Chile

Post by Kinfule » Thu Mar 30, 2006 3:33 am

just must have a problem with viewtopic.php or viewtopic_body.tpl.

If you want post your files in my support forum (Guest allowed)
http://usuarios.lycos.es/kinfule/viewforum.php?f=5

Else check that you have this lines in viewtopic.php

Code: Select all

	// Create button switch
	if ($userdata['user_id'] != $autor['0']['user_id'] && !$thanked)
	{
		$template->assign_block_vars('thanks_button', array(
			 'THANK_IMG' => $thank_img,
			 'U_THANK_TOPIC' => $thank_topic_url,
			 'L_THANK_TOPIC' => $thank_alt
		));
	}	
And this ones on your viewtopic_body.tpl

Code: Select all

<!-- BEGIN thanks_button -->
&nbsp;&nbsp;&nbsp;<a href="{thanks_button.U_THANK_TOPIC}"><img src="{thanks_button.THANK_IMG}" border="0" alt="{thanks_button.L_THANK_TOPIC}" align="middle" /></a>
<!-- END thanks_button -->
</span></td>
My Mods:
Show Voters || Moderate Own Topics || Thanks Mod || Tibian Char BBcode || Tibian Guild BBCode
Working on:
Ajax Shoutbox
I don't support by PM

rAdic
Registered User
Posts: 426
Joined: Mon Apr 25, 2005 11:32 pm
Contact:

Post by rAdic » Thu Mar 30, 2006 7:50 am

this sounds like a great idea for a mod, will be sure to try this in the future, thanks!.
The Australian Forums - Australia Discussion Forum - Discuss Australia topics or generally anything

User avatar
ScoopingAround
Registered User
Posts: 25
Joined: Tue Apr 26, 2005 7:37 am
Location: USA

Post by ScoopingAround » Thu Mar 30, 2006 8:29 am

Thanks Kinfule, I posted them here:

http://usuarios.lycos.es/kinfule/viewto ... ?p=241#241

I did check to see if the codes where there and they are. So I am lost, thanks for your help

Kinfule
Registered User
Posts: 706
Joined: Tue Mar 02, 2004 12:16 am
Location: Chile

Post by Kinfule » Thu Mar 30, 2006 9:26 pm

Uhm, extrage. Post please your viewtopic_body.tpl file.
The error must be there.
My Mods:
Show Voters || Moderate Own Topics || Thanks Mod || Tibian Char BBcode || Tibian Guild BBCode
Working on:
Ajax Shoutbox
I don't support by PM

User avatar
ScoopingAround
Registered User
Posts: 25
Joined: Tue Apr 26, 2005 7:37 am
Location: USA

Post by ScoopingAround » Thu Mar 30, 2006 9:33 pm

strange, I had them both there.. oh well, re-posted it :) Thanks again

http://usuarios.lycos.es/kinfule/viewto ... ?p=242#242

Post Reply

Return to “[2.0.x] MOD Database Releases”

Who is online

Users browsing this forum: No registered users and 5 guests