devfind (@devfind)

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @devfind

    Participant

    Great, thanks!

    @devfind

    Participant

    Thanks Robin!

    Modifying bbp_kses_allowed_tags() worked for me!
    Adding the hr did not change anything 🙁

    @devfind

    Participant

    Thanks Robin.
    We tried the proposed solution, but it did not work.

    We have found an alternative way that works, but now we cannot include any html other than an anchor.
    Our <span>’s are simply remove and only the text is added.
    Any ideas how to get around this?

    This is the code that works:

    
      function bbp_convert_content($post_content){
    		$signature = "<span class='signature-separator'>----------</span>";	
    
            if (isset($_POST) && $_POST['bbp_sig_name']!='')
                $signature = $signature . "<span class='signature-name signature-field'>" . $_POST['bbp_sig_name'] . "</span>";
    
    		if (isset($_POST) && $_POST['bbp_sig_url']!='')
    			$signature = $signature . "<span class='signature-url signature-field'><a target='_blank' rel="noopener">  " . $_POST['bbp_sig_url'] . "</a></span>";
    
    		$signature = $signature . "<span class='signature-separator'>----------</span>";	
    
            return $post_content . $signature;
        }
    
     add_filter('bbp_new_reply_pre_content', 'bbp_convert_content', 10, 3);
     add_filter('bbp_new_topic_pre_content', 'bbp_convert_content', 10, 1);
Viewing 3 replies - 1 through 3 (of 3 total)