Search Results for 'bbpress'
-
AuthorSearch Results
-
August 28, 2015 at 7:48 am #165973
In reply to: Add/Change User roles
sbskamey
ParticipantHi Robkk, I’d like to change the capabilities for the roles, so I think adding the new roles would be better.
When I move my code to my Child Theme, my website goes blank.
Do you know if theres something that I’m missing?
This is my Child Theme with the 3 new role and new capabilities in it… (when I add this code to the core bbpress files, it works, but now that I moved it to my Child Theme, my site goes blank).
<?php // enqueue the child theme stylesheet Function wp_schools_enqueue_scripts() { wp_register_style( 'childstyle', get_stylesheet_directory_uri() . '/style.css' ); wp_enqueue_style( 'childstyle' ); } add_action( 'wp_enqueue_scripts', 'wp_schools_enqueue_scripts', 11); //code to add roles function add_new_roles( $bbp_roles ) { /* Add a role called team member */ $bbp_roles['bbp_teammember'] = array( 'name' => 'Team Member', 'capabilities' => custom_capabilities( 'bbp_teammember' ) ); /* Add a role called teammember */ $bbp_roles['bbp_communitymember'] = array( 'name' => 'Community Member', 'capabilities' => custom_capabilities( 'bbp_communitymember' ) ); /* Add a role called ambassador */ $bbp_roles['bbp_ambassador'] = array( 'name' => 'Ambassador', 'capabilities' => custom_capabilities( 'bbp_ambassador' ) ); return $bbp_roles; } add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 ); function add_role_caps_filter( $caps, $role ) { /* Only filter for roles we are interested in! */ if( $role == 'bbp_teammember' ) $caps = custom_capabilities( $role ); if( $role == 'bbp_communitymember' ) $caps = custom_capabilities( $role ); if( $role == 'bbp_ambassador' ) $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 'teammember' role */ case 'bbp_teammember': return array( // Primary caps 'spectate' => true, 'participate' => true, 'moderate' => true, 'throttle' => true, 'view_trash' => true, // Forum caps 'publish_forums' => true, 'edit_forums' => true, 'edit_others_forums' => true, 'delete_forums' => true, 'delete_others_forums' => true, 'read_private_forums' => true, 'read_hidden_forums' => true, // Topic caps 'publish_topics' => true, 'edit_topics' => true, 'edit_others_topics' => true, 'delete_topics' => true, 'delete_others_topics' => true, 'read_private_topics' => true, // Reply caps 'publish_replies' => true, 'edit_replies' => true, 'edit_others_replies' => true, 'delete_replies' => true, 'delete_others_replies' => true, 'read_private_replies' => true, // Topic tag caps 'manage_topic_tags' => true, 'edit_topic_tags' => true, 'delete_topic_tags' => true, 'assign_topic_tags' => true, ); /* Capabilities for 'communitymember' role */ case 'bbp_communitymember': 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' => true, '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' => false, 'edit_others_replies' => false, 'delete_replies' => false, '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' => true, ); /* Capabilities for 'ambassador' role */ case 'bbp_ambassador': 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' => true, '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' => false, 'edit_others_replies' => false, 'delete_replies' => false, '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' => true, ); break; default : return $role; }August 28, 2015 at 3:33 am #165970vcb
ParticipantHi Robkk,
thanks for pointing this out.
I’ve just installed the entire WP + bbpress from scratch, without success.
Everything does work – beside “publishing” the forum to frontend. within backend the forum gets published, also publishing as admin (via script) doesn’t change a thing.Thanks, I’ll keep on searching. There is no need to spam my DB. Everything works.
This is an Publish/Update issue. bbpress itself runs perfect without issues at all.Any further suggestion is very welcome, thanks.
August 28, 2015 at 3:22 am #165969In reply to: SMF Import to bbPress
donchulio
ParticipantHi Stephen,
is there any way to get a little support from you? I am not very firm in php/mysql and I need to import data to bbPress from my SMF forum. Maybe we could get in touch for a little chat? I think its nothing big for you but for me its rocket science. 😉
The import is working (except of the attachments) but the text is losing his style and there a lots of “<tt>” in the text after the import.
I would be very happy, if we can talk to each other to solve this problem. I really want to use bbPress with my community now! 🙂
Here you can see the problems: http://v2.germansimracing.de/community/
Just open one of the threads and you will see the different fonts etc.August 28, 2015 at 3:21 am #165968sivaramapandian
Participanthi friends,
Me too, breadcrumb is not showing only in forum pages.
Previously i had WordPress SEO plugin. Now disabled that too. But still i am not getting breadcrumb. No code is done. Latest bbpress has been installed as it is.
Please help
Thanks
August 28, 2015 at 3:03 am #165967In reply to: Problem with bbpress and wp security
Martijn
ParticipantWell, the issue is that when I’m using the BBpress plugin, when I log in on mysite.com/*newadmin*
It redirects me to the homepage. Upon returning to the same link it requires me to fill in my login again.
Only after I logged in, I can go to /wp-admin to get into the Dashboard.This issue is not happening when the BBpress plugin is inactive.
No, we don’t know is also an answer. Then we can look for an alternate solution to what we want.
August 28, 2015 at 1:08 am #165964In reply to: SECURITY ISSUE: participant e-mails visible in BCC
pazzaglia
ParticipantRob thanks for the plug-in, which I will use immediately, BUT how is it that it’s not considered a security issue to be giving out “confidential” e-mail addresses Via the BCC field?
It’s a big breach of privacy.
This should be fixed at the core! When spammers get wind of this all they need to do is reply or subscribe to a post topic to snag e-mail addresses of participants. They will.
I don’t want my e-mail address given away and both the BBPress forums and WordPress forums appear NOT to do this while the the default behavior of this application on any other wordpress installation DOES.
Please consider this carefully for addition into the WordPress core.
Ciao,
L
August 27, 2015 at 11:21 pm #165963In reply to: plugin Button to create new topic
erich199
ParticipantI”ve been reading these topic about “new topic button” and I’m just curious why this isn’t included in the plugin? Most major forums have this feature and when I click on “Start Topic” I don’t have to choose the forum where I want the topic posted. So if I click on “start new topic” in the “General Discussions” forum, it post the topic there. I don’t have to select where to post the topic.
Would love to see this feature in future releases. Thanks for the hard work on bbpress.
August 27, 2015 at 11:13 pm #165962Robkk
ModeratorYou may need to hire a developer to do the import for you. Devs seem busy working on other aspects of bbPress and importing in general. And for me importing is a huge learning curve.
I guess you can also wait it out with phpBB still until we fix the importer in 2.6.
August 27, 2015 at 11:04 pm #165959In reply to: SMF Import Help Needed
Robkk
ModeratorSorry, I forgot all about your topic. Whenever I contacted the devs awhile ago, they were very busy with other bugs, tasks, tests. It might be best to hire a developer for the import as we are being backed up with other things in the bbPress plugin. Stephen might come and reply to your posts in sometime, but maybe not soon as I explained they seem busy.
You may also need to wait it out with SMF until we get the issues with the importer resolved.
August 27, 2015 at 10:35 pm #165955In reply to: SECURITY ISSUE: participant e-mails visible in BCC
Robkk
ModeratorMaybe not using BCC at all would help, plus this delivers emails through the wp-cron to make sending emails more efficient and make the emails most likely not end up in the spam folder.
https://wordpress.org/plugins/asyncronous-bbpress-subscriptions/
August 27, 2015 at 9:45 pm #165953Robkk
ModeratorIts some pagination code inherited from the template bbPress is using for its pages.
You might need to create a bbpress.php file from the file bbPress is inheriting from and place it in your child theme and also remove any post meta like the by that is usually for displaying the author of a blog post.
If you are using Genesis, I think installing the bbPress Genesis Extend plugin will solved most bbPress layout issues.
August 27, 2015 at 9:40 pm #165952btint
ParticipantHello,
My Forum is creating multiple pages, yet they all fit on one page. At the bottom of the forums page, it is listing 4 pages. However clicking each page brings the exact same content.
http://awesomedynamicacademy.com/forums/
Using Bbpress 2.5.8
Using WP 4.3August 27, 2015 at 9:20 pm #165951In reply to: Define new custom topic status
Robkk
ModeratorIf you have a support forum this plugin will help you add additional topic statuses like resolved.
https://wordpress.org/plugins/buddy-bbpress-support-topic/
This one too.
August 27, 2015 at 8:43 pm #165949In reply to: Add/Change User roles
Robkk
Moderatorthis is great. thanks Robkk. Just one question… Do I put this into the bbpress.php file in the bbpress folder?
No. Also the bbpress.php file should be in the root of your theme.
I added it here: wp-content/plugins/bbpress/templates/default/bbpress
Just checking if that is correct?
Don’t mess with any core files.
Okay so I put the above code in here and it seems to work:
plugins > bbpress > includes > users
Again, just checking if that is correct?
Don’t mess with any core files.
Here, I forgot I did this a while back. Add this to your functions.php file in your child theme.
function rk_show_role_classes($classes) { $replyid = bbp_get_reply_author_id(); $bbp_get_role = bbp_get_user_display_role($replyid); $bbp_display_role = strtolower($bbp_get_role); $classes[] = $bbp_display_role; return $classes; } add_filter( 'bbp_get_topic_class','rk_show_role_classes' ); add_filter( 'bbp_get_reply_class','rk_show_role_classes' );Do the CSS I said before for the above code.
It would be something like this but for each role.
.ambassador .bbp-author-role { background-color: blue; }And if you do not need custom roles but instead just role names, lets say for each role it would be like this.
Keymaster -> Ambassador
Moderator -> Team Member
Participant -> Community MemberYou can just change the role names using this function. Add it to your child themes functions.php file. And rename My Custom Role to what you want.
add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' ); function ntwb_bbpress_custom_role_names() { return array( // Keymaster bbp_get_keymaster_role() => array( 'name' => 'My Custom Keymaster Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() ) ), // Moderator bbp_get_moderator_role() => array( 'name' => 'My Custom Moderator Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) ), // Participant bbp_get_participant_role() => array( 'name' => 'My Custom Participant Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) ), // Spectator bbp_get_spectator_role() => array( 'name' => 'My Custom Spectator Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_spectator_role() ) ), // Blocked bbp_get_blocked_role() => array( 'name' => 'My Custom Blocked Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_blocked_role() ) ) ); }Oh and quit trying to copy Ultimate Members site, try to have a unique website.
August 27, 2015 at 7:38 pm #165948Robkk
ModeratorYou may need to run some repair tools like Lynq did in this plugin.
Running more than one repair tool can be resource intensive so be careful.
August 27, 2015 at 7:25 pm #165946In reply to: bbpress not logout
Robkk
ModeratorWhen I contacted the devs yesterday, one of them said that they haven’t come across this issue lately, and also if WordPress was installed in a subfolder.
They said a possible issue is that there might be some caching where it shouldn’t be.
I replied and said that I will at least keep this bug, that you and some other guys are experiencing, as a possible issue with bbPress. I will also report back to the devs if it happens to another user again, then we can go to bug finding from there.
August 27, 2015 at 7:02 pm #165944Robkk
ModeratorBut its not contained in a nice neat pop-up box like here in bbpress’s sub-header bar.
That is a modified WordPress toolbar slipped under the header.
Is there a way to include registration link inside the login widget? or is there a registration widget?
There should be some settings in the widget to input a registration link and a forgot password link too.
August 27, 2015 at 5:57 pm #165942Brovashift
ParticipantHi Robkk,
Thanks for getting back to me re my login/reg issue.
The plugin you sent looks good, but ideally Id like to handle the login/registration natively.
I have added the bbp-login / bbp-register on a single page, which works to some extent, looks kinda basic. But its not contained in a nice neat pop-up box like here in bbpress’s sub-header bar.
More importantly, there is no Logout! Do I need another shortcode for that? [bbp-logout] maybe?
Thanks for your help
Rob
August 27, 2015 at 6:18 am #165933Topic: Define new custom topic status
in forum Showcasebegona.alvarezd
ParticipantHello all!
I would really like to find a way to create a new topic status.
Unfortunately, bbpress for resolved topics just has closed status, that actually disables the option to post in that topic for normal customers. I would really like to achieve a way to have an additional custom status like resolved, that is not closed and allows my moderators to organize properly.
Is there a way to hook a topic status? I would really prefer it than hacking bbpress and didn’t figure out how to make it. My idea is declaring it in bbpress.php but is not a beautiful solution.
Any idea?
August 27, 2015 at 5:09 am #165930In reply to: Add/Change User roles
sbskamey
ParticipantOkay so I put the above code in here and it seems to work:
plugins > bbpress > includes > users
Again, just checking if that is correct?
Now to change the background colours, god that’s gonna take me another 2 days! :p
August 27, 2015 at 4:13 am #165929In reply to: Add/Change User roles
sbskamey
ParticipantI added it here: wp-content/plugins/bbpress/templates/default/bbpress
Just checking if that is correct?
August 27, 2015 at 3:41 am #165926pazzaglia
ParticipantWhen I receive a default e-mail alert of a topic or reply from BBPress, if I view the e-mail’s full header the e-mail addresses of all the subscribed users in that topic are visible.
This is not just the admin alerts, also users are seeing this.
Please fix!!
August 27, 2015 at 3:28 am #165925In reply to: Add/Change User roles
sbskamey
Participantthis is great. thanks Robkk. Just one question… Do I put this into the bbpress.php file in the bbpress folder?
August 27, 2015 at 2:07 am #165923Topic: How can I make my own translation files?
in forum InstallationEslam Yosef
ParticipantHi,
I’m making a multi-languages website, and I’m starting with English (original), Arabic and Chinese. My team includes original speakers of each language so we can have a good view of which words are for humans and which are not.
The Arabic translation (which located here) is suck .. really!
I tried to edit the translation and download the new files, but I can’t because there’s a current translation I don’t want it.
Since I can’t create the file myself, my question is:
How can I make my own translation in the same way and download only what I translated?
Thanks in advance!
August 26, 2015 at 9:43 pm #165915In reply to: Problem with bbpress and wp security
Robkk
ModeratorOkay I just renamed the login page using the AIO security and firewall plugin. I have bbPress enabled but do not see an issue.
You said this on the topic you linked to.
We want users to be able to register and comment etc. but we want to keep them out of the wp-dashboard completely. So we have a alternate profile page etc. and are denying access for all nor administrator & editor users. I don’t know if this might have an effect on these things.
What are you using to lock them out of the dashboard?
-
AuthorSearch Results