Seite 3 von 3

Re: Hilfe... 2x Quote

Verfasst: 29.03.2014 11:43
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

Re: Hilfe... 2x Quote

Verfasst: 29.03.2014 15:32
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!

Re: Hilfe... 2x Quote

Verfasst: 29.03.2014 18:02
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?

Re: Hilfe... 2x Quote

Verfasst: 30.03.2014 16:45
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..