I have this edit but it no longer seems to work. I added in the recent comments widget and I get the general errorcanidev wrote:Bug with this mod appears on phpBB 3.0.12 update.
To solve, do this:
Open: includes/hooks/hook_blog.php
Find:Add after:Code: Select all
if(empty($config['blog_version'])) { return false; }
Code: Select all
if(!defined('BLOG_POSTS_TABLE')) { include($blog_hook->root_path . "includes/constants.$phpEx"); }
Code: Select all
General Error
SQL ERROR [ mysql4 ]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.username AS member_name, u.user_colour FROM phpbb_blog_comments c LEFT J' at line 2 [1064]
SQL
SELECT c.comment_id, c.post_id, c.user_id, c.username, p.post_title, p.post_url u.username AS member_name, u.user_colour FROM phpbb_blog_comments c LEFT JOIN phpbb_blog_posts p ON(p.post_id = c.post_id) LEFT JOIN phpbb_users u ON(u.user_id = c.user_id) ORDER BY comment_time DESC LIMIT 5
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()
FILE: [ROOT]/includes/db/mysql.php
LINE: 193
CALL: dbal->sql_error()
FILE: [ROOT]/includes/db/mysql.php
LINE: 240
CALL: dbal_mysql->sql_query()
FILE: [ROOT]/includes/db/dbal.php
LINE: 170
CALL: dbal_mysql->_sql_query_limit()
FILE: [ROOT]/blog/widgets/recent_comments_widget.php
LINE: 43
CALL: dbal->sql_query_limit()
FILE: [ROOT]/blog/includes/functions.php
LINE: 477
CALL: recent_comments_widget->init()
FILE: [ROOT]/blog/index.php
LINE: 316
CALL: blog::get_widgets()