Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 726 through 750 (of 64,430 total)
  • Author
    Search Results
  • #238969
    ibnat
    Participant

    Hi all,

    Obviously for a bbpress forum to run correctly registration needs to be open and allowed. But how do we stop spammers from registering?

    I have a captcha plugin to stop the bots but what on earth can we do with actual people that register in order to spam in new posts they create or in replies… (As has happened here in this bbpress forum today!)

    I do have the forum set for admin to approve new posts or replies from new members so spam posts dont get published and then notifications sent to people following the forums or topic…

    But how do we stop these nasty people from registering in the first place? I guess its impossible…

    stonebkfly
    Participant

    We have many Forums and we wish to have different Moderators for specific forums. However, I do not see a way to limit the view so that a Moderator only see the Forums that they are responsible for. Is there a way to do this?

    Currently we are setting the Moderator Role on the user record. I have been unable to set the Moderator on the Forum record (when I set it and save I get no error but it does not get saved). If I could set it on the Forum record would this limit the Forums that the Moderator would see?

    WordPress Version: 6.4.2
    bbPress Version: 2.6.9

    Thank you!
    Joseph

    #238956
    ibnat
    Participant

    I forgot to mention. On setting up your forum before creating your app there is one plugin that is essential. (Thankyou Robin!) 🙂

    bbp style pack

    Here are all the plugins I am using.

    bbp profile information Version 2.1.2 by Robin Wilson
    bbPress Version 2.6.9 by The bbPress Contributors
    bbP Signature Version 1.4 by Arjun S Kumar, Robin W
    bbp style pack Version 5.7.8 by Robin Wilson
    GD bbPress Attachments Version 4.6 by Milan Petrovic
    Hide Admin Bar Based on User Roles Version 3.7.0 by Ankit Panchal
    Import and export users and customers Version 1.25.1 by codection
    LiteSpeed Cache Version 6.0.0.1 by LiteSpeed Technologies
    Meow Lightbox Version 5.1.1 by Jordy Meow
    reCaptcha by BestWebSoft Version 1.74 by BestWebSoft
    Site Kit by Google Version 1.116.0 by Google
    Smush Version 3.15.3 by WPMU DEV
    Super RSS Reader Version 5.1 by Aakash Chakravarthy
    WP Mail From II Version 2.0 by Ben Huson
    WPMobile.App — Android and iOS Mobile Application Version 11.41 by WPMobile.App
    WP User Avatars Version 1.4.1 by Triple J Software, Inc.
    Yoast SEO Version 21.8 by Team Yoast

    #238955
    ibnat
    Participant

    Hi Robin. (and all interested)

    Well, the first and main tip is not to lose patience with yourself (as one is not a plugin developer) or the actual plugin developer! They might not answer your email or question within a few minutes but that is because they are busy and you are not the only customer or client! 🙂

    Also, the layout and basic (main) setup of the forum should be done on a desktop. Its a lot easier to visualize on a big screen and if it looks ok there it will look fine on a mobile device. I used IrFan View for windows 64 for all the forum image headers and it took a bit of time to get them sized right for both web and mobile display.

    The main issues I had was….

    A. Theme layout (Choosing the right theme for what you want is essential.) I have Astra which works together with the WPMobile native theme perfectly. Remember that the forum needs to work on desktop, tablet and mobile so web version and app should be as close as possible in layout etc

    B. Images not resizing correctly (on mobile devices) that are attached to forum posts. This was fixed by using the plugin Meow Lightbox. before that, any attached images were displayed at full size so very often just a black screen or a white screen. It took me ages to work out that pinching fingers to reduce the image size was needed!!!!

    I just have two things to fix now.

    1. After registering an account on the app you are redirected to the “website” and not the “app” on your mobile browser to login.

    Temporary Solution: Close the browser, open the “app” and log in there.

    2. YouTube URL’s sometimes dont embed into a new post or reply. Just the URL is visible and you can’t watch the video inside the forum post.

    temporary Solution: Tap the YouTube URL to open the video in a new window at YouTube

    (The youtube thing is really annoying and happens in web version, mobile version and has been an ongoing issue since the site creation) 🙂

    If anyone wants to look (you dont have to register to download the app or browse the site) its here https://iberianatureforum.com/ If you access the site on a mobile, there should be a notice at the top of the home page prompting the playstore download. Obviously only browsing is allowed if you are not registered.

    I haven’t gone for IOS apple yet as the outlay of $99 a year seems a bit expensive as opposed to the $25 one off payment that Google asks for.

    Although the forum is free, has no ads is small and suffered hugely from the attack of the big social networks it actually drives a huge amount of money making traffic to my commercial sites, particularly Wildside Holidays. I still dream of the day when people see the light and dump the excessive ad vomit from the likes of X, Fb etc…. I wrote a small comment here: https://iberianatureforum.com/forums/topic/facebook-and-forums-what-do-you-think/ (Some of the comments are really interesting!)

    Anyway, If you ask me the only way forward for something like a bbpress forum is to make it mobile friendly with push notifications just like those big boys have. people are more likely to engage with your content when their phone goes ping ping and there is a link directly to the content in the notification no?

    I’d love any feedback and comments!

    #238953
    ibnat
    Participant

    Updating this topic as I went ahead and used the WPMobile app with absolutely fantastic results.

    I now have a fully functioning BBPress forum available on the G Play Store with push notifications etc etc. Very happy!

    https://wordpress.org/support/plugin/wpappninja/reviews/

    Highly recommendable for anyone with a BBPress forum!

    #238952
    Robin W
    Moderator

    I don’t know of anything that does this within bbpress.

    However bbpress just uses then wordpress login, so anything that does that in wp would work.

    This looks like a possible option…

    WP User Switch

    Otherwise you could just allow ‘anonymous posting’ which would let users post under multiple names, but of course could not be limited to paid members.

    #238951
    colestyles
    Participant

    Reviewing bbPress as an option for a text based roleplaying site and want to understand whether a user can log into the site and then while logged in change between profiles.

    For example is I log in under User X, can I stay logged in, but change my profile to BuddyGuy123 and have a different avatar, signature, etc when I post onto different forums?

    As a follow-up, if bbPress will support that, we’d like to be able to make this a benefit for paid members only. Would that be possible?

    Thank you in advance for anyone who can provide a definitive answer, as it allows us to make decisions and move forward on our website.

    #238950

    Topic: Caption code

    in forum Installation
    ditout
    Participant

    Hi,
    I have installed BBPress for my forum, some photos of my forum have these code:
    [caption id="attachment_1496" align="alignnone" width="300"] [/caption]
    Please tell me how to remove it,
    Thank you very much!

    #238936

    In reply to: Navigation bar

    sotekt
    Participant

    bbpressDefault 🙂

    #238935

    In reply to: Navigation bar

    sotekt
    Participant

    hehe no clue i just istalled the bbpress and was working on namming the forums…. clue less! But at least you told me how this navigation bar is called! Yes i cant really see this breadcrumb navigation!!! why ? 🙁

    #238933
    Tory
    Participant

    Thanks. I have your plugin. And I set the root crumb to be “Community”, but since I have Rankmath breadcrumbs active on my site, I assume it overrides the bbPress breadcrumbs. And would that fix the meta title issue being “Forums” instead of “Community”?

    #238928
    sotekt
    Participant

    Hey guys am quite new to these just install a bbpress in my wordpress. Added Some categories and some forums with perent… and while trying to use the forums i cant get the way how to go back to the main forums categories.

    Any tips? thanks

    #238927
    rilliencot
    Participant

    Although I solved the last issue, a similar one immediately came up after that (The topic count at the top of a forum didn’t count new topics). I had a feeling that as long as I proceeded with this hacked version of the actual bbPress functions that I now thankfully know are responsible for topic creation (thank you Robin, again!), these little discrepencies were going to keep popping up.

    So I’ve updated the ‘create_bill’ function to now call bbp_insert_topic() (line 24 of \bbpress\includes\topics\functions.php). If I understand things correctly (I’m new to web development and learning as I go), this starts the natural chain of events that should happen anytime a new topic is created (at least it looks to be working). I still need the new endpoint because I’d like to add some custom fields to these topics as well, so now the above php script is the much simpler:

    <?php
    /**
     * Plugin Name:       bbPress Bill API
     * Description:       Exposing the bbPress post types to WP API and creating a namespace for bills.
     * Author:            Rillien Cot
     * Version:           1.6.0
     */
    
    /**
     * Add REST API support to an already registered post type.
     */
    add_action('init', 'register_bbp_post_types', 25);
    
    function register_bbp_post_types() {
        global $wp_post_types;
    
        $post_type_name =  bbp_get_reply_post_type();
        if (isset($wp_post_types[$post_type_name])) {
            $wp_post_types[$post_type_name]->show_in_rest = true;
            $wp_post_types[$post_type_name]->rest_base = $post_type_name;
            $wp_post_types[$post_type_name]->rest_controller_class = 'WP_REST_Posts_Controller';
        }
        $post_type_name =  bbp_get_topic_post_type();
        if (isset($wp_post_types[$post_type_name])) {
            $wp_post_types[$post_type_name]->show_in_rest = true;
            $wp_post_types[$post_type_name]->rest_base = $post_type_name;
            $wp_post_types[$post_type_name]->rest_controller_class = 'WP_REST_Posts_Controller';
        }
        $post_type_name =  bbp_get_forum_post_type();
        if (isset($wp_post_types[$post_type_name])) {
            $wp_post_types[$post_type_name]->show_in_rest = true;
            $wp_post_types[$post_type_name]->rest_base = $post_type_name;
            $wp_post_types[$post_type_name]->rest_controller_class = 'WP_REST_Posts_Controller';
        }
    
        // Add custom REST API endpoint for creating bbPress topic
        add_action('rest_api_init', 'create_bill_endpoint');
    }
    
    function create_bill_endpoint() {
        register_rest_route('pnyx/v2', '/bill/', array(
            'methods' => 'POST',
            'callback' => 'create_bill',
        ));
    }
    
    function create_bill($data) {
        // Extract Data
        $new_topic_data = $data['new_post_data'];
        $new_topic_meta = $data['new_post_meta'];
    
        // Create new bbPress topic using passed data and meta content
        $topic_id = bbp_insert_topic($new_topic_data, $new_topic_meta);
    
        // Add ACF custom fields to created topic
        update_field('bill_id', $data['bill_id'], $topic_id);
    }
    ?>

    and the python that calls it is:

    import requests
    import json
    
    # Set your WordPress API authentication details
    username = "************"
    password = "***********************"
    auth = requests.auth.HTTPBasicAuth(username, password)
    
    # Create a new post data with post_parent
    new_post_payload = {
        "new_post_data": {
            "post_parent": 40, // use a valid forum_id from your site
            "post_title": "API Created Post Title",
            "post_content": "Lorem ipsum content for the new topic",
        },
        "new_post_meta": {
            "forum_id": 40, //use same forum_id here that you used for "post parent" in 'new_post_data'
        },
        "bill_id": "hrs1111",
    }
    
    # Make the POST request to create a new post
    wordpress_api_url = "http://pnyx.local/wp-json/pnyx/v2/bill/"
    response = requests.post(
        wordpress_api_url,
        auth=auth,
        headers={
            'Content-Type': 'application/json',
        },
        data=json.dumps(new_post_payload),
    )

    You’ll notice that the ‘data’ portion of the request has changed from a simple dictionary to nested dictionaries so the bbp_insert_topic function has the correct arguments (it takes two arrays).

    #238919
    Robin W
    Moderator

    for completeness look at

    \bbpress\includes\topics\functions.php line 96

    This is what bbpress does to create a new topic.

    on line 378 it has a hook

    do_action( 'bbp_new_topic',......

    which is used in

    bbpress\bbpress\includes\core\actions.php

    Line 206: add_action( 'bbp_new_topic',  'bbp_update_topic', 10, 5 );
    Line 241: add_action( 'bbp_new_topic',    'bbp_notify_forum_subscribers', 11, 4 );
    Line 287: add_action( 'bbp_new_topic',        'bbp_increase_forum_topic_count' );
    Line 327: add_action( 'bbp_new_topic',     'bbp_increase_user_topic_count' );
    Line 346: add_action( 'bbp_new_topic', 'bbp_update_topic_engagements', 20 );
    Line 350: add_action( 'bbp_new_topic', 'bbp_update_topic_voice_count', 30 );

    to call the other functions that update the meta, and thus get the topic to show.

    #238915
    rilliencot
    Participant

    WordPress Version: 6.4.2
    bbPress Version: 2.6.9
    Link to site: Unavailable (Site created using LocalWP and still hosted locally)

    When I create topics through the standard frontend or backend, the new topic shows up in the forum perfectly.

    However, if I create a new topic using a plugin extension I’ve cobbled together, the new topic does not show up on the front end of the website (despite it being created and visible on the back end).

    The plugin written in php is as follows (thanks to work from here and here):

    
    <?php
    /**
     * Plugin Name:       bbPress API
     * Description:       Exposing the bbPress post types to WP API.
     * Author:            Rillien Cot
     * Version:           1.3.0
     */
    
    /**
     * Add REST API support to an already registered post type.
     */
    add_action('init', 'register_bbp_post_types', 25);
    
    function register_bbp_post_types() {
        global $wp_post_types;
    
        $post_type_name =  bbp_get_reply_post_type();
        if (isset($wp_post_types[$post_type_name])) {
            $wp_post_types[$post_type_name]->show_in_rest = true;
            $wp_post_types[$post_type_name]->rest_base = $post_type_name;
            $wp_post_types[$post_type_name]->rest_controller_class = 'WP_REST_Posts_Controller';
        }
        $post_type_name =  bbp_get_topic_post_type();
        if (isset($wp_post_types[$post_type_name])) {
            $wp_post_types[$post_type_name]->show_in_rest = true;
            $wp_post_types[$post_type_name]->rest_base = $post_type_name;
            $wp_post_types[$post_type_name]->rest_controller_class = 'WP_REST_Posts_Controller';
        }
        $post_type_name =  bbp_get_forum_post_type();
        if (isset($wp_post_types[$post_type_name])) {
            $wp_post_types[$post_type_name]->show_in_rest = true;
            $wp_post_types[$post_type_name]->rest_base = $post_type_name;
            $wp_post_types[$post_type_name]->rest_controller_class = 'WP_REST_Posts_Controller';
        }
    
        // Add custom REST API endpoint for creating bbPress topic
        add_action('rest_api_init', 'create_bill_endpoint');
    }
    
    function create_bill_endpoint() {
        register_rest_route('pnyx/v2', '/bill/', array(
            'methods' => 'POST',
            'callback' => 'create_bill',
        ));
    }
    
    function create_bill($data) {
        // Extract necessary data from the request
        $forum_id = $data['forum_id'];
        $topic_title = $data['topic_title'];
        $topic_content = $data['topic_content'];
        $bill_id = $data['bill_id'];
    
        // Create a new bbPress topic
        $topic_args = array(
            'post_title' => $topic_title,
            'post_content' => $topic_content,
            'post_type' => bbp_get_topic_post_type(),
            'post_status' => 'publish',
            'post_parent' => $forum_id, // Set the post_parent to the forum ID
        );
    
        $topic_id = wp_insert_post($topic_args);
    ?>
    

    Basically, it exposes the Forum, Topic, and Reply post types from bbPress to standard wp-json/v2 namespace and then adds an additional endpoint (‘create_bill’) which allows me to add a new topic and associate it with a forum via ‘post_parent’. (I wonder if this is where the problem is?)

    I create a new topic using the following python script:

    
    import requests
    import json
    
    # Set WordPress API authentication details
    username = "*******"
    password = "**********************"
    auth = requests.auth.HTTPBasicAuth(username, password)
    
    # Values for new post data
    new_post_data = {
        "forum_id": 40, # <- This is a valid post id of a forum.
        "topic_title": "New API Topic Title",
        "topic_content": "Lorem ipsum content for the new topic"
    }
    
    # Make the POST request to create a new post
    wordpress_api_url = "http://pnyx.local/wp-json/pnyx/v2/bill/"
    response = requests.post(
        wordpress_api_url,
        auth=auth,
        headers={
            'Content-Type': 'application/json',
        },
        data=json.dumps(new_post_data)
    )
    

    The topic is created, and I can see it in Dashboard>>Topics>>All Topics. And I can view it by going directly to the link associated with it, but I can’t see it on the actual frontend of the forum.

    I’ve deactived all other plugins and I’m still getting this issue. The only differences between the two (as far as I can tell) are the Author IP (API created topics leave this field blank, standard fills it with 127.0.0.1) and the number of voices (API created topics have 0, standard created topics have 1). All the other settings seem identical (visibilty = public, type = normal, status = open).

    Any insights as to what I’m missing and how to rectify the situation are greatly appreciated, thanks!

    #238914
    Robin W
    Moderator

    Thanks, I’ve just tested your scenario above, and yes that is a bug.

    I am not a bbpress author, just someone who helps out here.

    Strangely that metabox doesn’t actually let you change the subscribers, it simply lists them, not sure why 🙂

    if you are using

    bbp style pack


    then I’ve included a fix for this in version 5.7.8.

    You can also add comprehensive subscription management functionality for the backend from the ‘subscriptions management’ tab.

    Otherwise you could add this code:

    
    add_action ('bbp_subscriptions_metabox' , 'rew_set_hidden_subscribers' ) ;
    add_action ('bbp_topic_attributes_metabox_save' , 'rew_save_subscriptions', 10 , 2) ;
    
    function rew_set_hidden_subscribers ($post) {
    	// Get user IDs
    	$user_ids = bbp_get_subscribers( $post->ID );
    	$list = implode(",",$user_ids); 
    
    	// Output
    	?>
    	<input name="rew_topic_subscription" id="rew_topic_subscription" type="hidden" value="<?php echo $list; ?>" />
    	<?php
    }
    
    function rew_save_subscriptions ( $topic_id, $forum_id ) {
    	// Handle Subscriptions
    	if ( bbp_is_subscriptions_active() && ! empty( $_POST['rew_topic_subscription'] )) {
    		//update_option ($subscriptions)
    		$subscriptions = explode(",", $_POST['rew_topic_subscription']);
    		foreach ($subscriptions as $subscription_id ) {
    			// Check if subscribed and if so do nothing
    			if (bbp_is_user_subscribed( $subscription_id, $topic_id )) continue;
    			else {
    			bbp_add_user_subscription( $subscription_id, $topic_id );
    			}
    		}
    	}
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

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

    or use

    Code Snippets

    #238912
    Tory
    Participant

    Here’s the link if that helps: https://camperfaqs.com/community. I disabled the RankMath plugin and the <title> is still “Forums”. It’s like the default bbPress terminology is still being used for the page title and breadcrumbs, even though I have renamed the forum root slug to “community”.

    #238906
    Tory
    Participant

    Hello, I am using the latest version of bbPress along with the generatepress theme. I used Method 2 on the getting started instructions and set the forum root slug to “community”, and created a page titled “Community”, with the slug “community”. I used [bbp-forum-index] on the page.

    My only issues are the page title (in the <title> tag) is “Forums Archive”, and I can’t seem to change it. And my breadcrumb trail is Home >> Forums. Somewhere, my site is pulling the term “Forums” for the <title> and breadcrumb (it’s a Rankmath breadcrumb).

    Any ideas?

    #238904

    In reply to: Abandoned?

    Robin W
    Moderator

    To understand that you need to understand that bbpress is a sister project to WordPress.

    Wordpress development (and therefore bbpress development) is funded by

    1. the commercial arm of wordpress – Automattic
    2. Donations and sponsorship from paid plugins and theme organizations who have a commercial interest in ensuring that WordPress continues

    At the moment no-one is sponsoring bbpress development, so no developer is currently being paid to maintain it.

    Hence no-one is updating even the tested to value.

    You could write to the board of wordpress.org, but beyond that not much we can do – I have tried !

    #238896
    itdahdev
    Participant

    Next issue, found a missing import field “_bbp_topic_voice_count” and i’m pretty sure, thats counted participants were ment. But in woltlap db thread tbl is no colum, so i think, i’ve could du it with a sql query like this:

    SELECT COUNT(DISTINCT po.userID) as participants
    FROM wbb1_thread th
    INNER JOIN wbb1_post po
    ON th.threadID = po.threadID
    WHERE th.threadID = 2086

    The sql query in phpmyadmin works as mentioned. So i copied a piece of code from another importer and customized it like this (? for parts i have no clou):

    $this->field_map[] = array(
    ‘from_tablename’ => ‘wbb1_thread’,
    ‘from_fieldname’ => ‘?’,
    ‘join_tablename’ => ‘wbb1_post’,
    ‘join_type’ => ‘INNER’,
    ‘join_expression’ => ‘USING (?) WHERE wbb1_thread.?= wbb1_post.?’,
    ‘to_type’ => ‘topic’,
    ‘to_fieldname’ => ‘_bbp_topic_voice_count’
    );

    But i’ve no clou, how to bring the sql in the right way for the import, missing manuals from bbPress, to understand he possibilities.

    Anybody firm in this?

    #238889
    Robin W
    Moderator

    This is one of the new FSE themes, so you need a fix to work with bbpress.
    install

    bbp style pack

    once activated, navigate to

    dashboard>settings>bbp style pack, and you should see the first tab called ‘Theme Support’ – if you don’t see this, come back.

    In that tab, select

    Enable Theme Support

    and save

    The forums should then display

    #238888
    milimo1
    Participant

    I added codes on a page for my forum and included topics and a forum that displays just fine. The problem or headache starts when I click on any of the links to the shortcodes. Just a blank page is all that shows. I’ve tried searching for help but to no avail. I’ve seen in tutorials that the links shown work and lead you to more info when you click on topics or the forums. Kindly help me.

    WordPress version 6.4.2, bbPress Version 2.6.9

    Links to Problem Pages
    Link to blank page after clicking forum
    Link to forum and topics page

    #238887
    Robin W
    Moderator

    bbpress stores entries as WordPress posts within the database.

    My test site has over 8,000 posts and the whole database takes up 155MB.

    It is not something you probably need to worry about – most hosters offer storage in the multiple GB realms.

    Plugins, media and themes take file space (rather than database).

    If you want to keep an eye on it go to

    dashboard>tools>site Health>info>directories and size and you can see what is being used

    #238880
    itdahdev
    Participant

    I took a import skript from “https://gist.github.com/ntwb/0bb069e5994c0ee8e85e&#8221;, copied the remote db to local db, setup the import panel. I works well for 33% of the import, then it stucks/hang.

    Got this from WP debug:
    Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in C:\htdocs\kunden\klemmer\forum\wp\wp-content\plugins\bbpress\includes\admin\parser.php:166

    So i paused the import, tried to resume, then i get errors in the browser console.

    Then i removed the forum data and tried to start in a incognito browser, to skip potentially problems with browser extensions. Did not help, same issues.

    System: WP 6.4.2, bbPress 2.6.9, Woltlap 5.x DB content, PHP 8.2, 10.4.32-MariaDB

    Would be great to get some handsome help to get this done 😉

    Greets Alex

    #238873
    n3wjack
    Participant

    Just an update to confirm that this issue is fixed if you use the bbp style pack plugin mentioned above, with the latest version of bbpress. 👍

Viewing 25 results - 726 through 750 (of 64,430 total)
Skip to toolbar