Search Results for 'bbpress'
-
AuthorSearch Results
-
April 16, 2013 at 3:20 am #133293
In reply to: Importing bbpress forum
Stephen Edgar
KeymasterHow about I close this topic and we can keep it all in this single topic 😉
April 16, 2013 at 3:19 am #133292In reply to: Moving to a new WordPress site
Stephen Edgar
KeymasterI 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?
April 16, 2013 at 3:16 am #133291Stephen Edgar
KeymasterPresuming 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.
April 16, 2013 at 3:10 am #133290In reply to: Roles and Capabilities in bbPress 2.2
Earthman Media
ParticipantThanks, 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.
April 16, 2013 at 3:09 am #133289In reply to: bbPress 2.3 now available!
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.
April 16, 2013 at 2:59 am #133288In reply to: Roles and Capabilities in bbPress 2.2
John James Jacoby
KeymasterNot entirely sure how you arrived at that solution, but I can’t imagine any of it ever working correctly. 🙂
The
wpaction happens before WP_Roles is called, so it’s too soon in the stack. You’re also missing a bunch of sanity checks thatbbp_set_current_user_default_rolealready does for you; no sense in duplicating only some of that work.You could try hooking into
initbut, 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_useraction, to see ifbbp_set_current_user_default_roleis 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 );April 16, 2013 at 2:48 am #133287In reply to: Roles and Capabilities in bbPress 2.2
Earthman Media
ParticipantWell 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 ); } }April 16, 2013 at 2:31 am #133285In reply to: Topic and Forum archive
Stephen Edgar
KeymasterI 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/`.
April 16, 2013 at 2:26 am #133284In reply to: bbPress 2.3 now available!
ArcticFritid
ParticipantLooks 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 1503April 16, 2013 at 2:24 am #133283In reply to: Roles and Capabilities in bbPress 2.2
Earthman Media
ParticipantThanks 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.
April 16, 2013 at 2:20 am #133282In reply to: Roles and Capabilities in bbPress 2.2
John James Jacoby
Keymaster/wp-content/plugins/bbpress/includes/users/capabilities.phpThanks 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.
April 16, 2013 at 2:19 am #133281In reply to: Roles and Capabilities in bbPress 2.2
Earthman Media
ParticipantThanks 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!
April 16, 2013 at 2:14 am #133276In reply to: Roles and Capabilities in bbPress 2.2
John James Jacoby
Keymaster@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.
April 16, 2013 at 2:10 am #133275In reply to: Multisite Error
John James Jacoby
KeymasterTry 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.
April 16, 2013 at 2:06 am #133273In reply to: Roles and Capabilities in bbPress 2.2
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.
April 16, 2013 at 2:05 am #133271In reply to: Roles and Capabilities in bbPress 2.2
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.
April 16, 2013 at 2:03 am #133270Stephen Edgar
KeymasterThe new shortcode is actually [bbp-stats] https://codex.bbpress.org/shortcodes/
April 16, 2013 at 2:00 am #133269In reply to: Roles and Capabilities in bbPress 2.2
Earthman Media
ParticipantIf 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?
April 16, 2013 at 2:00 am #133268In reply to: bbPress 2.3 now available!
John James Jacoby
Keymaster@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. 🙂
April 16, 2013 at 1:55 am #133267In reply to: 404 simple redirect with bbpress
John James Jacoby
Keymasteri 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.
April 16, 2013 at 1:51 am #133266In reply to: Importing bbpress forum
Stephen Edgar
KeymasterI 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?
April 16, 2013 at 1:49 am #133265In reply to: bbPress 2.3 now available!
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?
April 16, 2013 at 1:44 am #133262In reply to: TAGContent error
Stephen Edgar
KeymasterI 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/
April 16, 2013 at 1:39 am #133261In reply to: 404 simple redirect with bbpress
clickmac
Participanti seem to be a newbie at this, can you please walk me through the steps?
April 16, 2013 at 1:35 am #133260In reply to: 404 simple redirect with bbpress
John James Jacoby
Keymaster@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.
-
AuthorSearch Results