Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 4,901 through 4,925 (of 64,294 total)
  • Author
    Search Results
  • #208298
    samtime
    Participant

    Hi, One of my users discovered that they can post potentially malicious HTML into the bbPress reply box.

    I once added the code below to my functions.php file, because users were not able to use Left-align, Centre, and Right-align for text, but I fear maybe it’s now given too many HTML permissions.

    Could anyone please look at this code and let me know if something needs to be changed (maybe some trues switched to falses)?

    Thank you so much, Sam

    add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' );
    function ntwb_bbpress_custom_kses_allowed_tags() {
    	return array(
    		// Links
    		'a'          => array(
    			'class'    => true,
    			'href'     => true,
    			'title'    => true,
    			'rel'      => true,
    			'class'    => true,
    			'target'    => true,
    		),
    		// Quotes
    		'blockquote' => array(
    			'cite'     => true,
    		),
    		
    		// Div
    		'div' => array(
    			'class'     => true,
    		),
    		
    		// Span
    		'span'             => array(
    			'class'     => true,
                            'style'     => true,
    		),
    		
                    // Paragraph
    		'p'             => array(
    			'class'     => true,
                            'style'     => true,
    		),
    
    		// Code
    		'code'       => array(),
    		'pre'        => array(
    			'class'  => true,
    		),
    		// Formatting
    		'em'         => array(),
    		'strong'     => array(),
    		'del'        => array(
    			'datetime' => true,
    		),
    		// Lists
    		'ul'         => array(),
    		'ol'         => array(
    			'start'    => true,
    		),
    		'li'         => array(),
    		// Images
    		'img'        => array(
    			'class'    => true,
    			'src'      => true,
    			'border'   => true,
    			'alt'      => true,
    			'height'   => true,
    			'width'    => true,
    		),
    		// Tables
    		'table'      => array(
    			'align'    => true,
    			'bgcolor'  => true,
    			'border'   => true,
    		),
    		'tbody'      => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'td'         => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'tfoot'      => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'th'         => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'thead'      => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'tr'         => array(
    			'align'    => true,
    			'valign'   => true,
    		)
    	);
    }
    #208293
    pointydrip
    Participant

    When I try to access mysite.com/forums it does not work with my theme so I copied archive-forum.php to my child theme.

    The default archive-forum.php template allows the bbpress content to appear, but not the theme header, so I stripped away the bbpress header items and replaced ‘archive-forum’ with ‘page’ like so:

    <?php
    get_header(); ?>
        <div id="forum-front" class="bbp-forum-front">
            <div class="entry-content">
                <?php bbp_get_template_part( 'content', 'page' ); ?>
            </div>
        </div><!-- #forum-front -->
        <?php do_action( 'bbp_after_main_content' ); ?>
    <?php get_sidebar(); ?>
    <?php
    get_footer();

    This makes the theme header work, but now the bbpress content is broken.
    I am getting the following error:
    Warning: count(): Parameter must be an array or an object that implements Countable in public_html/wp-includes/post-template.php on line 316

    The line in question is:

    if ( $elements['page'] > count( $elements['pages'] ) ) { // if the requested page doesn't exist
    		$elements['page'] = count( $elements['pages'] ); // give them the highest numbered page that DOES exist
    	}

    From what I understand /forums is not a page that ‘exists’, but I’ not comfortable modifying WP core. Any help would be appreciated…

    #208289
    nickds
    Participant

    Hi Clive, gyus from Divi helped me out to sort it:

    add the following CSS code to Custom CSS box in Divi > theme options > general settings:


    @media
    (max-width:980px) {
    div#bbpress-forums {
    overflow: visible !important;
    }
    }

    Maybe it will help you too.
    Nick

    orangeturtle1000
    Participant

    Hi.

    When I view my forum list page, it is showing the date the last topic was created, not the last reply in that topic. However, in the topic list, it shows the correct time and date of the last reply.

    Is there a way to show the date of the last reply instead of the date when the last topic was created?

    bbpress: 2.6.3

    #208286
    Pascal Casier
    Moderator

    Check also https://bbpress.org/forums/topic/spam-registrations-2/ as the topic seems the same

    #208276

    In reply to: sub topics not showing

    haddly
    Participant

    @robin-w – hey:

    1. AsynCRONous bbPress Subscriptions
    2. Image Upload for BBPress
    3. topic subscribe
    samtime
    Participant

    Hi,
    Is there a way for bbPress notifications that appear in BuddyPress (eg: “You have a new reply on the topic you started”) to automatically be dismissed when clicked, like other notifications do?

    Currently they can only be dismissed by manually marking them as read on the user profile page.

    Thank you,
    Sam

    WordPress 5.3.2
    bbPress 2.6.3
    BuddyPress 5.1.2

    #208269
    trustedservant
    Participant

    Hello,
    I am seeking help importing my Mingle forums…I can’t seem to find the answers on the bbpress support boards.

    Here are the specifics of my setup:
    Wordpress 5.3.2
    Pandora Theme 1.3.2
    bbpress 2.6.3
    naranonchat.com

    Originally, I struggled to figure out what information needed to be put into the import fields as I am definitely not well versed in the world of website building. I was able to find my wp-configure.php to get the information. My table prefix was not wp_ it was smi_ which took me FOREVER to figure out.

    When I finally got the import monitor to run, it got stuck at step 6 multiple times and despite clicking the option to erase previous attempts, it just created multiple duplicate forums. So, I did the hard reset that was suggested on one of the message boards by Stephen Edgar. When I started over, only one version of the forums was created. I was super excited!

    Now, when it moves on to step 7 it first tells me “Converting topics (0 through 50 of 50) 100%,” then it just continuously runs stating over and over “Converting topics (50 through 50 of 50) 100%.” This creates copy after copy after copy of the same exact posts and never stops. I have over 500+ topics, not 50. How can I stop step 7 from multiple duplications of the same 50 posts, get all 500+ topics that should come over and move on to step 8?

    Please help, I am super frustrated.

    Thanks in advance!

    Robin W
    Moderator
    #208256

    In reply to: sub topics not showing

    Robin W
    Moderator

    @haddly – thanks. What other bbpress related plugins do you have ?

    domi80
    Participant

    Hi

    We’ve got an issue after upgrading bbPress to 2.6.x:

    The “latest reply” column on the forum index page isn’t showing the real latest reply. Instead, we see the latest reply as it was just before the upgrade to 2.6.x.
    None of the replies after the update are displayed.
    This happens only at the forum index, not on the sub forum index pages; the sub forum index page shows the right latest reply.

    The options to repair/recalculate didn’t correct the information in the “latest reply” column.

    We’ve seen this on 2.6.1 and 2.6.3.
    We did a downgrade to 2.5.14 twice, once after 2.6.1 and once after 2.6.3, we did every time the repair/recalculate, and we’ve got the column working good again with the right and expected “latest reply”.

    URL: http://www.lotgenotenseksueelgeweld.nl
    Note: It’s in Dutch localized.

    bbPress version now: 2.5.14
    We have the forum index built by using the shortcode [bbp-forum-index] .
    For the sub forums, we use the corresponding shortcode with the ID of the sub forum.
    WordPress version 5.3.2.
    PHP version 7.3.12.

    Anyone else having this situation? How did you get it solved?
    Or could this be a bug in the bbPress?

    #208229

    In reply to: Header Spacing

    Robin W
    Moderator

    try this in the custom css area of your theme

    #bbpress-forums {
    	margin-top: 30px !important;
    }

    and adjust the 30px to suit

    Robin W
    Moderator

    of course this presume you have a child theme

    Functions files and child themes – explained !

    Robin W
    Moderator

    template are designed to be alterable and added to your theme

    so

    find
    wp-content/plugins/bbpress/templates/default/bbpress/user-profile.php

    transfer this to your pc and edit whatever you want

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/user-profile.php

    bbPress will now use this template instead of the original

    #208211
    Robin W
    Moderator

    hmmm…not sure why – not a general issue, but you can amend emails using

    bbPress Custom Notification Emails

    #208208

    In reply to: Spam Registrations

    Robin W
    Moderator

    This might do it

    bbPress No CAPTCHA reCAPTCHA

    not tested, so let me know

    #208197
    visimedia
    Participant

    when my free members post something in bbpress, it shows in their buddypress wall profile

    I want not to post this in their wall when my paid members post something in paid forums in bbpress

    is this doable?
    or how to hide all of the bbpress postign at all in the buddypress profile?

    knelsonkris
    Participant

    I am trying to replace a brand name throughout my entire site using a php function and an add filter. Works great, but I cannot seem to get to the bbpress “content”. What I am trying to do is:

    add_filter(‘the_content’, ‘replace_text’);

    where “the content” includes a topic or a reply within bbpress. I have no idea what “the content” would be.

    Any help would be appreciated

    Kris

    #208181
    solomani
    Participant

    Hi all,

    Looking for a way to stop spam user regestrations. By default the users are “spectators” so the spam users cant do anything but is there a way to stop them outright?

    I enabled reCAPTCHA for bbPress but, unless I am doing something wrong, it doesn’t seem to stop the regestrations (in fact not sure its working).

    Thanks.

    #208178
    moyles
    Participant

    Hi folks. I am trying to add the shortcode for a single forum [bbp-single-forum id=$id ]

    However I cannot find the ‘forum id’ anywhere.

    The bbpress install is new and I have only created one test forum. Nowhere is the ‘test forum id’ listed. I can only see a field for ‘order’ which is by default ‘0’. So I tried the forum id as 0 but nothing appears on the page, I have also tried the id as 1 as it is the only forum created.
    Please note that the shortcode for showing ‘all forums’ work as expected on the page.

    Any thoughts?
    Thank you.

    #208168

    In reply to: Freshness is way off

    Editor Mike
    Participant

    The tools did not repair it for me, however I have installed the bbp Refresh Last Active Time plug in.

    In the few days since reporting this and installing the plugin, there have been enough new topics and new replies to bury the incorrect data.
    So for the most part the forum is up to date.
    Hopefully no more BBPress updates for a while!

    😀

    wriper
    Participant

    Hi guys,

    After update my topic freshness or time stamp of post is totally broken. I have tried several solutions including “repair freshness” trough tools section . Only thing that somehow solved my problem was disabling freshness trough “bbpress style pack” and let bbpress show only date (eg 23rd. January 2020).

    But bbpress style pack is not working for me as it is breaking my css and I think it was that plugin which switched all post to show ” Right Now” only new posts are showed correctly but all old posts are ” Right now” . I have also ask server admin to turn off caching but it didnt help.

    Is there any solution for this without bbpress style pack?

    Note : ” Teraz” means ” Right now” in Slovak.

    Link for example: https://fitgo.sk/diskusia/doplnky-vyzivy/

    Screenshot

    wriper
    Participant

    Big thanks!

    This worked for me

    #bbpress-forums div.bbp-reply-author .bbp-author-name {
      width: 100%;
    }
    
    #bbpress-forums div.bbp-reply-author .bbp-author-role {
      width: 100%;
    }
    #208161
    audrey2112
    Participant

    Hi!

    I don’t know if this is possible, but I would like to replace the text editor in reply of bbpress by another wysiwyg html editor like this one:

    https://summernote.org/

    I have some trouble right now. The users on my web site report me that they can’t put any html code in their post like the balise ul/li. I edit their post and repost. The code appear just fine. They can’t use a simple <br/> but I can. Is it the editor of bbpress? Or a permission thing?

    Another admin have the same problem also. They post a first reply with a ul/li. The list appear just fine. He post the same code after that one and the content between the ul/li just desappear.

    Thank you for your help.

Viewing 25 results - 4,901 through 4,925 (of 64,294 total)
Skip to toolbar