Seite 1 von 1

Bekomme bei klick auf newtopic immer parse error!Bitte helft

Verfasst: 11.01.2005 20:30
von Subermann
Hab versucht den regmod in meine postings.php einzubinden. Ging leider irgendwie schief oder es fehlt noch was.
Kann sich das mal einer anschauen?

http://freak-am-rechner.freehostag.info ... osting.php
und hier mein Forum
http://freak-am-rechner.freehostag.info ... /index.php

kommt immer der parse error in line 197. Was ist falsch?

Verfasst: 11.01.2005 20:36
von QCO
Bitte stell doch mal den Quelltext deiner posting.php zu Verfügung - entweder die ganze Datei oder den Abschnitt um die bemängelte Zeile 197 herum.
Ohne das kann dir nicht geholfen werden.

Verfasst: 11.01.2005 21:09
von Subermann
upps, total vergessen hier der link:
http://www.freak-am-rechner.com/test/posting.php

Verfasst: 11.01.2005 21:11
von Andy120
hi...

Das musst du in eine .txt Datei abspeichern..
Eine PHP-Datei zum Download bereitstellen

Gruss, Andy

Verfasst: 12.01.2005 06:24
von Subermann

Verfasst: 12.01.2005 12:24
von Andy120
hi...

Versuch's mal so:

Suche

Code: Alles auswählen

	case 'newtopic':
		if ( $topic_type == POST_ANNOUNCE )
		{
			$is_auth_type = 'auth_announce';
		}
		else if ( $topic_type == POST_STICKY )
		{
			$is_auth_type = 'auth_sticky';
		
        else if ( $topic_type == POST_REGISTER )
		{
			$is_auth_type = 'auth_reg';
		}		}
		else
		{
			$is_auth_type = 'auth_post';
		}
Ersetze

Code: Alles auswählen

	case 'newtopic':
		if ( $topic_type == POST_ANNOUNCE )
		{
			$is_auth_type = 'auth_announce';
		}
		else if ( $topic_type == POST_STICKY )
		{
			$is_auth_type = 'auth_sticky';
		}
        else if ( $topic_type == POST_REGISTER )
		{
			$is_auth_type = 'auth_reg';
		}
		else
		{
			$is_auth_type = 'auth_post';
		}
Gruss, Andy