Po zainstalowaniu PO (i Wykonaniu zapytan) występuje taki bład :
Kod:
Could not obtain post/user information.
DEBUG MODE
SQL Error : 1054 Nieznana kolumna 'u.user_warning' w field list
SELECT u.username, u.user_warning, u.user_praise, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_unicomm, u.user_regdate, 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, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid FROM phpbb_posts p, phpbb_users u, phpbb_posts_text pt WHERE p.topic_id = 1 AND pt.post_id = p.post_id AND u.user_id = p.poster_id ORDER BY p.post_time ASC LIMIT 0, 15
Line : 406
File : viewtopic.php
Zapytanie brzmalo
Kod:
INSERT INTO phpbb_config VALUES ('PO_block_posting', 3);
INSERT INTO phpbb_config VALUES ('PO_value_ban', 2);
CREATE TABLE phpbb_po (
PO_id tinyint(5) unsigned NOT NULL auto_increment,
PO_type tinyint(1) NOT NULL default '0',
PO_value tinyint(2) NOT NULL default '0',
PO_description varchar(255) NOT NULL default '',
PO_userid tinyint(10) NOT NULL default '0',
PO_posts tinyint(10) NOT NULL default '0',
PO_to_userid tinyint(10) NOT NULL default '0',
PO_date int(11) NOT NULL default '0',
PRIMARY KEY (PO_id)
) TYPE=INNODB;
CREATE TABLE phpbb_po_auth_access (
mode_id mediumint(8) NOT NULL default '0',
forum_id tinyint(5) NOT NULL default '0',
auth_type tinyint(1) NOT NULL default '0',
auth_add_warning tinyint(1) NOT NULL default '0',
auth_add_praise tinyint(1) NOT NULL default '0',
auth_del_warning tinyint(1) NOT NULL default '0',
auth_del_praise tinyint(1) NOT NULL default '0',
auth_add_ban tinyint(1) NOT NULL default '0',
auth_del_ban tinyint(1) NOT NULL default '0'
) TYPE=INNODB;
Dodam jescze ze pomyslalem aby wykonac wymyslone zapytania :
Kod:
ALTER TABLE `phpbb_users` ADD `user_warning` TEXT;
ALTER TABLE `phpbb_users` ADD `user_praise` TEXT;
Wykonalem teraz pojawil się bład
Kod:
Couldn't get auth po
DEBUG MODE
SQL Error : 1146 Table 'krasnal.po_auth_table' doesn't exist
SELECT * FROM PO_AUTH_TABLE WHERE forum_id = '1' AND auth_type = 'USERS' AND mode_id = '4'
Line : 91
File : functions.php
A dodam ze WSZYSTKIE zapytania wykonalem nawet moge dac screenshoty ...A oto zawartosc linki 72 - 120
Kod:
/*
** @Position: Begin
** @Mod: PO
** @author: MMP
** @version: 1.1
**/
function auth_PO($id, $type, $forum_id = 0)
{
global $db;
if($type == USERS)
{
$sql = "SELECT *
FROM " . PO_AUTH_TABLE . "
WHERE forum_id = '$forum_id'
AND auth_type = '$type'
AND mode_id = '$id'";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't get auth po", "", __LINE__, __FILE__, $sql);
}
return $db->sql_fetchrow($result);
}
elseif($type == GROUPS)
{
$sql = "SELECT aa.*
FROM " . PO_AUTH_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g
WHERE aa.forum_id = '$forum_id'
AND aa.auth_type = '$type'
AND ug.user_id = '$id'
AND ug.group_id = aa.mode_id
AND g.group_single_user = 0
AND g.group_id = aa.mode_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't get auth po", "", __LINE__, __FILE__, $sql);
}
return $db->sql_fetchrow($result);
}
else
{
message_die(GENERAL_ERROR, "No select type");
}
}
/*
** @Position: END
** @Mod: PO
** @author: MMP
** @version: 1.1
**/