Kod: Zaznacz cały
FIND----
$template->assign_vars(array(
Kod: Zaznacz cały
#--[ BEFORE, ADD ]--
#
$s_disallow_write=($ug_info[0]['auth_disallow_write'])?' checked="checked"':'';
$s_ban=($ug_info[0]['auth_ban'])?' checked="checked"':'';
$s_remove_points=($ug_info[0]['auth_remove_points'])?' checked="checked"':'';
No i właśnie, zainstalowałem już moda, ale chcąc otworzyć viewtopic mam:
Kod: Zaznacz cały
Could not obtain post/user information.
DEBUG MODE
SQL Error : 1064 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 ' u.user_plusp, u.user_minusp, u.user_disallowed_write, b.ban_id, p.*, pt.post_t' at line 1
SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, , u.user_plusp, u.user_minusp, u.user_disallowed_write, b.ban_id, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid FROM phpbb_posts p, ( phpbb_users u, phpbb_posts_text pt LEFT JOIN phpbb_banlist b ON u.user_id=b.ban_userid) WHERE p.topic_id = 3 AND pt.post_id = p.post_id AND u.user_id = p.poster_id ORDER BY p.post_time ASC LIMIT 0, 15
Line : 400
File : viewtopic.php