Shoutbox

Hits : 52
Bienvenue sur le site de Download de C-Gold
Dans se site vous trouver un tas de chose tel que Client / Patch et encore bien d'autre


Visiter

CommunityGold : Mu, WoW : serveur privé
Manga-DL : Partager votre passion sur le net


Location: root://
Nom Modified Taille
  27/08/07 09:04 -
AnimWeb 20/07/06 20:37 -
Arriere plan 13/10/06 22:13 -
Autres 15/12/04 01:18 -
Bk-zone 17/04/07 00:23 -
Britania 03/07/06 00:09 -
Cabal 08/07/08 20:03 -
Mu online 14/09/05 15:31 -
Music 21/03/07 02:52 -
Pitures 28/02/09 13:31 -
Signature 21/02/08 02:46 -
ts 06/02/08 00:29 -
Video 21/03/07 02:51 -
Voix 04/06/07 23:19 -
-Ps3-Mu.jpg 06/02/05 11:39 82.32 KB
A3 BF.jpg 18/03/06 23:39 41.16 KB
AP1.png 09/10/06 22:43 691.40 KB
Bkdenice-Zone.src 25/07/07 19:42 1.57 KB
bnrnav.fla 03/04/06 22:04 228.00 KB
FireShot capture 4.png 18/02/09 16:02 2.21 MB
Gif_Ps3.gif 05/03/05 17:07 31.54 KB
21/07/09 00:34 26.13 KB
Images mankante.JPG 09/08/05 12:34 136.15 KB
install.txt 03/06/06 19:24 23.41 KB
Klick0r.rar 27/08/06 13:59 4.30 KB
KnJ01.mp3 24/06/08 18:29 18.83 MB
logobidon.jpg 30/09/05 21:24 137.53 KB
Manga.rar 07/11/08 17:07 1.60 MB
Pfinal6 (1024).png 28/10/06 22:21 436.45 KB
Preuve.jpg 19/03/06 13:13 404.72 KB
procexp.rar 05/10/06 00:38 453.72 KB
product-image_verification(3).rar 09/06/07 19:29 1.81 KB
pub.php 11/09/05 16:50 0.35 KB
Screen(09_10-14_24)-0000.jpg 10/09/05 15:02 859.67 KB
Sign.gif 23/08/05 16:28 53.54 KB
sign.gif 22/10/05 23:34 178.31 KB
sign.jpg 11/04/05 16:54 119.91 KB
sign fla.swf 23/09/05 21:15 3.43 MB
Sign_ancien.gif 07/08/05 00:06 53.54 KB
SQL.JPG 11/09/05 19:40 138.79 KB
testing.png 18/03/06 23:22 166.00 KB
theme-freshy-1.0.pkg.gz 13/06/07 22:28 680.85 KB
tsadminclient.zip 04/12/06 15:33 485.81 KB
vlcsnap-899041.png 09/11/06 20:27 778.78 KB
VSFilter.rar 21/01/09 18:14 381.37 KB
02/11/05 08:44 489.50 KB
Yohan.gif 19/08/05 01:22 39.34 KB
yohan.swf 23/09/05 23:28 3.71 MB
Dossier(s): 14    Fichier(s): 34    Total du dossier: 7155.75 Kb

