Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 26,201 through 26,225 (of 64,732 total)
  • Author
    Search Results
  • Stephen Edgar
    Keymaster

    Cool… Fix is in 🙂 Also updated https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    #133305
    premitheme
    Participant

    Okay, not sure if this is the reason, but after your last reply a searched a little bit, found this ticket https://bbpress.trac.wordpress.org/ticket/2070 and started to think that it’s a problem in the URL.

    The only difference between XAMPP and MAMP (free) is that XAMPP uses “localhost” host name, while MAMP (free) uses “localhost:8888” when using MAMP ports by default (MAMP pro uses “localhost” that tell why it works OK with you). So I went to MAMP preferences and changed the ports settings to use default Apache and MySQL ports to use “localhost” instead of “localhost:8888”, and finally posting topics and replies is available again 🙂

    Even better I setup a virtual hostname manually in MAMP (free) and the everything works fine.

    I hope this will help others with the same issue with MAMP (free). Thanks for your time @johnjamesjacoby and @netweb, great work and keep it up.

    #133303
    ovizii
    Participant

    @kraigg:

    same problem here, none of my users except key masters can post or reply. I have been using User Role Editor in the past, any advice on how you fixed your problem?

    #133302
    Stephen Edgar
    Keymaster

    Excellent, glad we have some progress, now to hope that bbPress Moderation plugin will get an update soon.

    p.s. I also changed this topic title to include bbPress Moderation Plugin.

    #133301
    Stephen Edgar
    Keymaster

    Are you using the latest bbPress 2.3?

    What version of vBulletin are you using? I have only tested vBulletin 4.x

    Here is the list of known issues with vBulletin https://codex.bbpress.org/import-forums/vBulletin/

    #133298
    Stephen Edgar
    Keymaster

    Can you update to the newly released bbPress 2.3 and let us know if the problem persists.

    #133297
    Stephen Edgar
    Keymaster

    Jump back in time to bbPress 2.1 Twenty Ten templates, they specifically used tables for forums, topics & replies. You want to have a close look at the loop-*.php templates.
    https://bbpress.trac.wordpress.org/browser/tags/2.1/bbp-themes/bbp-twentyten/bbpress

    #133296
    Jkum
    Participant

    Yeah, deactivating bbPress Moderation plugin solved the entire problem – Thanks a lot!

    #133295
    Stephen Edgar
    Keymaster
    #133294

    In reply to: members activity

    Stephen Edgar
    Keymaster

    I don’t know of any bbPress specific plugin that can do this but there might be one that does something similar for standard WordPress Users/Subscribers/Authors etc.

    I suggest having a search of WordPress Extend and if your in luck such a plugin may exist and may even work with bbPress.

    https://wordpress.org/extend/plugins/

    #133293
    Stephen Edgar
    Keymaster

    How about I close this topic and we can keep it all in this single topic 😉

    Moving to a new WordPress site

    #133292
    Stephen Edgar
    Keymaster

    I presume you are meaning the built in WordPress Export tool /wp-admin/export.php

    I presume you are you exporting ‘All Content’ rather than forums, topics, replies individually?

    After you have performed the import do you run the bbPress’ repair tools?

    #133291
    Stephen Edgar
    Keymaster

    Presuming you are going to take ‘Approach 1’ then that links you to this doc:
    https://codex.buddypress.org/user/buddypress-site-administration/migrating-from-old-forums-to-bbpress-2/

    That looks good to me but I would not start that without both a site & SQL backup.

    #133290
    Earthman Media
    Participant

    Thanks, that worked! Given that my client is launching in the AM, he and I *both* appreciate your help.

    In regards to debugging the reason why that hook is not being called – I think I will post this on to iMember360 and let them look at *that* one.

    Again, thanks a bunch – I can finally go to bed now.

    #133289
    hlwinkler
    Participant

    @hlwinkler Can you try your search ‘OpenEars’ using the Twenty Eleven or Twenty Twelve theme.

    I tried it with Twenty Twelve and it worked fine.

    #133288

    Not entirely sure how you arrived at that solution, but I can’t imagine any of it ever working correctly. 🙂

    The wp action happens before WP_Roles is called, so it’s too soon in the stack. You’re also missing a bunch of sanity checks that bbp_set_current_user_default_role already does for you; no sense in duplicating only some of that work.

    You could try hooking into init but, again, I suspect something in the iMember360 plugin is interfering and won’t allow that to work correctly either.

    You *should* actually be debugging the setup_current_user action, to see if bbp_set_current_user_default_role is even firing, and if it is, where it’s failing.

    If you’re looking for a brute-force kludge, something like this is probably closer to what you need:

    function earthman_force_current_user_caps() {
    	global $current_user;
    
    	// Only for logged in users
    	if ( ! is_user_logged_in() )
    		return;
    
    	// Reload the current user with correct capabilities
    	$current_user = bbpress()->current_user = get_user_by( 'id', bbp_get_current_user_id() );
    
    	// Try to give them a role on the site, if they need one
    	bbp_set_current_user_default_role();
    }
    add_action( 'bbp_template_redirect', 'earthman_force_current_user_caps', -99 );
    #133287
    Earthman Media
    Participant

    Well I got this far, but every time I try to call the function you suggested, or try to add the role manually, it breaks. Any ideas what I might be missing, please?

    
    add_action( 'wp', 'bbp_check_user_role_on_load' );
    function bbp_check_user_role_on_load() {
    	global $user_ID;
    	
    	//do they have a role set already?
    	$has_bbp_role = bbp_get_user_role( $user_ID );
    	if(!$has_bbp_role){ //nope, add default BBP role 
    	
    		//tried this but it breaks it
    		//bbp_set_current_user_default_role();
    	
    		// Load up bbPress once
    		$bbp = bbpress();
    		$new_role = 'participant';
    		
    		//this breaks too - wtf?
    		//$bbp->current_user->add_role( $new_role );
    		
    	}	
    }
    #133285
    Stephen Edgar
    Keymaster

    I was playing about with this earlier related to a different issue ttrying to recreate another bug but could not recreate the issue and have no problems using a custom `archive-topic.php` file in eg. `/wp-content/themes/twentytwelve/bbpress/`.

    #133284
    ArcticFritid
    Participant

    Looks better and better, BUT it crash my feeds:
    Warning: Illegal offset type in /home/XXXXX/public_html/wp-content/plugins/bbpress/includes/common/functions.php on line 1503

    #133283
    Earthman Media
    Participant

    Thanks for that.

    I’m guessing they are worried about ‘breaking’ millions of sites. While I am sure you are exceptionally diligent, even with the relatively small community BBpress has, you are already seeing edge cases here that you hadn’t imagined. With custom Roles and Caps and so many plugins to contend with, I’m sure there are a *few* more in the WP community.

    #133282

    /wp-content/plugins/bbpress/includes/users/capabilities.php

    Thanks for the kind words. WordPress core doesn’t need a ton of work in this regard; a few small fixes would go a long way.

    #133281
    Earthman Media
    Participant

    Thanks for pointing me in the right direction John – what file do I find that in please?

    To be honest, I haven’t dove right into the inner workings of iMember360 plugin yet, to understand fully what they are doing to create users/log people in, but I do know that it isn’t playing well with what you have done.

    Thanks for finally getting the roles sorted, excellent work! Now when the WP core team gets Roles/Caps sorted we will be laughing!

    #133276

    @earthman100 – Search for `bbp_set_current_user_default_role` – it’s hooked to `bbp_setup_current_user`, which is hooked to `setup_current_user`, which seems odd that any plugin would bypass completely, since pretty much everything a user does is linked to it.

    Which is to say, I don’t think manually handling the login or user-creation process is the problem; I think this plugin is `_doing_it_wrong()` by invoking the current user far too early, before bbPress ever has a chance to hook in.

    #133275

    In reply to: Multisite Error

    Try updating to bbPress 2.3. I’m not able to duplicate this using the latest version, using either the wp-signup.php way, or via the Network admin area.

    #133273
    Earthman Media
    Participant

    @Stephen – I don’t want to map them manually – Sorry, my wording was incorrect.

    What I meant in my post is that I want to create an Automated Function to tie into a hook when they enter the site, because the Login Hook is not being fired.

    I need to know what BBpress function to call to assign them a role in BBpress, please.

Viewing 25 results - 26,201 through 26,225 (of 64,732 total)
Skip to toolbar