Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 26,226 through 26,250 (of 64,743 total)
  • Author
    Search Results
  • #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.

    #133271
    Stephen Edgar
    Keymaster

    @earthman100 If you just want to map them manually you can do this from the WordPress ‘Users’ admin panel though you need to be using bbPress 2.3.

    Stephen Edgar
    Keymaster

    The new shortcode is actually [bbp-stats] https://codex.bbpress.org/shortcodes/

    #133269
    Earthman Media
    Participant

    If you create the user, it doesn’t assign them a role right away. They’ll get role mapped once they login to the site, or once you assign them a role.

    In theory, but in a site using iMember360 and Infusionsoft, the user creation bypasses the standard WordPress hooks. So does logging in. Which leaves me with users who are subscribers but do not get a “Participant” role.

    I have been looking for documentation for how you are “mappping” them to a role as you mention, but can’t find any. Where are the roles stored now, please, and do you have an easy function I can call on a different hook so I can “map” them manually, please?

    #133268

    @premitheme – I’ve used and tested with PHP 5.2/5.3/5.4 without incident.

    The “Are you sure you wanted to do that?” errors come from nonce requests failing inside of the `bbp_verify_nonce_request()` function. My guess is the `$requested_url`, `$matched_url`, and `$home_url` are coming up with some kind of mismatch, causing `$result` to return `false` and the nonce check to fail.

    It’s also possible that the parsing and comparisons in `bbp_verify_nonce_request()` could use improvement. This function was modified in 2.3 to allow for reverse-proxying, which may have broken some other type of URL. If so, would love your help there. 🙂

    #133267

    i seem to be a newbie at this, can you please walk me through the steps?

    You’ll want to search bbPress’s files for the above function, and test to make sure it’s working correctly. If you’re operating a site as the main developer, you’ll want to know how to touch files on the server (with an code editor, FTP program, etc…)

    Then, you’ll want to search the web for common PHP debugging techniques (var_dump(), echo(), die(), debug_backtrace(), etc…) so you can gain a better understanding of how the code you’re trusting to make your site function works.

    This is one of those times where, hopefully, a little tough love will pay in dividends for you later.

    #133266
    Stephen Edgar
    Keymaster

    I moved your topic to a new thread as it isn’t related to the one you replied to.

    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?

    #133265
    premitheme
    Participant

    @johnjamesjacoby So, when I’m working on bbpress on MAMP (not pro) and while I’m working, I found the 2.3 update notice, then I hit “update now” link. After the update I just tried to post topics or replies and all what I get is the “Are you sure …” ERROR. What is the reason in your opinion?

    The update works good on XAMPP for example as well as the build-in localhost I setup on mac, I just wonder what’s happened, is it bug in the code? MAMP configuration issue? php version?

    #133262

    In reply to: TAGContent error

    Stephen Edgar
    Keymaster

    I have only had access to test vBulletin 4.x to test importing into bbPress.

    Does vBulletin 3.8.x support topic tags at all?

    Also this doc has any other known issues https://codex.bbpress.org/import-forums/vBulletin/

    #133261
    clickmac
    Participant

    i seem to be a newbie at this, can you please walk me through the steps?

    #133260

    @clickmac – You can check the results of `bbp_user_has_profile()` to make sure they are returning `true`. This is the only place in bbPress where it would specifically prevent a user’s profile from being visible (and instead invoke a 404 response) though it seems unlikely to be the cause.

    #133259
    realhood
    Participant

    @netweb you can check it out on my testwebsite  http://realhood.xicp.net/forums

    leave your email,  I will send a account to you if smile..

    #133255
    clickmac
    Participant

    i am using Version 2.3

    try clicking on
    andynight

    at
    http://www.trottyzone.com/forums/forum/website-support/

    i am also using wordpress
    Version 3.5.1

    #133254

    What happens if you try a normal WordPress theme (twentyten, twentyeleven, twentytwelve?)

    Something tells me a plugin or your theme is filtering the topics query, resulting in it returning 0 results.

    #133251
    fuseful
    Participant

    this was the cause of my problem – if u do hear back from the developer or perhaps include this as standard would be great if u could update this thread

Viewing 25 results - 26,226 through 26,250 (of 64,743 total)
Skip to toolbar