Thanks for posts

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

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
Палыч
Translator
Posts: 1543
Joined: Sun Jul 01, 2007 7:59 pm
Location: St. Petersburg
Name: Сергей
Contact:

Re: Thanks for posts

Post by Палыч »

Give me a link to your forum, and not on your host
And the possibility of test input (test account)
Sorry for my bad english
alebrescia
Registered User
Posts: 22
Joined: Sat Mar 20, 2010 11:32 am
Name: Alessandro Sosta

Re: Thanks for posts

Post by alebrescia »

w00t! wrote:
alebrescia wrote:
alebrescia wrote:hi, and thanks for this good mod...

i have only one little problem...
in the list of users thanks i can't sort by thanks give and thanks received....

sorry for my bad eng... i hope this is comprensible.... ^_^

Thanks for help...
no help for me?.... :cry:
Палыч said it's not possible yet, I asked about this some pages ago. Hopefully there's a way to do so soon.
ok.... thank you...
I read many pages of this 3d... but 47 pages are really too much!!! and the search function cant help me with this request....
so sorry...

before your answers, I think i do some mistakes in my work to implement this mod!

i love this mod.... and i want to say thank's Палыч for his work!!!

(sorry again for my bad eng!!! ^_^)
troublegum44
Registered User
Posts: 58
Joined: Wed May 13, 2009 7:46 pm

Re: Thanks for posts

Post by troublegum44 »

Палыч wrote:
troublegum44 wrote:It is 1.1.2 of the Karma mod I have installed
I looked karma mod. Sorry, but is unlikely to get anything done.
Thanks mod allows the rating of specific messages, which is obtained through the top authors of these messages (users).
Karma mod installs rating users depending on the attitudes of other users. This rating is not tied to specific allegations.
Therefore, your case will have to manually fill in the table phpbb_thanks values, but in this case, it would be almost intuitively, but based on your personal ratings.
Hello,

I did work out a way to do this quite easily. On investigation the Karma mod does actually tie the ratings to specific posts as the Thanks mod works, so it is possible to convert.

If anyone is interested in how to do this, let me know.

Your MOD is great by the way :D
User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: Thanks for posts

Post by Mess »

Mess wrote:
fasko wrote:please, it is possible to combine the Ultimate Point System http://www.phpbb.com/community/viewtopi ... &t=1643875
when the user is grateful for the contribution gets some points

as it is here http://www.phpbb.com/community/viewtopi ... #p10521805


how to achieve that when so thank earn points


it is possible to combine

THANKS
I would also very much appreciate an add-on which could combine these 2 mods.
I can respect Палыч is not interested in developing one, but maybe someone else could help?
Can someone please make a bridge between these to great mods, Ultimate points and thanks for posts would really compliment each other greatly. There seems to be allot of interest in this feature in this thread alone.
User avatar
Палыч
Translator
Posts: 1543
Joined: Sun Jul 01, 2007 7:59 pm
Location: St. Petersburg
Name: Сергей
Contact:

Re: Thanks for posts

Post by Палыч »

alebrescia wrote:I read many pages of this 3d... but 47 pages are really too much!!!
Hmm... It is literally written on the first page
http://www.phpbb.com/community/viewtopi ... #p10190655
;)
Sorry for my bad english
bratzbert
Registered User
Posts: 78
Joined: Sun Feb 01, 2004 8:58 pm

Re: Thanks for posts - translations

Post by bratzbert »

Thanks for an excellent mod!

I have reworked the English translation a bit.

There is one word I don't understand though, in THANKS_PM_SUBJECT_GIVE_EXPLAIN:
It is strong recommended to run this installation only after following the instructions on changes to the code files conference
I have also attached a translation for German (Casual Honorifics)‎.
Attachments
thanks_mod.php
English translation
(2.7 KiB) Downloaded 92 times
thanks_mod.php
Deutsch (Du)
(2.76 KiB) Downloaded 93 times
Xmes
Registered User
Posts: 2
Joined: Mon Mar 29, 2010 4:40 pm

Re: Thanks for posts

Post by Xmes »

Hello!

I have problem, with this modification.
I can't isntall this modifikation, 'cause when I start to install file, my forum is log out me.
This is my forum: http://ertelemhangja.byethost4.com/index.php

Can help me somebody?

Ps: I apologize for my bad english, I can't speak too well.
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: Thanks for posts

