Support » Plugin: GD bbPress Tools » Last update bug quotes & smileys going nuts

  • Resolved alriknijdam

    (@alriknijdam)


    Hi there,

    The last update gives a fatal error:
    Fatal error: Cannot declare class gdbbMod_Quote, because the name is already in use in …/…/wp-content/plugins/gd-bbpress-tools/code/mods/quote.php on line 5

    also I noticed (before installing the latest version) smileys are going completely nuts in quotes. Example smileys going nuts
    I looked in my DB, and in the part where the smileys are going nuts the code looks like this:

    blockquote class="d4pbbc-quote">
    <div class="d4p-bbp-quote-title"><a href="https://.../...">SuperSi wrote:</a></div>
    <blockquote>Klopt, maar ik heb een vario zonder loopstand <img src=".../.../wp-includes/images/smilies/mrgreen.png" alt=":mrgreen:" /></blockquote>
    </blockquote>
    <blockquote>Heb jij ff pech  :mrgreen:</blockquote>

    Another request would be to add a line break after a quote. My users now have to end the quote themselves and they don’t seem to understand it.

    Best regards,
    Alrik

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    You should use BBCode version of the Quote because HTML version has some issues caused by the copying of the HTML in the editor. But, the main issue here is the WordPress replacing smilies with images. On my websites, I have disabled this WordPress feature, so browsers can render smilies.

    Can you perhaps tell me how you disabled this because I’m trying to avoid the use of bbcode. Is it a little piece of code in functions.php?

    Plugin Author Milan Petrovic

    (@gdragon)

    There is a free plugin in WordPress.org to disable smilies support. I am not sure of the name, you can search for it.

    I am also having this issue where emojis get huge (almost the whole page) when quoted. I tried installing ‘disable emojis’ and a few other things but have not found anything that works yet. Any ideas what is causing this issue?
    s

    Fixed the monster-smileys, so I thought I’ll share it with you.
    TinyMCE filters out some HTML, among others: class

    I added this in my functions.php to allow it:

    add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' );
    function ntwb_bbpress_custom_kses_allowed_tags() {
    	return array(
    	'img'			=>	array(		//foto's
    						'src'		=> true,
    						'alt'		=> true,
    						'height'	=> true,
    						'width'		=> true,
    						'class'		=> true,
    						),
    	'blockquote'	=>	array(		//quotes
    						'class'	=> true,
    						)
    	);
    }

    The fatal error was caused by some left over plugin, and is no longer a problem.

    Now the quote works fine again! The only thing I miss is the line break after a quote wich ends the quote. When my users start typing after a quote, there new text is part of the quote.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Last update bug quotes & smileys going nuts’ is closed to new replies.