FTP de Bkdenice v1.01 Final
Crée par -Ps3- / Bkdenice, Telecharger Le script sur Ici
install.txt
##############################################################
## MOD Title: Thank You Mod for PhpBB
## MOD Author: Kinfule < kinfule@lycos.es > (Javier B) http://kinfule.tk
## MOD Description: This mod will add a button for thanking someone for their post.
##
## MOD Version: 1.1.8
##
## Installation Level: Intermediate
## Installation Time: 20 Minutes
##
## ==== Evo-Mods ==============================================
##
## MOD Porter: JeFFb68CAM
## MOD ID: 17
## MOD DB Link: http://Evo-Mods.com/modules.php?name=Mods&file=view&mod=17
## MOD Ported on: February 12, 2006
## MOD Compatibility: Nuke-Evolution Basic 1.0.0
## Nuke-Evolution Basic 1.0.1
##
## ============================================================
##
## Files To Edit: 11
## modules/Forums/admin/admin_forums.php,
## modules/Forums/modcp.php,
## modules/Forums/posting.php,
## modules/Forums/viewtopic.php,
## includes/constants.php,
## includes/functions.php,
## includes/functions_post.php,
## modules/Forums/langugage/lang_english/lang_main.php,
## modules/Forums/langugage/lang_english/lang_admin.php,
## themes/YOUR_THEME/forums/viewtopic_body.tpl,
## modules/Forums/templates/subSilver/admin/forum_edit_body.tpl
## Included Files: 1
## themes/YOUR_THEME/forums/images/lang_english/thanks.gif
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## Please check http://evo-mods.com for the latest ported version of this mod.
## It can easily be found in our mod database (www.Evo-Mods.com/modules.php?name=Mods)
##############################################################
## Author Notes:
## - You can edit a variable to choose auth_type default is auth_read.
## - It uses it own date format to chage the format, edit $timeformat value to another one.
## - This MOD needs to be enabled on a per forum basis.
##
##############################################################
## MOD History:
## 2005-02-25 - Version 0.0.1
## - First Release
##
## 2005-02-25 - Version 0.0.2
## - Fixed bug wich allowed guests to thank.
##
## 2005-02-26 - Version 1.0.0
## - Version 1.0.0 for the Mod Database.
##
## 2005-03-01 - Version 1.0.1
## - Fixed all said by the Mod Team on PhpBB.com.
## - Checked to work with PhpBB version 2.0.13.
##
## 2005-03-04 - Version 1.0.1
## - I was told about some errors in html, they are Fixed.
## - I was given a better image By Dude, Thanks Dude.
## - No version change cause no bugfixes have been done, just replaced a <tr></tr> to </tr><tr>.
##
## 2005-03-04 - Version 1.0.2
## - I got told about an error in viewtopic with the table, Fixed.
## - SQL fixed.
##
## 2005-03-06 - Version 1.0.3
## - Posible SQL injection fixed.
## - SQL fixed.
##
## 2005-03-12 - Version 1.0.4
## - Query Optimization in viewtopic.php
##
## 2005-04-08 - Version 1.1.0
## - Now it only appears in first page only.
## - Added the use of constants.
##
## 2005-04-24 - Version 1.1.1
## - XHTML compliant.
##
## 2005-06-06 - Version 1.1.2
## - Added: Delete thanks entries when a post is deleted.
##
## 2005-06-22 - Version 1.1.3
## - Added: Meta Redirection after thanking post.
## - Added: CSS hiding for complete thanks list.
##
## 2005-06-26 - Version 1.1.4
## - Fix some stuff with the mod template.
##
## 2005-07-07 - Version 1.1.5
## - Improved the display/hide method. (Thanks Stoebi)
##
## 2005-08-06 - Version 1.1.6
## - Fixed bug in modcp.php.
## - Now you cannot thank yourself.
## - Fixed grammar error on posting.php.
## - Commented some partial lines in FINDs to help people finding them.
##
## 2005-10-30 - Version 1.1.7
## - Allow to thank locked topics.
##
## 2005-12-06 - Version 1.1.8
## - PhpBB Mod Template fixes.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
##
#
#-----[ COPY ]------------------------------------------
#
copy templates/subSilver/images/lang_english/thanks.gif to templates/subSilver/images/lang_english/thanks.gif
#
#-----[ SQL ]------------------------------------------
#
CREATE TABLE `nuke_bbthanks` (
`topic_id` MEDIUMINT(8) NOT NULL,
`user_id` MEDIUMINT(8) NOT NULL,
`thanks_time` INT(11) NOT NULL
);

ALTER TABLE `nuke_bbforums` ADD `forum_thank` TINYINT(1) DEFAULT '0' NOT NULL;

#
#-----[ OPEN ]------------------------------------------
#
modules/Forums/admin/admin_forums.php

#
#-----[ FIND ]------------------------------------------
#
$forumstatus = $row['forum_status'];

#
#-----[ AFTER, ADD ]------------------------------------------
#
$forumthank = $row['forum_thank'];

#
#-----[ FIND ]------------------------------------------
#
$forumstatus = FORUM_UNLOCKED;