Post by IPB_Refugee »

Xmes wrote:I can't isntall this modifikation, 'cause when I start to install file, my forum is log out me.
Very interesting. What do you mean with: "when I start to install file"? What exactly are you doing (or trying to do)?

Regards
Wolfgang
Xmes
Registered User
Posts: 2
Joined: Mon Mar 29, 2010 4:40 pm

Re: Thanks for posts

Post by Xmes »

IPB_Refugee wrote:What do you mean with: "when I start to install file"? What exactly are you doing (or trying to do)?
When I copied all files on ftp server, and after I would open the "install_thanks_mod.php" in my browser, it doesn't open. Always the forum login page opens instead.
I'm always logged in the forum, and the ACP, I don't know what's the problem with it...

But, this modification is not only, that is doing it.
With one exception, almost all (such as the "ultimate points").
Versusnja
Registered User
Posts: 39
Joined: Tue Jan 12, 2010 9:58 am

Re: Thanks for posts

Post by Versusnja »

Палыч wrote:
neekee wrote:Like:1. Post fbgh (52 thanks)
2. Post jgbfxh (33 thanks)
3. Post iririr (29 thanks)
Currently there are no
For sorting the results according to number of Thanks use this:

IN thanklist.php

Code: Select all

<?php
/**
*
* @package phpBB3
* @version $Id: thankslist.php,v 125 2009-12-01 10:02:51 Палыч$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
include($phpbb_root_path . 'includes/functions_thanks.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup(array('memberlist', 'groups', 'mods/thanks_mod', 'search'));

// Grab data
$mode = request_var('mode', '');
$author_id = request_var('author_id', ANONYMOUS);
$give = request_var('give', '');
$row_number	= 0;
$givens = array();
$reseved = array();
$rowsp = array();
$rowsu = array();
$total_users = 0;

if (!$auth->acl_gets('u_viewthanks'))
{
	if ($user->data['user_id'] != ANONYMOUS)
	{
		trigger_error('NO_VIEW_USERS_THANKS');
	}
	login_box('', ((isset($user->lang['LOGIN_EXPLAIN_' . strtoupper($mode)])) ? $user->lang['LOGIN_EXPLAIN_' . strtoupper($mode)] : $user->lang['LOGIN_EXPLAIN_MEMBERLIST']));
}

$start	= request_var('start', 0);
$submit = (isset($_POST['submit'])) ? true : false;
$default_key = 'e';
$sort_key = request_var('sk', $default_key);
$sort_dir = request_var('sd', 'd');
$topic_id		= request_var('t', 0);
$return_chars	= request_var('ch', ($topic_id) ? -1 : 300);
$order_by = '';

switch ($mode)
{
		case 'givens':
		$per_page = $config['posts_per_page'];
		$total_match_count = 0;
		$page_title = $user->lang['SEARCH'];
		$template_html = 'thanks_results.html';

		switch ($give)
		{
				case 'true':
				$u_search = append_sid("{$phpbb_root_path}thankslist.$phpEx", "mode=givens&author_id=$author_id&give=true");
				$sql = 'SELECT COUNT(user_id) AS "total_match_count"
					FROM ' . THANKS_TABLE . "
					WHERE user_id = $author_id"; 
				$where = 'user_id';
				break;
				
				case 'false':
				$u_search = append_sid("{$phpbb_root_path}thankslist.$phpEx", "mode=givens&author_id=$author_id&give=false");
				$sql = 'SELECT COUNT(DISTINCT post_id) as "total_match_count"
					FROM ' . THANKS_TABLE . "
					WHERE poster_id = $author_id";
				$where = 'poster_id';
				break;		
		}
		
		$result = $db->sql_query($sql);

		if (!$row = $db->sql_fetchrow($result))
		{
			break;
		}
		else
		{
			$total_match_count = $row['total_match_count'];
			$db->sql_freeresult($result);

			$sql_array = array(
				'SELECT'	=> 'u.username, u.user_colour, p.poster_id, p.post_id, p.topic_id, p.forum_id, p.post_time, p.post_subject, p.post_text, p.post_username, p.bbcode_bitfield, p.bbcode_uid, p.post_attachment',
				'FROM'		=> array (THANKS_TABLE => 't'),
				'WHERE'		=> 't.' . $where . "= $author_id"
			);
			$sql_array['LEFT_JOIN'][] = array(
				'FROM'	=> array(USERS_TABLE => 'u'),
				'ON'	=> 't.poster_id = u.user_id'
			);
			$sql_array['LEFT_JOIN'][] = array(
				'FROM'	=> array(POSTS_TABLE => 'p'),
				'ON'	=> 't.post_id = p.post_id'
			);
			$sql = $db->sql_build_query('SELECT_DISTINCT', $sql_array);
			$result = $db->sql_query_limit($sql, $config['topics_per_page'], $start);
	
			if (!$row = $db->sql_fetchrow($result))
			{
				break;
			}		
			else
			{
				$bbcode_bitfield = $text_only_message = '';
				do
				{
					// We pre-process some variables here for later usage
					$row['post_text'] = censor_text($row['post_text']);
					$text_only_message = $row['post_text'];
					// make list items visible as such
					if ($row['bbcode_uid'])
					{
						$text_only_message = str_replace('[*:' . $row['bbcode_uid'] . ']', '&sdot;&nbsp;', $text_only_message);
						// no BBCode in text only message
						strip_bbcode($text_only_message, $row['bbcode_uid']);
					}

					if ($return_chars == -1 || utf8_strlen($text_only_message) < ($return_chars + 3))
					{
						$row['display_text_only'] = false;
						$bbcode_bitfield = $bbcode_bitfield | base64_decode($row['bbcode_bitfield']);

						// Does this post have an attachment? If so, add it to the list
						if ($row['post_attachment'] && $config['allow_attachments'])
						{
							$attach_list[$row['forum_id']][] = $row['post_id'];
						}
					}
					else
					{
						$row['post_text'] = $text_only_message;
						$row['display_text_only'] = true;
					}
					$rowset[] = $row;
					unset($text_only_message);

					// Instantiate BBCode if needed
					if ($bbcode_bitfield !== '' and !class_exists('bbcode'))
						{
							include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
							$bbcode = new bbcode(base64_encode($bbcode_bitfield));
						}
					// Replace naughty words such as farty pants
					$row['post_subject'] = censor_text($row['post_subject']);

					if ($row['display_text_only'])
					{
						$row['post_text'] = bbcode_nl2br($row['post_text']);
					}
					else
					{
						// Second parse bbcode here
						if ($row['bbcode_bitfield'])
						{
							$bbcode->bbcode_second_pass($row['post_text'], $row['bbcode_uid'], $row['bbcode_bitfield']);
						}

						$row['post_text'] = bbcode_nl2br($row['post_text']);
						$row['post_text'] = smiley_text($row['post_text']);			
					}
					$forum_id = $row['forum_id'];

					$template->assign_block_vars('searchresults', array (
						'POST_AUTHOR_FULL'		=> get_username_string('full', $row['poster_id'], $row['username'], $row['user_colour'], $row['post_username']),
						'POST_AUTHOR_COLOUR'	=> get_username_string('colour', $row['poster_id'], $row['username'], $row['user_colour'], $row['post_username']),
						'POST_AUTHOR'			=> get_username_string('username', $row['poster_id'], $row['username'], $row['user_colour'], $row['post_username']),
						'U_POST_AUTHOR'			=> get_username_string('profile', $row['poster_id'], $row['username'], $row['user_colour'], $row['post_username']),
						'POST_SUBJECT'		=> ($auth->acl_get('f_read', $row['forum_id'])) ? $row['post_subject'] : '',
						'POST_DATE'			=> (!empty($row['post_time'])) ? $user->format_date($row['post_time']) : '',
						'MESSAGE'			=> ($auth->acl_get('f_read', $row['forum_id'])) ? $row['post_text'] : $user->lang['SORRY_AUTH_READ'],
						'FORUM_ID'			=> $row['forum_id'],
						'TOPIC_ID'			=> $row['topic_id'],
						'POST_ID'			=> $row['post_id'],
						'U_VIEW_TOPIC'		=> append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $row['topic_id']),
						'U_VIEW_FORUM'		=> append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $row['forum_id']),
						'U_VIEW_POST'		=> (!empty($row['post_id'])) ? append_sid("{$phpbb_root_path}viewtopic.$phpEx", "t=" . $row['topic_id'] . '&p=' . $row['post_id']) . '#p' . $row['post_id'] : '',
					));
				}
				while ($row = $db->sql_fetchrow($result));

				$db->sql_freeresult($result);
			}		
		}
		if ($total_match_count > 1000)
		{
			$total_match_count--;
			$l_search_matches = sprintf($user->lang['FOUND_MORE_SEARCH_MATCHES'], $total_match_count);
		}
		else
		{
		$l_search_matches = ($total_match_count == 1) ? sprintf($user->lang['FOUND_SEARCH_MATCH'], $total_match_count) : sprintf($user->lang['FOUND_SEARCH_MATCHES'], $total_match_count);
		}
		$template->assign_vars(array(
			'PAGINATION'		=> generate_pagination($u_search, $total_match_count, $per_page, $start),
			'PAGE_NUMBER'		=> on_page($total_match_count, $per_page, $start),
			'TOTAL_MATCHES'		=> $total_match_count,
			'SEARCH_MATCHES'	=> $l_search_matches,
			'U_THANKS'			=> append_sid("{$phpbb_root_path}thankslist.$phpEx"),
		));

		break;
		
		default:
		$page_title = $user->lang['THANKS_USER'];
		$template_html = 'thankslist_body.html';

		// Sorting
		$sort_key_text = array('a' => $user->lang['SORT_USERNAME'], 'b' => $user->lang['SORT_LOCATION'], 'c' => $user->lang['SORT_JOINED'], 'd' => $user->lang['SORT_POST_COUNT'], 'e' => 'Count thanks');
		$sort_key_sql = array('a' => 'u.username_clean', 'b' => 'u.user_from', 'c' => 'u.user_regdate', 'd' => 'u.user_posts', 'e' => 'count_thanks');
		$sort_dir_text = array('a' => $user->lang['ASCENDING'], 'd' => $user->lang['DESCENDING']);
		if ($auth->acl_get('u_viewonline'))
		{
			$sort_key_text['l'] = $user->lang['SORT_LAST_ACTIVE'];
			$sort_key_sql['l'] = 'u.user_lastvisit';
		}

		$s_sort_key = '';
		foreach ($sort_key_text as $key => $value)
		{
			$selected = ($sort_key == $key) ? ' selected="selected"' : '';
			$s_sort_key .= '<option value="' . $key . '"' . $selected . '>' . $value . '</option>';
		}
		$s_sort_dir = '';
		foreach ($sort_dir_text as $key => $value)
		{
			$selected = ($sort_dir == $key) ? ' selected="selected"' : '';
			$s_sort_dir .= '<option value="' . $key . '"' . $selected . '>' . $value . '</option>';
		}

		// Sorting and order
		if (!isset($sort_key_sql[$sort_key]))
		{
			$sort_key = $default_key;
		}

		$order_by .= $sort_key_sql[$sort_key] . ' ' . (($sort_dir == 'a') ? 'ASC' : 'DESC');

		// Build a relevant pagination_url
		$params = $sort_params = array();

		$pagination_url = append_sid("{$phpbb_root_path}thankslist.$phpEx", implode('&', $params));
		$sort_url = append_sid("{$phpbb_root_path}thankslist.$phpEx", implode('&', $sort_params));

		unset($search_params, $sort_params);

		// Grab relevant data
		$sql = 'SELECT user_id, COUNT(*) AS "count"
			FROM ' . THANKS_TABLE . "
			GROUP BY user_id";
		$result = $db->sql_query($sql);
		while ($row = $db->sql_fetchrow($result))
		{
			$givens[$row['user_id']] = $row['count'];
		}
		$db->sql_freeresult($result);
			
		$sql = 'SELECT poster_id, COUNT(*) AS "count"
			FROM ' . THANKS_TABLE . "
			GROUP BY poster_id";
		$result = $db->sql_query($sql);
		while ($row = $db->sql_fetchrow($result))
		{
			$reseved[$row['poster_id']] = $row['count'];
		}
		$db->sql_freeresult($result);

		$sql = 'SELECT DISTINCT poster_id
			FROM ' . THANKS_TABLE;
		$result = $db->sql_query($sql);

		while ($row = $db->sql_fetchrow($result))
		{
			$rowsp[] = $row['poster_id']; 
		}

		$sql = 'SELECT DISTINCT user_id
			FROM ' . THANKS_TABLE;
		$result = $db->sql_query($sql);	

		while ($row = $db->sql_fetchrow($result))
		{
			$rowsu[] = $row['user_id']; 
		}

		$rows = array_merge($rowsp,$rowsu);
		$total_users = count(array_unique($rows));
		
		if (empty($rows))
		{
			break;
		}
		
		$sql_array = array(
			'SELECT'	=> 'u.user_id, u.username, u.user_posts, u.user_colour, u.user_rank, u.user_inactive_reason, u.user_type, u.username_clean, u.user_regdate, u.user_website, u.user_from, u.user_lastvisit, count(t.poster_id) as count_thanks',
			'FROM'		=> array(USERS_TABLE => 'u'),
			'ORDER_BY'	=> $order_by,
		    'LEFT_JOIN' => array(
		        array(
		            'FROM'  => array('phpbb_thanks' => 't'),
		            'ON'    => 'u.user_id = t.poster_id'
		        )
		    ),
		    'GROUP_BY'	=> 't.poster_id',
		);
		$sql_array['WHERE'] = "u.user_id = $rows[0]";
		for ($i = 1, $end = sizeof($rows); $i < $end; ++$i)
		{
			$sql_array['WHERE'] .= " OR u.user_id = $rows[$i]";
		}

		$sql = $db->sql_build_query('SELECT', $sql_array);
		$result = $db->sql_query_limit($sql, $config['topics_per_page'], $start);

		if (!$row = $db->sql_fetchrow($result))
		{
			trigger_error('NO_USER');
		}		
		else
		{
			do
			{
				$last_visit = $row['user_lastvisit'];
				$user_id = $row['user_id'];
				$rank_title = $rank_img = $rank_img_src = '';
				get_user_rank($row['user_rank'], (($user_id == ANONYMOUS) ? false : $row['user_posts']), $rank_title, $rank_img, $rank_img_src);
				$template->assign_block_vars('memberrow', array(
					'ROW_NUMBER'			=> $row_number + ($start + 1),
					'RANK_TITLE'			=> $rank_title,
					'RANK_IMG'				=> $rank_img,
					'RANK_IMG_SRC'			=> $rank_img_src,
					'GIVENS'				=> (!isset($givens[$user_id])) ? 0 : $givens[$user_id], 
					'RECEIVED'				=> (!isset($reseved[$user_id])) ? 0 : $reseved[$user_id],
					'JOINED'				=> $user->format_date($row['user_regdate']),
					'VISITED'				=> (empty($last_visit)) ? ' - ' : $user->format_date($last_visit),
					'POSTS'					=> ($row['user_posts']) ? $row['user_posts'] : 0,
					'USERNAME_FULL'			=> get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']),
					'USERNAME'				=> get_username_string('username', $row['user_id'], $row['username'], $row['user_colour']),
					'USER_COLOR'			=> get_username_string('colour', $row['user_id'], $row['username'], $row['user_colour']),
					'U_VIEW_PROFILE'		=> get_username_string('profile', $row['user_id'], $row['username'], $row['user_colour']),
					'U_SEARCH_USER'			=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$user_id&sr=posts") : '',
					'U_SEARCH_USER_GIVENS'	=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}thankslist.$phpEx", "mode=givens&author_id=$user_id&give=true") : '',
					'U_SEARCH_USER_RECEIVED'=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}thankslist.$phpEx", "mode=givens&author_id=$user_id&give=false") : '',
					'L_VIEWING_PROFILE'		=> sprintf($user->lang['VIEWING_PROFILE'], $row['username']),
					'LOCATION'				=> ($row['user_from']) ? $row['user_from'] : '',
					'U_WWW'					=> (!empty($row['user_website'])) ? $row['user_website'] : '',
					'VISITED'				=> (empty($last_visit)) ? ' - ' : $user->format_date($last_visit),
				));
				$row_number++;
			}
			while ($row = $db->sql_fetchrow($result));
			$db->sql_freeresult($result);
			$template->assign_vars(array(
				'PAGE_NUMBER'			=> on_page($total_users, $config['topics_per_page'], $start),
				'PAGINATION'			=> generate_pagination($pagination_url, $total_users, $config['topics_per_page'], $start),
				'U_SORT_POSTS'			=> $sort_url . '?sk=d&sd=' . (($sort_key == 'd' && $sort_dir == 'a') ? 'd' : 'a'),
				'U_SORT_USERNAME'		=> $sort_url . '?sk=a&sd=' . (($sort_key == 'a' && $sort_dir == 'a') ? 'd' : 'a'),
				'U_SORT_FROM'			=> $sort_url . '?sk=b&sd=' . (($sort_key == 'b' && $sort_dir == 'a') ? 'd' : 'a'),
				'U_SORT_JOINED'			=> $sort_url . '?sk=c&sd=' . (($sort_key == 'c' && $sort_dir == 'a') ? 'd' : 'a'),
				'U_SORT_THANKS'			=> $sort_url . '?sk=e&sd=' . (($sort_key == 'e' && $sort_dir == 'd') ? 'a' : 'd'),
				'U_SORT_ACTIVE'			=> ($auth->acl_get('u_viewonline')) ? $sort_url . '&sk=l&sd=' . (($sort_key == 'l' && $sort_dir == 'a') ? 'd' : 'a') : '',
			));
		}
		break;
}

// Output the page
$template->assign_vars(array(
	'TOTAL_USERS'			=> ($total_users == 1) ? $user->lang['LIST_USER'] : sprintf($user->lang['LIST_USERS'], $total_users),
	'U_THANKS'			=> append_sid("{$phpbb_root_path}thankslist.$phpEx"),
));

page_header($page_title);

$template->set_filenames(array(
	'body' => $template_html));
	
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>
This way you will have a kind of "Hall of fame".

In order to make sorting work properly you should change thanklist_body.html as well.
find

Code: Select all

	<th nowrap="nowrap" width="11%">{L_RECEIVED}</th>
replace with

Code: Select all

	<th nowrap="nowrap" width="11%"><a href="{U_SORT_THANKS}">{L_RECEIVED}</a></th>
lovelysummer
Registered User
Posts: 437
Joined: Fri Mar 20, 2009 1:49 pm

Re: Thanks for posts

Post by lovelysummer »

Versusnja, very good work ! :D
Could you please do the Give thanks also ? :)

Thank you
User avatar
mdtom
Registered User
Posts: 11
Joined: Sat Mar 13, 2010 4:07 pm
Location: Taiwan, taipei
Contact:

Re: Thanks for posts

Post by mdtom »

hello Палыч

i love this mod very much
but i have some questions about this MOD

may I add "thanks count everyTopic" at viewforum_body.html
i hope my forum displays subject, replay, view , lastpost and ThanksCount
i try to modify this MOD
but my degree is not enough

can help me somebody ?
i love phpBB
Let's make it better !!

》Welcome to my web / Joomla Blog
Harderboy
Registered User
Posts: 6
Joined: Mon Apr 05, 2010 6:11 pm

Re: Thanks for posts

Post by Harderboy »

Hallo,
You can anyone help me?
My problem is here:

Mod I have successfully installed, but does not see to thanks icon.

*after installation, I cleared cache,refresh template,themes and imageset.

Image Image Image

My theme is IDLaunch Fresh based on Prosilver,version on phpbb3 is 3.0.7-PL1

I will be grateful for all the helpfull advice !!!
keithy joe
Registered User
Posts: 15
Joined: Tue Jul 08, 2008 11:27 am

Re: Thanks for posts

Post by keithy joe »

Hi

I've just followed the instructions step by step. Refreshed and purged the cache. When I click to make a post I get the following:

Code: Select all

General Error
SQL ERROR [ mysql4 ]

Table 'babobal_phpb3.phpbb_thanks' doesn't exist [1146]

SQL

SELECT t.*, u.username, u.username_clean, u.user_colour FROM (phpbb_thanks t, phpbb_users u) WHERE u.user_id = t.user_id AND (t.post_id =227546)

BACKTRACE

FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()

FILE: includes/functions_thanks.php
LINE: 435
CALL: dbal_mysql->sql_query()

FILE: viewtopic.php
LINE: 1233
CALL: array_all_thanks()
Do any of you know what could be causing this?
User avatar
Палыч
Translator
Posts: 1543
Joined: Sun Jul 01, 2007 7:59 pm
Location: St. Petersburg
Name: Сергей
Contact:

Re: Thanks for posts

Post by Палыч »

mdtom wrote:may I add "thanks count everyTopic" at viewforum_body.html
I advise you to abandon this idea. She too will load page SQL queries
Harderboy wrote:My problem is here:Mod I have successfully installed, but does not see to thanks icon.
You have the setting "Only to the first post in the topic"
Turn off it
keithy joe wrote:hen I click to make a post I get the following
You are not complied with any SQL installation (file install_thanks_mod.php)
Sorry for my bad english
Locked

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