Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 15,626 through 15,650 (of 64,454 total)
  • Author
    Search Results
  • #161201
    s1r0n
    Participant

    can somebody tell me what the bbpress function call is to add a reply to a forum? something like

    bbpress_post($postTitle, $postContent, $postMeta)

    or whatever

    thx.

    phil_b
    Participant

    Hi all,

    I’m wondering how topics and replies get liked to users during import. Is it simply by ID, or by email?

    I.e you import 10,000 users. This completes. Then it moves on to topics, importing them and assigning them to the appropriate user. Does it take the user ID from the old forum software and compare to that stored for the imported user, or does it match via email address (which should be unique of course).

    I ask this because I’m considering importing topics/replies from 4 external forums in to a single bbpress install. There will really be no way to match up which topic/reply should be assigned to which user via ID, but it would work if matching via email.

    Thanks in advance!

    #161189
    quentinpotgieter
    Participant

    I have spent days trying to only show the topics created by the user. Using the user-topics-created.php and my own template. All my result shows is “This user has not created any topics.”. What am I missing?
    My goal is to create my own wordpress page template to show the user’s created topics without having the entire bbpress profile menu.

    Please help!

    #161187
    zazgo
    Participant

    Hi Robkk,

    Thanks you for your response. I tried what you instructed me but that didn’t worked out because I am using a framework, Genesis framework.

    I resolved the issues by just installing this plugin https://wordpress.org/plugins/bbpress-genesis-extend/ and it worked like a charm! šŸ™‚

    #161186
    oldmankit
    Participant

    Thanks for the tip!

    Yes I pinned-it down to a conflict with one plugin, Easy Digital Downloads – Currency Converter.

    I’ve just notified the plugin authors on their site.

    #161182

    In reply to: Profile Fields

    Robkk
    Moderator

    @pags2k7

    bbPress does not add custom profile fields

    could you be using BuddyPress also??

    #161175

    In reply to: WP 4 / BBpress 1.2

    hihafr
    Participant

    Me too, it’s very annoying to connect many times every day to access WP Admin and BBpress …

    #161164

    In reply to: Profile Fields

    pags2k7
    Participant

    im using bbpress to do this website. Im on Users-> Profile Fields

    Robin W
    Moderator

    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

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-single-reply.php

    bbPress will now use this template instead of the original, so you can amend this one

    #161154
    Robin W
    Moderator

    yes you would just put that code in form-topic.php

    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php

    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

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php

    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-topic.php

    bbPress will now use this template instead of the original

    you can then look at how the form does this, and put the appropriate lines in.

    Robin W
    Moderator

    with code anything is possible !

    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php

    line 27

    #161150
    krishnaTORQUE
    Participant

    I want to use post tag in topic tag. I do not want to create all tag again
    how to do that?

    wordpress v4.1.1
    bbpress v2.5.6

    Robin W
    Moderator

    bbpress uses custom post types in wordpress.

    Every wordpress post gets a unique number, as do edits and other stuff.

    so if you posted a forum topic it might get say id #1000, then a wordpress blog would get the next number #1001, the say a reply to a different forum topic orum topic #1002, then if you create a new page that would get #1003, then the first response the actual forum topic would get #1004

    You’d need to write a whole new numbering system to make your request work !

    #161146

    @Robkk

    thank you for your answer.

    I already installed bbpress v2 wordpress plugin on my wordpress blog, I only need to find out how to keep the same url for my forum when I import it.

    my blog:
    http://www.site.ext/blog/

    my forum:
    http://www.site.ext/forum/

    How do I instruct wordpress, when I use the import tool, to keep the old url for the forum (www.site.ext/forum/ instead of http://www.site.ext/blog/forum/)?

    Thank you.

    POI

    #161141
    Robkk
    Moderator

    bbPress thinks your forums are a blog post hence the “filed under” .

    you need to create a bbpress.php in your child theme from a copy of page.php and remove any unwanted code you do not need for your bbPress forums.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #161140
    Robkk
    Moderator

    @mattconway

    – I’m not too keen on the narrow width of the forums, Could anyone recommend some themes that work well with bbpress on different platforms to maximise available width of display?

    i have a 2014 child theme i created that doesnt have the narrow width, might upload to github then later wordpress theme repository late for download or something.

    #161134
    Robkk
    Moderator

    @geekserve

    I am just wondering why the trac was closed as a dupe of another, where the one it was apparently a duplicate of is something we can already achieve in bbPress.

    they both made a topic about adding a class for the bbPress author role, and you cant do it without a function if it were in core you would just need some plain CSS.

    The user is asking to be able to style the username, not the user role. There is no mention of the other ticket adding css to the user role element – so why was this ticket closed?

    well alot of people ask to style the user role and it might have been a mistake, but the other ticket also a person mentioning an idea to just add a body class to the author area so really you could style anything in that area by the persons user role.

    #161133
    jaymzyates
    Participant

    Thanks. I started a new thread about the issue since it wasn’t really related to Vanilla.

    Problem passing remote username when importing

    #161130
    Robkk
    Moderator

    @process_of_illumination

    if you are really using bbpress v1 then it wouldnt work.

    i think that shortcode is only for the newer bbpress v2 wordpress plugin

    #161128
    Robkk
    Moderator
    #161127
    Robkk
    Moderator

    without any smtp plugins activated does bbPress subscription emails work??

    #161122
    Robkk
    Moderator

    @sina_mech

    why did you put a functions.php file in your bbpress folder it wouldnt work that way.

    just place it in your themes functions.php or use a plugin like this

    https://wordpress.org/plugins/functionality/

    #161121

    In reply to: Add Custom User Roles

    Alice Kaye
    Participant

    Okay, so kind of resurrecting my old thread here, but with good reason, because something has gone wrong with the code. Today, I promoted someone (the first person to be promoted to this rank) Artisan, which I’ve hand coded into my functions.php file.

    The code:

    /* bbPress Custom Roles */
    function add_custom_role( $bbp_roles ) {
    
    $bbp_roles['bbp_craftsman'] = array(
    'name' => 'Craftsman',
    'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
    );
    $bbp_roles['bbp_journeyman'] = array(
    'name' => 'Journeyman',
    'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
    );
    $bbp_roles['bbp_adept'] = array(
    'name' => 'Adept',
    'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
    );
    $bbp_roles['bbp_artisan'] = array(
    'name' => 'Artisan',
    'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) // the same capabilities as moderator
    );
    $moderator = bbp_get_moderator_role() ;
    $bbp_roles[$moderator] = array(
    'name' => 'Councilman',
    'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) // the same capabilities as moderator
    );
    $keymaster = bbp_get_keymaster_role() ;
    $bbp_roles[$keymaster] = array(
    'name' => 'Advisor',
    'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() ) // the same capabilities as keymaster
    );
    $apprentice = bbp_get_participant_role() ;
    $bbp_roles[$apprentice] = array(
    'name' => 'Apprentice',
    'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
    );
    return $bbp_roles;
    }
    add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );
    /* bbPress Custom Roles */

    As you can see, the way I’ve written it, I had Artisan and Councilman both as moderator roles. This is really how I need it set up.

    Currently I’ve adjusted Artisan to:

    $bbp_roles['bbp_artisan'] = array(
    'name' => 'Artisan',
    'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
    );

    Because for whatever reason, when set to moderator, she could not see our forums at all.

    Is there a way to have two moderator ranks, or can there only be one? If so, where have I gone wrong with this? I’m quite confused over it now.

    Thanks in advance, you guys have been so helpful through all of my learning. šŸ™‚

    #161119
    project_subdomain
    Participant

    [WP 4.1.1
    bbp 2.5.6]

    For creating a navigation menu I need to redirect pages to the bbpress profile url as well as to their default options urls. These are domain.com/forums/users/HERE-COMES-THE-USERNAME for showing profile and domain.com/forums/users/HERE-COMES-THE-USERNAME/HERE-COMES-SELECTED-OPTION for selected options.

    I tried several ways with code like this on the page’s template file for the redirection to the profile but nothing worked yet.

    <?php /*  
    Template Name: show user profile
    */ 
    
    $name= bbp_user_profile_url(bbp_get_current_user_id() );
    
    header('Location: http://domain.com/forums/users/'.$name);
    exit();
    
    ?>

    Thanks for helping!

    #161107
    Robin W
    Moderator

    1.
    The following if added to your functions file will add fields, you can alter the coding as needed

    //add code for adding first and last name to registration
    
    //1. Add a new form element...
        add_action('register_form','myplugin_register_form');
        function myplugin_register_form (){
            $first_name = ( isset( $_POST['first_name'] ) ) ? $_POST['first_name']: '';
    		$last_name = ( isset( $_POST['last_name'] ) ) ? $_POST['last_name']: '';
            ?>
    		<p>
    		<label for="first_name"><?php _e('First Name  as people call you eg Dave','mydomain') ?><br />
                    <input type="text" name="first_name" id="first_name" class="input" value="<?php echo esc_attr(stripslashes($first_name)); ?>" size="25" /></label>
            </p>
    		<p>
                <label for="last_name"><?php _e('Last Name','mydomain') ?><br />
                    <input type="text" name="last_name" id="last_name" class="input" value="<?php echo esc_attr(stripslashes($last_name)); ?>" size="25" /></label>
            </p>
            <?php
        }
    
        //2. Add validation. In this case, we make sure first_name is required.
        add_filter('registration_errors', 'myplugin_registration_errors', 10, 3);
        function myplugin_registration_errors ($errors, $sanitized_user_login, $user_email) {
    
            if ( empty( $_POST['first_name'] ) )
                $errors->add( 'first_name_error', __('<strong>ERROR</strong>: You must include a first name.','mydomain') );
    		if ( empty( $_POST['last_name'] ) )
                $errors->add( 'last_name_error', __('<strong>ERROR</strong>: You must include a last name.','mydomain') );
    			
    
            return $errors;
        }
    
        //3. Finally, save our extra registration user meta.
        add_action('user_register', 'myplugin_user_register');
        function myplugin_user_register ($user_id) {
            if ( isset( $_POST['first_name'] ) )
                update_user_meta($user_id, 'first_name', $_POST['first_name']);
    		if ( isset( $_POST['last_name'] ) )
                update_user_meta($user_id, 'last_name', $_POST['last_name']);
        }
    

    Plenty of captcha plugins – just google ‘wordpress plugin captcha’

    If you’d like to specify your req’s further, I’ll try to help.

    2. no need to change theme, just add the following to your css file

    .site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-content {
      max-width: 100% !important;
    }

    Functions files and child themes – explained !

Viewing 25 results - 15,626 through 15,650 (of 64,454 total)
Skip to toolbar