2. gerne, hier ist meine posting.php:
http://www.kissnews.de/Test/postingGLOBALTOPIC.txt
Global Topic 1.1.0 ist bereits dabei... und der Fix von Global Announcement auch... aber der funtzt leider nicht

der Text für die rote Schrift bei den global topics ist auch im Code dabei, der leider wirkungslos ist...
wenn Du schon die posting.php hast, würde ich Dich gerne bitten, zu überprüfen, was ich beim Einbau des log Action Mods höchstwahrscheinlich in der posting.php falsch gemacht habe. Das ist ein Mod, der zeichnet alle Aktivitäten der Moderatoren auf... und der funktioniert bei mir NUR, wenn Moderatoren "delete" durchführen, alles andere (edit/move etc.) wird nicht aufgezeichnet. Da ist der Einbau des Codes auch nicht eindeutig, ich vermute stark, dass ich da etwas nicht richtig eingebaut habe... es geht um diese 3 Codeschnipsel (der erste ist sicher richtig eingebaut, aber die beiden anderen... da vermute ich einen Fehler):
Code: Alles auswählen
#-----[ OPEN ]------------------------------------------------
#
posting.php
#
#
#-----[ FIND ]------------------------------------------------
#
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Log actions MOD Start
include($phpbb_root_path . 'includes/functions_log.'.$phpEx);
// Log actions MOD End
#
#-----[ FIND ]------------------------------------------------
#
switch ( $mode )
{
case 'editpost':
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Log Actions Start
$username = ( !empty($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : '';
$subject = ( !empty($HTTP_POST_VARS['subject']) ) ? trim($HTTP_POST_VARS['subject']) : '';
$message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : '';
$poll_title = ( isset($HTTP_POST_VARS['poll_title']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_title'] : '';
$poll_options = ( isset($HTTP_POST_VARS['poll_option_text']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_option_text'] : '';
$poll_length = ( isset($HTTP_POST_VARS['poll_length']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_length'] : '';
$bbcode_uid = '';
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);
if ( $error_msg == '' )
{
$topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);
// Log actions MOD Start
if ( $is_auth['auth_mod'] )
{
log_action('edit', $topic_id, $userdata['user_id'], $userdata['username']);
}
// Log actions MOD End
}
break;
// Log Action End
#
#-----[ FIND ]-------------------------------------------------
#
delete_post(
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Log actions MOD Start
if ( $is_auth['auth_mod'] )
{
log_action('delete', $topic_id, $userdata['user_id'], $userdata['username']);
}
// Log actions MOD End
1. das hilft alles nichts, bei mir ist der gesuchte Code in der viewforum.php definitiv nicht so enthalten, wie er gesucht wird. Den gibt es zwar mehrmals so ähnlich, aber genauso gibt es ihn nicht. (Übrigens hast Du in der Version 1.1.0 in der Anleitung teilweise noch 1.0.0 stehen...). ich habe den split topic mod eingebaut...
es geht darum:
Code: Alles auswählen
#-----[ FIND ]------------------------------------------------
#
$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time
FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u2
WHERE t.forum_id = $forum_id
AND t.topic_poster = u.user_id
AND p.post_id = t.topic_first_post_id
AND p2.post_id = t.topic_last_post_id
AND u2.user_id = p2.poster_id
AND t.topic_type <> " . POST_ANNOUNCE . "
$limit_topics_time
ORDER BY t.topic_type DESC, t.topic_last_post_id DESC
LIMIT $start, ".$board_config['topics_per_page'];
#
#-----[ IN-LINE FIND ]-----------------------------------------
#
WHERE t.forum_id = $forum_id
#
#-----[ IN-LINE REPLACE WITH ]-----------------------------------------
#
WHERE $sql_global_topics
#
#-----[ IN-LINE FIND ]------------------------------------------------
#
AND t.topic_type <> " . POST_ANNOUNCE . "
$limit_topics_time
#
#-----[ IN-LINE REPLACE WITH ]----------------------------------------
#
$limit_topics_time
#
#-----[ IN-LINE FIND ]------------------------------------------------
#
ORDER BY t.topic_type DESC, t.topic_last_post_id DESC
#
#-----[ IN-LINE REPLACE WITH ]----------------------------------------
#
ORDER BY t.topic_last_post_id DESC
ich gehe stark davon aus, dass es dieser teil ist, aber der sieht wie gesagt anders aus:
Code: Alles auswählen
$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time
FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u2
WHERE (t.forum_id = $forum_id AND t.topic_type <> " . POST_STICKY . " AND t.topic_type <> " . POST_ANNOUNCE . " AND t.topic_type <> " . POST_GLOBAL_ANNOUNCE . " OR t.topic_type = " . POST_GLOBAL_TOPIC . ")
AND t.topic_poster = u.user_id
AND p.post_id = t.topic_first_post_id
AND p2.post_id = t.topic_last_post_id
AND u2.user_id = p2.poster_id
$limit_topics_time
ORDER BY $sort_method $order_method, t.topic_last_post_id DESC
LIMIT $start, ".$board_config['topics_per_page'];
und da weiss ich leider nicht, wie ich das ändern muss :rolleyes:
Vielen Dank für Deine Hilfe!
P.S.: bekomme hier bei Deinem Board bei der VORSCHAU folgenden Error:
Parse error: parse error, unexpected '}' in /www/htdocs/v073467/phpBB/attach_mod/includes/functions_includes.php on line 362
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v073467/phpBB/attach_mod/includes/functions_includes.php:362) in /www/htdocs/v073467/phpBB/includes/page_header.php on line 900
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v073467/phpBB/attach_mod/includes/functions_includes.php:362) in /www/htdocs/v073467/phpBB/includes/page_header.php on line 902
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v073467/phpBB/attach_mod/includes/functions_includes.php:362) in /www/htdocs/v073467/phpBB/includes/page_header.php on line 903