Hilfe... 2x Quote

Fragen zur Bedienung von phpBB 3.0.x, Probleme bei der Benutzung und alle weiteren Fragen inkl. Update auf die neuste phpBB 3.0.14 Version
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Benutzeravatar
Kirk
Supporter
Supporter
Beiträge: 8147
Registriert: 24.05.2010 08:31
Kontaktdaten:

Re: Hilfe... 2x Quote

Beitrag von Kirk »

Versuch mal folgendes,
Finde in deiner posting.php dashier:

Code: Alles auswählen

		$message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "[/quote]\n";          //Edit by Luc to support quoting attachments
          if ($post_data['attach_id'])
          {
             if(isImage($post_data['real_filename'])){
                $message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "\n[img]". getPageURL() . "download/file.$phpEx?id=" . $post_data['attach_id'] . "[/img][/quote]\n";
             } else {
                $message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "\n[url=". getPageURL() . "download/file.$phpEx?id=" . $post_data['attach_id'] . "]" . $post_data['real_filename'] . "[/url][/quote]\n";
             }
          }
          else
          {
             $message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "[/quote]\n";
          }
          //End of Edit
Ersetze es damit:

Code: Alles auswählen

// Decode text for message display
$post_data['bbcode_uid'] = ($mode == 'quote' && !$preview && !$refresh && !sizeof($error)) ? $post_data['bbcode_uid'] : $message_parser->bbcode_uid;
$message_parser->decode_message($post_data['bbcode_uid']);

if ($mode == 'quote' && !$submit && !$preview && !$refresh)
{
	if ($config['allow_bbcode'])
	{
		$message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "[/quote]\n";          //Edit by Luc to support quoting attachments
          if ($post_data['attach_id'])
          {
             if(isImage($post_data['real_filename'])){
                $message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "\n[img]". getPageURL() . "download/file.$phpEx?id=" . $post_data['attach_id'] . "[/img][/quote]\n";
             } 
			 }
          //End of Edit
Knowhow-Sauger
Mitglied
Beiträge: 656
Registriert: 18.05.2012 07:06

Re: Hilfe... 2x Quote

Beitrag von Knowhow-Sauger »

Danke erstmal für die Mühe. :)
Leider funktioniert es nicht. Wenn man jetzt auf "zitieren" klickt, erscheint eine weiße Seite!
Forum für Freunde kurzer Hosen: http://www.kurzehosenforum.com
Benutzeravatar
Kirk
Supporter
Supporter
Beiträge: 8147
Registriert: 24.05.2010 08:31
Kontaktdaten:

Re: Hilfe... 2x Quote

Beitrag von Kirk »

Ich hatte einen Fehler drin, nochmal
Finde:

Code: Alles auswählen

// Decode text for message display
$post_data['bbcode_uid'] = ($mode == 'quote' && !$preview && !$refresh && !sizeof($error)) ? $post_data['bbcode_uid'] : $message_parser->bbcode_uid;
$message_parser->decode_message($post_data['bbcode_uid']);

if ($mode == 'quote' && !$submit && !$preview && !$refresh)
{
    if ($config['allow_bbcode'])
    {
        $message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "[/quote]\n";          //Edit by Luc to support quoting attachments
          if ($post_data['attach_id'])
          {
             if(isImage($post_data['real_filename'])){
                $message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "\n[img]". getPageURL() . "download/file.$phpEx?id=" . $post_data['attach_id'] . "[/img][/quote]\n";
             } else {
                $message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "\n[url=". getPageURL() . "download/file.$phpEx?id=" . $post_data['attach_id'] . "]" . $post_data['real_filename'] . "[/url][/quote]\n";
             }
          }
          else
          {
             $message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "[/quote]\n";
          }
          //End of Edit 
Ersetzen mit:

Code: Alles auswählen

// Decode text for message display
$post_data['bbcode_uid'] = ($mode == 'quote' && !$preview && !$refresh && !sizeof($error)) ? $post_data['bbcode_uid'] : $message_parser->bbcode_uid;
$message_parser->decode_message($post_data['bbcode_uid']);

if ($mode == 'quote' && !$submit && !$preview && !$refresh)
{
   if ($config['allow_bbcode'])
   {
      $message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "[/quote]\n";          //Edit by Luc to support quoting attachments
          if ($post_data['attach_id'])
          {
             if(isImage($post_data['real_filename'])){
                $message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "\n[img]". getPageURL() . "download/file.$phpEx?id=" . $post_data['attach_id'] . "[/img][/quote]\n";
             } 
          }
          //End of Edit 
Sollte das nicht funktionieren, ersetze es hiermit:

Code: Alles auswählen

// Decode text for message display
$post_data['bbcode_uid'] = ($mode == 'quote' && !$preview && !$refresh && !sizeof($error)) ? $post_data['bbcode_uid'] : $message_parser->bbcode_uid;
$message_parser->decode_message($post_data['bbcode_uid']);

if ($mode == 'quote' && !$submit && !$preview && !$refresh)
{
    if ($config['allow_bbcode'])
    {
        $message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "[/quote]\n"; 
Was hast du überhaupt eingebaut?
Knowhow-Sauger
Mitglied
Beiträge: 656
Registriert: 18.05.2012 07:06

Re: Hilfe... 2x Quote

Beitrag von Knowhow-Sauger »

Super genial. 1000 Dank! :) :) :)
Der erste Code hat gleich funktioniert.
Du bist echt ein wahrer Spezialist! :D
Was hast du überhaupt eingebaut?
vieles.. u.a. LIVE-Vorschau beim schreiben von Beiträgen, aufklappbare Smilies und und und..
Forum für Freunde kurzer Hosen: http://www.kurzehosenforum.com
Antworten

Zurück zu „[3.0.x] Administration, Benutzung und Betrieb“