Seite 1 von 1

<table> Fix

Verfasst: 17.09.2004 11:56
von Acid
Beschreibung: Damit wird verhindert, das beim Posten von HTML-Tabellen hinter jede Zeile ein Zeilenumbruch eingefügt wird.
phpBB Version: 2.0.x

Achtung: Die Tabellen-Tags table, tr, td und th müßen im Adminpanel erlaubt werden, was natürlich nicht ohne Risiko ist (vergisst man eine Tabelle im Beitrag zu schliessen, zerhaut´s einem das Layout).

Code: Alles auswählen

#
#-----[ ÖFFNEN ]------------------------------------------------------
#
# /posting.php
#
#-----[ FINDE ]------------------------------------------------------
#
			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;

#
#-----[ DARUNTER EINFÜGEN ]-------------------------------------------------
#
				// 
				// <table> fix
				// 
				$message = preg_replace('/>\r\n/', '>', $message);

#
#-----[ FIND ]------------------------------------------------------
#
		if( !$html_on )
		{
			if( $user_sig != '' || !$userdata['user_allowhtml'] )
			{
				$user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', '<\2>', $user_sig);
			}
		}

#
#-----[ DARUNTER EINFÜGEN ]-------------------------------------------------
#
		//
		// <table> fix
		//
		else
		{
			$preview_message = preg_replace('/>\r\n/', '>', $preview_message);
		}
Keywords: tabelle+leerzeilen+fix+freiraum