#
#-----[ AFTER, ADD ]------------------------------------------
#
$forumthank = FORUM_UNTHANKABLE;

#
#-----[ FIND ]------------------------------------------
#
$statuslist .= "<option value=\"" . FORUM_LOCKED . "\" $forumlocked>" . $lang['Status_locked'] . "</option>\n";

#
#-----[ AFTER, ADD ]------------------------------------------
#
// Begin Thank Mod
$thank_yes = ($forumthank) ? 'checked="checked"' : '';
$thank_no = (!$forumthank) ? 'checked="checked"' : '';
// End Thank Mod

#
#-----[ FIND ]------------------------------------------
#
'S_STATUS_LIST' => $statuslist,

#
#-----[ AFTER, ADD ]------------------------------------------
#
"THANK_ENABLE" => $thank_yes,
"THANK_DISABLE" => $thank_no,

#
#-----[ FIND ]------------------------------------------
#
'L_FORUM_STATUS' => $lang['Forum_status'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_FORUM_THANK' => $lang['use_thank'],
'L_YES' => $lang['Yes'],
'L_NO' => $lang['No'],

#
#-----[ FIND ]------------------------------------------
# This may be a partial find and not the whole line.
#
$sql = "INSERT INTO " . FORUMS_TABLE . "

#
#-----[ IN-LINE FIND ]------------------------------------------
#
" . $field_sql . "

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, forum_thank

#
#-----[ FIND ]------------------------------------------
# This may be a partial find and not the whole line.
#
VALUES ('" . $next_id . "', '" . str_replace("\'", "''",

#
#-----[ IN-LINE FIND ]------------------------------------------
#
$value_sql . "

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, " . intval($HTTP_POST_VARS['forumthank']) . "

#
#-----[ FIND ]---------------------------------
# This may be a partial find and not the whole line.
$sql = "UPDATE " . FORUMS_TABLE . "
SET forum_name

#
#-----[ IN-LINE FIND ]-------------------------
#
" . intval($HTTP_POST_VARS['prune_enable']) . "

#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
, forum_thank = " . intval($HTTP_POST_VARS['forumthank']) . "

#
#-----[ OPEN ]------------------------------------------
#
modules/Forums/modcp.php

#
#-----[ FIND ]------------------------------------------
#
$sql = "DELETE
FROM " . TOPICS_TABLE . "
WHERE topic_id IN ($topic_id_sql)
OR topic_moved_id IN ($topic_id_sql)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete topics', '', __LINE__, __FILE__, $sql);
}
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$sql = "DELETE FROM " . THANKS_TABLE . "
WHERE topic_id IN ($topic_id_sql)";
if ( !$db->sql_query($sql, BEGIN_TRANSACTION) )
{
message_die(GENERAL_ERROR, 'Error in deleting Thanks post Information', '', __LINE__, __FILE__, $sql);
}

#
#-----[ OPEN ]------------------------------------------
#
modules/Forums/viewtopic.php

#
#-----[ FIND ]---------------------------------
#
$forum_id = intval($forum_topic_data['forum_id']);

#
#-----[ AFTER, ADD ]---------------------------------
#
// Begin Thanks Mod

// Check if the Thanks feature is active for this forum
$sql = "SELECT `forum_thank`
FROM " . FORUMS_TABLE . "
WHERE forum_id =$forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain forum information", '', __LINE__, __FILE__, $sql);
}
if ( !($forum_thank_result = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_MESSAGE, $lang['thank_no_exist']);
}
// Setting if feature is active or not

$show_thanks = ($forum_thank_result['forum_thank'] == FORUM_THANKABLE) ? FORUM_THANKABLE : FORUM_UNTHANKABLE;

// End Thanks Mod

#
#-----[ FIND ]---------------------------------
#
$reply_topic_url = append_sid("posting.$phpEx?mode=reply&amp;" . POST_TOPIC_URL . "=$topic_id");

#
#-----[ AFTER, ADD ]---------------------------------
#
// Begin Thanks Mod
$thank_topic_url = append_sid("posting.$phpEx?mode=thank&amp;" . POST_TOPIC_URL . "=$topic_id");
// End Thanks Mod

