Seite 1 von 1

LastPostTopicindex-Mod Problem

Verfasst: 18.10.2007 18:29
von thoefreak
Hallo,
Ich habde den Mod LastPostTopic installiert und nun steht beim öffnen meines Forums:

Code: Alles auswählen

Parse error: syntax error, unexpected '}' in /home/gutschein/public_html/phpBB2/index.php on line 498
Hier der Link zu meinem index Quell-Text:
http://www.pastebin.ca/741310

Brauche da Hilfe.
MFG

Verfasst: 18.10.2007 19:17
von sound-ks
hmm Probiere mal folgedes:

Suche:

Code: Alles auswählen

 if ( $forum_data[$j]['forum_last_post_id'] )
        {
                $topic_title = $forum_data[$j]['topic_title'];
                $topic_title2 = $forum_data[$j]['topic_title'];

                //
                // Censor topic title
                //
                if ( count($orig_word) )
                {
                        $topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
                        $topic_title2 = preg_replace($orig_word, $replacement_word, $topic_title2);
                }

                if (strlen($topic_title)>27) {
                        $topic_title = substr($topic_title,0,24) . '...';
                }

                $last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
                $last_post = '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '" title="' . $topic_title2 . '">' . $topic_title . '</a><br>';
                $last_post .= $last_post_time . '&nbsp;<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '"></a><br>' . $lang['by'] . '&nbsp;';
                $last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
        }}
und lösche jetzt nur das letzte zeichen " }". ich glaube da ist das eine zu viel.

Verfasst: 18.10.2007 19:25
von thoefreak
Man vielen Dank! Alles funktioniert wieder!
Mein Tagesheld;)