Ok, ich hab das DIng jetztmal eingebaut und bekomme folgende Fehlermeldungen, bisher:
Code: Alles auswählen
Fatal error: Call to a member function on a non-object in /var/www/web34/html/bartagame/Forum/viewtopic.php on line 323
Fatal error: Call to a member function on a non-object in /var/www/web34/html/bartagame/Forum/viewforum.php on line 484
Das ist jedesmal diese Zeile:
Viewforum.php:
Code: Alles auswählen
//-- mod : quick title edition -------------------------------------------------
//-- add
$qte->attr($topic_title, $topic_rowset[$i]['topic_attribute']);
//-- fin mod : quick title edition ---------------------------------------------
Viewtopic.php:
Code: Alles auswählen
//-- mod : quick title edition -------------------------------------------------
//-- add
include($get->url('includes/class_attributes'));
$qte->attr($topic_title, $forum_topic_data['topic_attribute']);
//-- fin mod : quick title edition ---------------------------------------------
Weiß jemand woran das liegt?
Könte es daran liegen das die class_attributes.php in der qte definiert ist folgendermaßen eingebunden wird, bei meinem phpBB 2.0.23:
Code: Alles auswählen
//-- mod : quick title edition -------------------------------------------------
//-- add
include($get->url('includes/class_attributes'));
//-- fin mod : quick title edition ---------------------------------------------
Für mich sieht die Passage komisch aus!
-------------------------------
OK, dieser Fehler ist behoben, lag wirklich daran!
Jetzt habe ich ein weiteres Problem mit folgender SQL Query oder Quellcode:
Code: Alles auswählen
// Go ahead and pull all data for this topic
//
$sql = "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_warn, u.user_warn_desc, u.user_level, u.ct_miserable_user, u.user_gender, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid, m.longitude, m.latitude, k.kategorie
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u LEFT JOIN " . MAP_MOD_USER_TABLE . " m ON u.user_id=m.user_id, " . POSTS_TEXT_TABLE . " pt, " . TOPICS_TABLE. " t LEFT Join " .TOPIC_KAT. " as k ON t.k_id=k.k_id
WHERE p.topic_id = $topic_id
$limit_posts_time
AND pt.post_id = p.post_id
AND u.user_id = p.poster_id
AND t.topic_id = $topic_id
ORDER BY p.post_time $post_time_order
LIMIT $start, ".$board_config['posts_per_page'];
//-- mod : quick title edition -------------------------------------------------
//-- add
$sql = str_replace('pt.bbcode_uid', 'pt.bbcode_uid, t.topic_poster, t.topic_attribute', $sql);
$sql = str_replace(POSTS_TEXT_TABLE . ' pt', POSTS_TEXT_TABLE . ' pt, ' . TOPICS_TABLE . ' t', $sql);
$sql = str_replace('WHERE p.topic_id = ' . $topic_id, 'WHERE p.topic_id = ' . $topic_id . ' AND t.topic_id = p.topic_id', $sql);
//-- fin mod : quick title edition ---------------------------------------------
Als Fehlemerldung sagt er mit das "table t" nicht unique ist!
Jetzt habe ich hier so viele MODS in der ABfrage das ich nimmer durchblicke, denke aber es liegt an folgender Zeile:
Code: Alles auswählen
$sql = str_replace(POSTS_TEXT_TABLE . ' pt', POSTS_TEXT_TABLE . ' pt, ' . TOPICS_TABLE . ' t', $sql);
Kann mir hier wer weiterhelfen? Denn mit SQL Querys hab ichs net so, danke! Noch ne weitere Info:
In Threads mit nur einem Post bekomme ich diesen mehrfach angezeigt!