#
#-----[ FIND ]---------------------------------
#
$post_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new'];
$post_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['Post_new_topic'];

#
#-----[ AFTER, ADD ]---------------------------------
#
// Begin Thanks Mod
$thank_img = $images['thanks'];
$thank_alt = $lang['thanks_alt'];
// End Thanks Mod

#
#-----[ FIND ]---------------------------------
#
# the whole line is: $pagination = ( $highlight != '' ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order&amp;highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start);
#
$pagination =

#
#-----[ AFTER, ADD ]---------------------------------
#
$current_page = get_page($total_replies, $board_config['posts_per_page'], $start);

#
#-----[ FIND ]---------------------------------
#
//
// Update the topic view counter
//
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_views = topic_views + 1
WHERE topic_id = '$topic_id'";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Could not update topic views.", '', __LINE__, __FILE__, $sql);
}
#
#-----[ AFTER, ADD ]---------------------------------
#
// Begin Thanks Mod
//
// Get topic thanks
//
if ($show_thanks == FORUM_THANKABLE)
{
// Select Format for the date
$timeformat = "d-m, G:i";

$sql = "SELECT u.user_id, u.username, t.thanks_time
FROM " . THANKS_TABLE . " t, " . USERS_TABLE . " u
WHERE topic_id = $topic_id
AND t.user_id = u.user_id";

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

$total_thank = $db->sql_numrows($result);
$thanksrow = array();
$thanksrow = $db->sql_fetchrowset($result);

for($i = 0; $i < $total_thank; $i++)
{
$topic_thanks = $db->sql_fetchrow($result);
$thanker_id[$i] = $thanksrow[$i]['user_id'];
$thanker_name[$i] = $thanksrow[$i]['username'];
$thanks_date[$i] = $thanksrow[$i]['thanks_time'];

// Get thanks date
$thanks_date[$i] = create_date($timeformat, $thanks_date[$i], $board_config['board_timezone']);

// Make thanker profile link
$thanker_profile[$i] = append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$thanker_id[$i]");
$thanks .= '<a href="' .$thanker_profile[$i] . '">' . $thanker_name[$i] . '</a>(' . $thanks_date[$i] . '), ';

if ($userdata['user_id'] == $thanksrow[$i]['user_id'])
{
$thanked = TRUE;
}
}

$sql = "SELECT u.topic_poster, t.user_id, t.username
FROM " . TOPICS_TABLE . " u, " . USERS_TABLE . " t
WHERE topic_id = $topic_id
AND u.topic_poster = t.user_id";

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

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

$autor_name = $autor[0]['username'];
$thanks .= "".$lang['thanks_to']." $autor_name ".$lang['thanks_end']."";

// 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
));
}

}
// End Thanks Mod

#
#-----[ FIND ]---------------------------------
#
'U_POST_ID' => $postrow[$i]['post_id']), $xd_root)
/*****[END]********************************************
[ Mod: XData v0.1.1 ]
******************************************************/
);
#
#-----[ AFTER, ADD ]---------------------------------
#
// Begin Thanks Mod
if( ($show_thanks == FORUM_THANKABLE) && ($i == 0) && ($current_page == 1) && ($total_thank > 0))
{
$template->assign_block_vars('postrow.thanks', array(
'THANKFUL' => $lang['thankful'],
'THANKED' => $lang['thanked'],
'HIDE' => $lang['hide'],
'THANKS_TOTAL' => $total_thank,
'THANKS' => $thanks
)
);

}
// End Thanks Mod

#
#-----[ OPEN ]---------------------------------
#
modules/Forums/posting.php

#
#-----[ FIND ]---------------------------------
#
case 'topicreview':
$is_auth_type = 'auth_read';
break;

#
#-----[ AFTER, ADD ]---------------------------------
#
case 'thank':
$is_auth_type = 'auth_read';
break;

#
#-----[ FIND ]---------------------------------
#
case 'reply':
case 'vote':

#-----[ BEFORE, ADD ]---------------------------------
case 'thank':

#
#-----[ FIND ]---------------------------------
#
else if ( $mode != 'newtopic' && $post_info['topic_status'] == TOPIC_LOCKED && !$is_auth['auth_mod'])

