[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.
s60Addict
Registered User
Posts: 49
Joined: Tue Sep 26, 2006 5:08 pm

Re: Some Modifications Needed In Thank Post By User v0.1.1 M

Post by s60Addict » Wed Sep 27, 2006 8:27 am

alexi02 wrote: These 3 have been completed.

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


Kool Thanks alot !!

Btw, as far as the integration with the hide bbcode is concerned, I FEEL THAT IT IS NOT MUCH COMPLICATED. But since i dont know coding, so cant help it !

The previous Thanks TO Topic Mod has been integrated with the hide bbcode mod and it doesnt require much of editing.

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
Please try n c if u can integrate it with the hide mod so that the Hidden content is displayed either when the user thanks that post or post a reply to the topic !

thanks in advance!

User avatar
Bilardinho
Registered User
Posts: 40
Joined: Mon Mar 20, 2006 11:37 am
Contact:

Post by Bilardinho » Fri Sep 29, 2006 7:11 am

Thank you VERY MUCH. This mod is super and i miss it long time.
Great work :-)

User avatar
Bilardinho
Registered User
Posts: 40
Joined: Mon Mar 20, 2006 11:37 am
Contact:

Post by Bilardinho » Wed Oct 18, 2006 5:31 pm

Hi, i install this MOD, and it works OK.
I have only one little problem. If any user have in his profile ICQ, this ICQ Icon is replace in the same place "icon_thank.gif".
Can you help me for repair this little problem, please?

User avatar
Roks
Registered User
Posts: 119
Joined: Thu Sep 14, 2006 1:15 am

Post by Roks » Wed Oct 18, 2006 8:37 pm

Thanks for the MOD, 2day I had installed other Thanks MOD by Kinfule v1.1.9. The MOD is working fine, but it doesn't display, name of who Thanked and Thanks stats under profile. I will try to integrate both. As removing the previous MOD will require a lot of work.

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

Post by alexi02 » Thu Oct 19, 2006 2:22 am

Bilardinho wrote: I have only one little problem. If any user have in his profile ICQ, this ICQ Icon is replace in the same place "icon_thank.gif".
Can you help me for repair this little problem, please?


I've tried different solutions with some displaying fine on Internet Explorer and not correctly on Firefox. I think the easiest solution would be to put the thanks button back next to the quote button :|.

Find

Code: Select all

{postrow.QUOTE_IMG}
In-line after add

Code: Select all

{postrow.THANKS_IMG}
Find

Code: Select all

table cellspacing="0" cellpadding="0" border="0"
In-line after add

Code: Select all

height="18" width="18"
Find

Code: Select all

<td width="100%" nowrap="nowrap">
In-line find

Code: Select all

width="100%"
In-line replace with

Code: Select all

valign="middle"
Find and delete

Code: Select all

<td align="right">{postrow.THANKS_IMG}</td>

User avatar
Bilardinho
Registered User
Posts: 40
Joined: Mon Mar 20, 2006 11:37 am
Contact:

Post by Bilardinho » Thu Oct 19, 2006 5:33 am

Thank you for your quick reply.

Witch file i must edit?

I test it in Firefox and Internet Explorer. Test on 3 skins.
Image

I think i can make same mistake when i write it to my files.
I repair it as you write, after i white here if OK.
(i know, my enghish is poor :D )

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

Post by alexi02 » Thu Oct 19, 2006 6:57 am

templates/subSilver/viewtopic_body.tpl is the file you need to edit with those changes if you have v0.2.0 installed.

User avatar
Bilardinho
Registered User
Posts: 40
Joined: Mon Mar 20, 2006 11:37 am
Contact:

Post by Bilardinho » Thu Oct 19, 2006 7:38 am

alexi02 wrote: templates/subSilver/viewtopic_body.tpl is the file you need to edit with those changes if you have v0.2.0 installed.

After repair "viewtopic_body.tpl" is OK. But you heve right, first position of this buttuon will be better.
If you can see my first TPL without repair, you can here:

Code: Select all

http://www.ab-forum.info/templates/subSilver/viewtopic_body.tpl

User avatar
Bilardinho
Registered User
Posts: 40
Joined: Mon Mar 20, 2006 11:37 am
Contact:

Post by Bilardinho » Thu Oct 19, 2006 9:30 am

I have another one problem.
In my phpBB i have too many thanks. I need after 20 thanks (or another system for write thanks to next line, if thaks are too many), next thanks write to the next line.
Can you hepl me please?

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

Post by alexi02 » Thu Oct 19, 2006 9:52 am

Bilardinho wrote: After repair "viewtopic_body.tpl" is OK. But you heve right, first position of this buttuon will be better.
If you can see my first TPL without repair, you can here:

Code: Select all

http://www.ab-forum.info/templates/subSilver/viewtopic_body.tpl


So you want the button to be before the quote button?
If so, just do the changes I mentioned in my previous post and then just move {postrow.THANKS_IMG} before {postrow.QUOTE_IMG}.

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

Post by alexi02 » Thu Oct 19, 2006 10:04 am

Bilardinho wrote: I have another one problem.
In my phpBB i have too many thanks. I need after 20 thanks (or another system for write thanks to next line, if thaks are too many), next thanks write to the next line.
Can you hepl me please?


Hm, I guess I didn't test this Mod out well enough. Thanks for reporting this problem.

In viewtopic_body.tpl

Find and remove

Code: Select all

width="18"
Find

Code: Select all

<td valign="middle" nowrap="nowrap">
In-line Find and Remove

Code: Select all

nowrap="nowrap"

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

User avatar
Bilardinho
Registered User
Posts: 40
Joined: Mon Mar 20, 2006 11:37 am
Contact:

Post by Bilardinho » Thu Oct 19, 2006 11:05 am

alexi02 wrote:
Bilardinho wrote:I have another one problem.
In my phpBB i have too many thanks. I need after 20 thanks (or another system for write thanks to next line, if thaks are too many), next thanks write to the next line.
Can you hepl me please?


Hm, I guess I didn't test this Mod out well enough. Thanks for reporting this problem.

In viewtopic_body.tpl

Find and remove

Code: Select all

width="18"
Find

Code: Select all

<td valign="middle" nowrap="nowrap">
In-line Find and Remove

Code: Select all

nowrap="nowrap"

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

In SubSilver is it OK. But i use AcidTech and Jet and here this change don't help me :-(

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

Post by alexi02 » Thu Oct 19, 2006 11:30 am

Bilardinho wrote: In SubSilver is it OK. But i use AcidTech and Jet and here this change don't help me :-(


I've just installed the AcidTech style and have tried it and it worked out fine. Sure you removed the right parts? (I think you maybe have removed the nowrap="nowrap" from the <table instead of from the <td part.

Image

User avatar
Bilardinho
Registered User
Posts: 40
Joined: Mon Mar 20, 2006 11:37 am
Contact:

Post by Bilardinho » Thu Oct 19, 2006 12:08 pm

I remove it right. subSilver is OK. AcidTech and Jet is only in one line.
I look to this part of Code, but Code is same in all 3 files :-(
I don't know where is problem.
-------------------------------------------------
I make same tests, and if i swith thanks MOD off - ICQ button stay on right side. I think MOD is OK, It's only my problem :-(
But i donť know where :-(

User avatar
Bilardinho
Registered User
Posts: 40
Joined: Mon Mar 20, 2006 11:37 am
Contact:

Post by Bilardinho » Thu Oct 19, 2006 12:29 pm

Can you send me please your file for AcidTech for compare it?
Or if you want to see my file:

Code: Select all

http://www.ab-forum.info/templates/AcidTech/viewtopic_body.tpl

Post Reply

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