Seite 1 von 1

Global Topic - viewforum.php

Verfasst: 04.09.2005 16:18
von Mihil
So, nächste Baustelle. :D

Ich habe den Global Topic MOD im Testforum eingebaut, nun kommt das, wenn ich in ein Forum will:

Code: Alles auswählen

Parse error: parse error, unexpected T_ELSE in /usr/export/www/vhosts/funnetwork/hosting/forumbugtest/Forum/viewforum.php on line 510
www.Hilgarths.de/dateien/viewforum.txt

:wink:

Verfasst: 04.09.2005 17:24
von punkface

Code: Alles auswählen

			if( $topic_rowset[$i]['topic_type'] == POST_ANNOUNCE )
			{
				$folder = $images['folder_announce'];

			else if( $topic_rowset[$i]['topic_type'] == POST_GLOBAL_TOPIC && $topic_rowset[$i]['topic_status'] != TOPIC_LOCKED ) 
			{ 
				$folder = $images['folder_global_topic']; 
				$folder_new = $images['folder_global_topic_new']; 
			}				$folder_new = $images['folder_announce_new'];
			}
sollte wahrscheinlich mal so aussehen:

Code: Alles auswählen

			if( $topic_rowset[$i]['topic_type'] == POST_ANNOUNCE )
			{
				$folder = $images['folder_announce'];
				$folder_new = $images['folder_announce_new'];
			}
			else if( $topic_rowset[$i]['topic_type'] == POST_GLOBAL_TOPIC && $topic_rowset[$i]['topic_status'] != TOPIC_LOCKED ) 
			{ 
				$folder = $images['folder_global_topic']; 
				$folder_new = $images['folder_global_topic_new']; 
			}