#
#-----[ IN-LINE FIND ]---------------------------------
#
$mode != 'newtopic'

#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
&& $mode != 'thank'

#
#-----[ FIND ]---------------------------------
#
case 'reply':
case 'topicreview':

#
#-----[ BEFORE, ADD ]---------------------------------
#
case 'thank':

#
#-----[ FIND ]---------------------------------
#
else if ( $mode == 'vote' )
{

#
#-----[ BEFORE, ADD ]---------------------------------
#
else if ( $mode == 'thank' )
{
$topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]);
if ( !($userdata['session_logged_in']) )
{
$message = $lang['thanks_not_logged'];
$message .= '<br /><br />' . sprintf($lang['Click_return_topic'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
if ( empty($topic_id) )
{
message_die(GENERAL_MESSAGE, 'No topic Selected');
}

$userid = $userdata['user_id'];
$thanks_date = time();

// Check if user is the topic starter
$sql = "SELECT `topic_poster`
FROM " . TOPICS_TABLE . "
WHERE topic_id = $topic_id
AND topic_poster = $userid";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't check for topic starter", '', __LINE__, __FILE__, $sql);

}

if ( ($topic_starter_check = $db->sql_fetchrow($result)) )
{
$message = $lang['t_starter'];
$message .= '<br /><br />' . sprintf($lang['Click_return_topic'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}

// Check if user had thanked before
$sql = "SELECT `topic_id`
FROM " . THANKS_TABLE . "
WHERE topic_id = $topic_id
AND user_id = $userid";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't check for previous thanks", '', __LINE__, __FILE__, $sql);

}
if ( !($thankfull_check = $db->sql_fetchrow($result)) )
{
// Insert thanks if he/she hasn't
$sql = "INSERT INTO " . THANKS_TABLE . " (topic_id, user_id, thanks_time)
VALUES ('" . $topic_id . "', '" . $userid . "', " . $thanks_date . ") ";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not insert thanks information", '', __LINE__, __FILE__, $sql);

}
$message = $lang['thanks_add'];
}
else
{
$message = $lang['thanked_before'];
}

$template->assign_vars(array(
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">')
);

$message .= '<br /><br />' . sprintf($lang['Click_return_topic'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">', '</a>');

message_die(GENERAL_MESSAGE, $message);
}

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

#
#-----[ FIND ]---------------------------------
#
define('FORUM_UNLOCKED', 0);
define('FORUM_LOCKED', 1);

#
#-----[ AFTER, ADD ]---------------------------------
#
// Forum Thanks state
define('FORUM_UNTHANKABLE', 0);
define('FORUM_THANKABLE', 1);

#
#-----[ FIND ]---------------------------------
#
define('SMILIES_TABLE', $prefix.'_bbsmilies');

#
#-----[ AFTER, ADD ]---------------------------------
#
define('THANKS_TABLE', $prefix.'_bbthanks');

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

#
#-----[ FIND ]---------------------------------
#
function generate_pagination

#
#-----[ BEFORE, ADD ]---------------------------------
#
function get_page($num_items, $per_page, $start_item)
{

$total_pages = ceil($num_items/$per_page);

if ( $total_pages == 1 )
{
return '1';
exit;
}

$on_page = floor($start_item / $per_page) + 1;
$page_string = '';

for($i = 0; $i < $total_pages + 1; $i++)
{
if( $i == $on_page )
{
$page_string = $i;
}

}
return $page_string;
}

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

#
#-----[ FIND ]---------------------------------
#
$sql = "DELETE FROM " . TOPICS_TABLE . "
WHERE topic_id = '$topic_id'
OR topic_moved_id = '$topic_id'";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
}
#
#-----[ AFTER, ADD ]---------------------------------
#

$sql = "DELETE FROM " . THANKS_TABLE . "
WHERE topic_id = $topic_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in deleting Thanks post Information', '', __LINE__, __FILE__, $sql);
}

#
#-----[ OPEN ]------------------------------------------
#
modules/Forums/language/lang_english/lang_admin.php

#
#-----[ FIND ]---------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Begin Thanks Mod
$lang['use_thank'] = 'Allow to Thank posts';
// End Thanks Mod

