( See this post: http://www.phpbb.com/community/viewtopi ... 5#p5560965 )
I had a problem with this. When doing egosearch, it ended up with a SQL syntax error. To fix it, I modified the topic_tags_search_title function:
Code: Select all
/*
* Appends topic tag to topic title.
* Uses topic_tags_title(), it includes an extra SQL query to get the search result's parent forum
*
* @param array $row ref: search result from search.php
* @param array $forum_id ref: search result's parent forum_id from search.php
*/
function topic_tags_search_title(&$row, $forum_id)
{
global $db, $config;
if ($config['topic_tags_version'])
{
if ($forum_id) {
$sql = 'SELECT * FROM ' . FORUMS_TABLE . ' WHERE forum_id = ' . $forum_id;
} else {
$sql = 'SELECT * FROM ' . FORUMS_TABLE;
}
$result = $db->sql_query($sql);
$forum_data = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
topic_tags_title($row, $forum_data['forum_topic_tags']);
}
}