Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 15,701 through 15,725 (of 64,517 total)
  • Author
    Search Results
  • 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 !

    #161095
    OliverEggertsen
    Participant

    I can’t seem to get my translation to work since updating to 2.5.6.

    Wordpress version: 4.1.1
    Site language: da_DK

    The forum changed to english after updating BBpress. Before that, it worked fine in Danish language.

    I’ve tried uploaded bbpress-da_DK.po and bbpress-da_DK.mo til both /wp-content/languages/bbpress and /wp-content/plugins/bbpress/bbp-languages but it still doesn’t work on frontend and backend.

    My wp-config.php is set to da_DK.

    I’ve also tried to deactivate some of the latest plugins i’ve installed but it doesn’t do it.

    Hope someone can help me solve this.

    #161094
    jayd94
    Participant

    Hello!
    I’ve been reading all the topics on the forum and i found many similar issues to my problem, but now solution worked. I disabled all plugins and tried it with default theme also.
    When someone subscribes(or creates a topic) to a topic or forum and then someone replys to it, no emails are being sent out to the guy who subscribed. Im using buddypress and bbpress newest version, and buddypress emails-like register, private message etc working, but noone of bbpress related emails are being sent out. I’m using WP SMTP now(before i was using WP MAIL SMTP, but then someone in this forum said if he changed to WP SMTP plugin it started sending, but didnt help for me), and test emails are being sent correctly also.
    Any ideas?
    Thanks,
    Daniel

    #161089
    Robin W
    Moderator

    that is entirely intentional – it lets keymasters see IP addresses to spot people who might post under several names.

    you could hide it with css

    .bbp-reply-ip {
    display : none !important ;
    }

    or amend line 512 of loop-single-reply

    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

    then take out line 51 – you may also need to do this to loop-single-topic

    or use a filter to get rid of it

    function remove_ip () {
    $author_ip = '' ;
    return $author_ip ;
    }
    
    add_filter( 'bbp_get_author_ip', 'remove_ip');
    
    jdw21
    Participant

    I’m logged in as a Keymaster and when posting in my forums, my IP address is very strange. I don’t think anyone else sees this other other other Keymasters but still, it’s a little annoying when posting and seeing it all the time. See link for screenshot of what I’m talking about:

    http://racingdudes.com/wp-content/uploads/2015/04/Screen-Shot-2015-04-14-at-8.04.18-PM.png

    Please help, I can’t seem to figure it out. Thanks!

    #161082
    thierryyyyyyy
    Participant

    I wanted to upgrade my bbPress 1.2 to the actual one. (I have last WordPress 4.1.1 with new bbPress plugin)

    I tried on a WAMP (localhost) installation, and I never got more than 1500 topics imported.
    The classic case just hang on “Converting topics (900 – 999)”

    And when I look into the apache_error.log, I see that apache crashes and restart alone.
    And I tried with apache 2.4.2 and 2.4.9

    I tried to click “stop” and again “start” as I read on this forum. But I get hung with “Starting Conversion” and apache restarts also. I just can see that the import process did a small step more by typing the sql query :”select count(*) from wp_bbp_converter_translator”

    in this topic, “e-motion” succeeded. He just clean install wordpress, and import…
    https://bbpress.org/forums/topic/upgrade-bbpress-1-0-2-to-2-1-2/page/3/#post-140785
    Am I missing something ?

    #161081
    redwolf83
    Participant

    Thanks, that is very helpful, but it change roles globally. I need it for a specific forum.

    • is possible call these actions to an existing role?
    • and is possible call them only for a specific forum

    I tried this but seems not work…. :/

    // BBPRESS ROLES CONFIG FOR SPECIFIC FORUM
    
    if ( bbp_forum_title(); == "My Forum Title" ) {
    
    	function add_role_caps_filter( $caps, $role )
    	{
        	/* Only filter for roles we are interested in! */
        	if( $role == 'participant' )
            	$caps = custom_capabilities( $role );
     
    	    return $caps;
    	}
     
    	add_filter( 'bbp_get_caps_for_role', 'add_role_caps_filter', 10, 2 );
     
    	function custom_capabilities( $role )
    	{
        	switch ( $role )
        	{
     
            	/* Capabilities for 'tutor' role */
            	case 'participant':
               	 return array(
                    	// Primary caps
                   		'spectate'              => true,
                    	'participate'           => true,
                    	'moderate'              => false,
                    	'throttle'              => false,
                    	'view_trash'            => false,
     
                    	// Forum caps
                    	'publish_forums'        => false,
                    	'edit_forums'           => false,
                    	'edit_others_forums'    => false,
                    	'delete_forums'         => false,
                    	'delete_others_forums'  => false,
                    	'read_private_forums'   => false,
                    	'read_hidden_forums'    => false,
     
                    	// Topic caps
                    	'publish_topics'        => false,
                    	'edit_topics'           => false,
                    	'edit_others_topics'    => false,
                    	'delete_topics'         => false,
                    	'delete_others_topics'  => false,
                    	'read_private_topics'   => false,
     
    	                // Reply caps
    	                'publish_replies'       => true,
                    	'edit_replies'          => true,
                    	'edit_others_replies'   => false,
                    	'delete_replies'        => true,
                    	'delete_others_replies' => false,
                    	'read_private_replies'  => false,
     
                    	// Topic tag caps
                    	'manage_topic_tags'     => false,
                    	'edit_topic_tags'       => false,
                    	'delete_topic_tags'     => false,
                    	'assign_topic_tags'     => false,
               	 );
     
                	break;
     
            	default :
               	return $role;
        		}
    	}
    }
    #161079
    Robin W
    Moderator
    williamavon
    Participant

    Hi – I installed bbpress, thinking about adding forum. Changed mind. Deleted plug in, but now I can’t access wordpress admin. Error message upon log in attempts reads “you do not have sufficient permissions…”. If I reinstall/activate bbpress, I can log into my site as normal. Please help, I need the plug in removed. Have a great day and thank you in advance.

    #161076
    MattConway
    Participant

    Hello,

    My site http://www.walthamforestforum.org is coming together OK. I’m using the 2014 theme. However I’ve got a couple of things I am stuck on and wondered if anyone could help me.

    A – I would like new users to be able to register themselves, but with more detail than the standard sign up form allows, i.e. a few custom fields (that will hopefully show up everytime they post) and a recaptcha field. The Profile Builder plug in looks quite good but a bit expensive I think for such a simple requirement. Do some themes have better register pages built in?

    A – 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?

    thesocialrefugee
    Participant

    WordPress version: 4.1.1
    bbPress version: 2.5.4

    Sample Image

    Looking to have the forum profile displayed within the “Forum Account” tab.

    Additionally will like to modify the link of when a user clicks his own name/avatar to view his profile to lead it to this page.

    Thank you.

    #161070

    In reply to: bbPress 2.5.5

    Rohit Mewada
    Participant

    After I update BBPress I got an error.
    Warning: in_array() expects parameter 2 to be array, null given in /home4/my website/wp-content/plugins/bbpress/includes/common/functions.php on line 1446

    Please help to solv. I have no coding knowlage.

    #161068
    sina_mech
    Participant

    Thank you for your reply. I have “bbpress” folder in MY_THEME folder. I added a functions.php file in that bbpress folder, and inserted your code, and saved. but nothing happened šŸ™ Am I doing it right?

Viewing 25 results - 15,701 through 15,725 (of 64,517 total)
Skip to toolbar