#
#-----[ OPEN ]------------------------------------------
#
modules/Forums/language/lang_english/lang_main.php

#
#-----[ FIND ]---------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Begin Thanks Mod
$lang['thankful'] = 'Thankful People';
$lang['thanks_to'] = 'Thanks';
$lang['thanks_end'] = 'for his/her post';
$lang['thanks_alt'] = 'Thank Post';
$lang['thanked_before'] = 'You have already thanked this topic';
$lang['thanks_add'] = 'Your thanks has been given';
$lang['thanks_not_logged'] = 'You need to log in to thank someone\'s post';
$lang['thanked'] = 'user(s) is/are thankful for this post.';
$lang['hide'] = 'Hide';
$lang['t_starter'] = 'You cannot thank yourself';
$lang['thank_no_exist'] = 'Forum thank information doesn\'t exists';
// End Thanks Mod

#
#-----[ OPEN ]---------------------------------
#
themes/YOUR_THEME/forums/forums.cfg

#
#-----[ FIND ]---------------------------------
#
$images['reply_locked'] = "$current_template_images/{LANG}/reply-locked.gif";

#
#-----[ AFTER, ADD ]---------------------------------
#
$images['thanks'] = "$current_template_images/{LANG}/thanks.gif";

#
#-----[ OPEN ]---------------------------------
#
modules/Forums/templates/subSilver/admin/forum_edit_body.tpl

#
#-----[ FIND ]---------------------------------
#
<tr>
<td class="row1">{L_FORUM_STATUS}</td>
<td class="row2"><select name="forumstatus">{S_STATUS_LIST}</select></td>
</tr>

#
#-----[ AFTER, ADD ]---------------------------------
#
<tr>
<td class="row1">{L_FORUM_THANK}</td>
<td class="row2"><INPUT TYPE="radio" NAME="forumthank" value="1" {THANK_ENABLE} />{L_YES}&nbsp; &nbsp;<INPUT TYPE="radio" NAME="forumthank" value="0" {THANK_DISABLE} />{L_NO}</td>
</tr>

#
#-----[ OPEN ]---------------------------------
#
themes/YOUR_THEME/forums/viewtopic_body.tpl

#
#-----[ FIND ]---------------------------------
# This is a partial line, the complete line is much longer
#
<a href="{U_POST_NEW_TOPIC}">

#
#-----[ IN-LINE FIND ]---------------------------------
#
</a></span></td>

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
</a>
#
#-----[ AFTER, ADD ]---------------------------------
#
# Add this on a new line
<!-- 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>

#
#-----[ FIND ]---------------------------------
#
<!-- END postrow -->

#
#-----[ BEFORE, ADD ]---------------------------------
#
<!-- BEGIN thanks -->
<tr>
<td colspan="2" class="row2">
<table class="forumline" cellspacing="1" cellpadding="3" border="0" width="100%">
<tr>
<th class="thLeft">{postrow.thanks.THANKFUL}</th>
</tr>
<tr>
<td class="row2" valign="top" align="left">
<span id="hide_thank" style="display: block;" class="gensmall">
<a href="javascript: void(0);" onclick="document.all.show_thank.style.display = 'block';document.all.hide_thank.style.display = 'none'">{postrow.thanks.THANKS_TOTAL}</a> {postrow.thanks.THANKED}
</span>
<span id="show_thank" style="display: none;" class="gensmall">
{postrow.thanks.THANKS}&nbsp;
<br /><br /><div align="right"><a href="javascript: void(0);" onClick="document.all.show_thank.style.display = 'none';document.all.hide_thank.style.display = 'block'">[ {postrow.thanks.HIDE} ]</a></div>
</span>
</td>
</tr>
</table>
</td>
</tr>
<!-- END thanks -->

#
#-----[ FIND ]---------------------------------
# This is a partial line, the complete line is much longer
#
<a href="{U_POST_NEW_TOPIC}">

#
#-----[ IN-LINE FIND ]---------------------------------
#
</a></span></td>

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
</a>
#
#-----[ AFTER, ADD ]---------------------------------
#
# Add this on a new line

<!-- 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>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

# Please make sure to clear your cache after installing any mod.