Search Results for '+.+default+.+'
-
Search Results
-
Hello,
I am running bbPress v2.5.12 on WordPress 4.7 with a child theme I’ve developed based on Imaginem Themes’ Sentric Theme.
The problem:
In my child theme’s functions, I have added the following code to make two custom roles, Professional and Member, for my Q&A/”Ask the Expert”-style forum called “Ask a Professional.” Essentially, Members can make threads asking questions, but only screened Professionals have the ability to reply and provide answers.I want everyone to automatically be assigned the Member role upon registration. Then I can manually “upgrade” their roles to Professional once they’ve been successfully screened. However, when a user registers and logs in, they inherit Member capabilities, but are not assigned the Member role. Manually selecting the user and assigning them the Member role doesn’t work; their role immediately reverts back to “— No role for these forums —”

When I select the user and manually assign the Participant role, the role “sticks” — meaning, it doesn’t revert back to “No Role.” However, the “Member” capabilities remain.

Does anyone know why this problem persists and how to fix it? This is the final thing that needs to be ironed out before my site goes live. 🙂 Thank you!
//code to add custom roles function add_new_roles( $bbp_roles ) { /* Add a role called professional */ $bbp_roles['bbp_professional'] = array( 'name' => 'Professional', 'capabilities' => custom_capabilities( 'bbp_professional' ) ); /* Add a role called member */ $bbp_roles['bbp_member'] = array( 'name' => 'Member', 'capabilities' => custom_capabilities( 'bbp_member' ) ); 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_professional' ) $caps = custom_capabilities( $role ); if( $role == 'bbp_member' ) $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 'professional' role */ case 'bbp_professional': return array( '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' => true, 'read_hidden_forums' => true, // Topic caps 'publish_topics' => true, 'edit_topics' => true, 'edit_others_topics' => false, 'delete_topics' => true, 'delete_others_topics' => true, 'read_private_topics' => true, // Reply caps 'publish_replies' => true, 'edit_replies' => true, 'edit_others_replies' => false, 'delete_replies' => false, 'delete_others_replies' => false, '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 'member' role */ case 'bbp_member': 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' => true, 'read_hidden_forums' => false, // Topic caps 'publish_topics' => true, 'edit_topics' => true, 'edit_others_topics' => false, 'delete_topics' => false, 'delete_others_topics' => false, 'read_private_topics' => true, // Reply caps 'publish_replies' => false, 'edit_replies' => false, 'edit_others_replies' => false, 'delete_replies' => false, 'delete_others_replies' => false, 'read_private_replies' => true, // Topic tag caps 'manage_topic_tags' => false, 'edit_topic_tags' => false, 'delete_topic_tags' => false, 'assign_topic_tags' => false, ); break; default : return $role; } }Troubleshooting:
- I’ve tried to disable plugins and see if any of them are causing this issue. This hasn’t yielded any different results.
- I’ve checked with the Twenty Sixteen and Twenty Seventeen theme.
Dear Friends,
I’m using WP 4.7 and bbPress 2.5.12. I’m using the importer under Tools->Forums->Import forums to import a MyBB Forum (version 1.6), with 4000 topics, 50.000 messages, and 3000 users.
The performance is Ok, it takes two hours more or less. The problem, is that at certain point, the message Conversion complete is displayed, and certainly, the users / topics count is the right one. And then, without my interaction, it starts again.
I’m not sure if this “second pass” is the normal procedure, or it is an error.
Any help would be very appreciate.
That’s the output of my last attempt
Calculating forum hierarchy (0 - 999)Converting forums (0 - 999)Delete users WordPress default passwords (5000 - 5999)Delete users WordPress default passwords (4000 - 4999)Delete users WordPress default passwords (3000 - 3999)Delete users WordPress default passwords (2000 - 2999)Delete users WordPress default passwords (1000 - 1999)Delete users WordPress default passwords (0 - 999)Converting users (2000 - 2999)Converting users (1000 - 1999)Converting users (0 - 999)<strong>Conversion Complete</strong>No reply_to parents to convertConverting replies (3000 - 3999)Converting replies (2000 - 2999)Converting replies (1000 - 1999)Converting replies (0 - 999)No tags to convertNo super stickies to stickCalculating topic stickies (0 - 999)Converting topics (51000 - 51999)Converting topics (50000 - 50999)Converting topics (49000 - 49999)Converting topics (48000 - 48999)Converting topics (47000 - 47999)Converting topics (46000 - 46999)Converting topics (45000 - 45999)Converting topics (44000 - 44999)Converting topics (43000 - 43999)Converting topics (42000 - 42999)Converting topics (41000 - 41999)Converting topics (40000 - 40999)Converting topics (39000 - 39999)Converting topics (38000 - 38999)Converting topics (37000 - 37999)Converting topics (36000 - 36999)Converting topics (35000 - 35999)Converting topics (34000 - 34999)Converting topics (33000 - 33999)Converting topics (32000 - 32999)Converting topics (31000 - 31999)Converting topics (30000 - 30999)Converting topics (29000 - 29999)Converting topics (28000 - 28999)Converting topics (27000 - 27999)Converting topics (26000 - 26999)Converting topics (25000 - 25999)Converting topics (24000 - 24999)Converting topics (23000 - 23999)Converting topics (22000 - 22999)Converting topics (21000 - 21999)Converting topics (20000 - 20999)Converting topics (19000 - 19999)Converting topics (18000 - 18999)Converting topics (17000 - 17999)Converting topics (16000 - 16999)Converting topics (15000 - 15999)Converting topics (14000 - 14999)Converting topics (13000 - 13999)Converting topics (12000 - 12999)Converting topics (11000 - 11999)Converting topics (10000 - 10999)Converting topics (9000 - 9999)Converting topics (8000 - 8999)Converting topics (7000 - 7999)Converting topics (6000 - 6999)Converting topics (5000 - 5999)Converting topics (4000 - 4999)Converting topics (3000 - 3999)Converting topics (2000 - 2999)Converting topics (1000 - 1999)Converting topics (0 - 999)Calculating forum hierarchy (0 - 999)Converting forums (0 - 999)Delete users WordPress default passwords (2000 - 2999)Delete users WordPress default passwords (1000 - 1999)Delete users WordPress default passwords (0 - 999)Converting users (2000 - 2999)Converting users (1000 - 1999)Converting users (0 - 999)Starting ConversionWhen I first set up my BBPress forum at libertydebater.com, I was the keymaster of the forum. I could see options to edit posts, trash them, move them and a number of other options.
At some point (I’m not clear when) I lost the ability to do practically anything as the keymaster on my forum. When I try to reply to a post, I get an error that says “ERROR: You do not have permission to create new topics.”
Also, where I used to see moderating options above each post, I no longer see those. I’ve spent the last 3 days searching for a fix and trying everything I’ve found. So far I’ve tried:
– disabling all plug-ins, testing, then re-enabling them and testing. The problem persisted even when all plugins were disabled.
– Running every tool under Tools > Forums.
– Changing the Forum roll of that user to Participant and then back to Keymaster.
– Changing my theme (currently Tortuga) to the default 2014 theme. It made no difference so I changed it back.
– Restoring the database back to the oldest copy I had available.
– I made a test user account. The test user can post and reply, even as Keymaster, but didn’t have the ability to Edit, Move, Trash posts.
I have also seen suggestions of getting rid of the Yoast plug-in as a solution, but I don’t have that plug in.
This was all working fine and then one day it wasn’t. I’m a total newb to Word Press, so please go easy on me. If you have any suggestions, some guidance on how to implement them would be most appreciated.
Thanks!
I am having trouble importing from SimplePress to bbpress. I’m not sure what the table prefix is supposed to be. I tried wp_ and that didn’t import anything. I tried wp_sf (I think that is the beginning of tables for SimplePress but get this error
Repair any missing information: Continue
WordPress database error: [Specified key was too long; max key length is 1000 bytes]
CREATE TABLE wpzu_bbp_converter_translator ( meta_id mediumint(8) unsigned not null auto_increment, value_type varchar(25) null, value_id bigint(20) unsigned not null default ‘0’, meta_key varchar(255) null, meta_value varchar(255) null, PRIMARY KEY (meta_id), KEY value_id (value_id), KEY meta_join (meta_key(191), meta_value(191)) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;Is there anything I can do to get this import done?
WordPress 4.7
bbPress 2.5.12
Site: https://forum.ait-pro.com/
Custom bbPress/BuddyPress Theme & tested switching to WP Twenty Seventeen Theme
Tried creating a bug ticket on trac, but was not allowed to login and do so.Issue: In previous versions of bbPress this code below worked fine in my Theme functions.php file. As of bbPress 2.5.12 this code is no longer working in my Theme functions.php file. I checked output and bbPress Core code and did not see anything obvious. Output was good. ie $role and $caps, but it appeared that the filter was not being processed in time when the Activity template loaded. So I moved this code to the BuddyPress /plugins/bp-custom.php file and this code works fine. So obviously this some kind of init or loading order type of issue. ie the filter is being processed too late.
// bbPress Disable Topic Tags for Participants function aitpro_get_caps_for_role_filter( $caps, $role ) { if ( $role == 'bbp_participant' ) $caps = aitpro_get_caps_for_role( $role ); return $caps; } add_filter( 'bbp_get_caps_for_role', 'aitpro_get_caps_for_role_filter', 10, 2 ); function aitpro_get_caps_for_role( $role ) { switch ( $role ) { /* Disable Topic Tags for Participants */ case 'bbp_participant': return array( // Primary caps 'spectate' => true, 'participate' => true, // Forum caps 'read_private_forums' => true, // Topic caps 'publish_topics' => true, 'edit_topics' => true, // Reply caps 'publish_replies' => true, 'edit_replies' => true, // Topic tag caps 'assign_topic_tags' => false, // Using false disables allowing Participants to create Topic Tags ); break; default : return $role; } }bbpress Version 2.5.12
wordpress Version 4.6.1
TwentyThirteen-Child themeYou’ll see I don’t know what I’m doing here. What follows is what I tried.
I put the following into my 2013 child theme:
1. a folder titled “bbpress” which contained the following all copied from the bbpress plugin folder:
2. a folder titled “bbpress”
3. a folder titled “css”
4. a folder titled “extras”
5. a folder titled “js”
6. a file titled “bbpress-functions.phpI replaced the top of the bbpress.css file which was in the “css” folder with this:
/* Theme Name: bbpress bbpress-child Theme URI: http://neighborsconnect/neighborsnation/wp-content/themes/twentythirteen-child/bbpress-child/ Description: bbpress-child theme for bbpress Version: 1.0 Author: Bruce Wilson Author URI: http://neighborsnation.org/ Template: bbpress-default Tags: bbpress, bbpress-child */Then I increased the font-size for the bbpress forums from 12 px to 20px and other such changes to see if it worked.
Surprise! Surprise! It didn’t work.
What do I need to do to make it work?
~ Bruce
Hi,
I noticed textarea for newtopic description is generated using bbp_the_content function. I.e., not available in form-topic.php site specific copy.- bbPress 2.5.11
- WordPress 4.6.1
- site (internal)
If this is worth your time, how do I add placeholder attribute in the following list, without breaking the upgrade mechanism? I mean if it is a five minute job for any of you. Otherwise I can spend my own time to work around it using css… it’s nagging me that you all would not have forgotten to allow for this …reasonably important thing… I think.
function bbp_get_the_content( $args = array() ) { // Parse arguments against default values $r = bbp_parse_args( $args, array( 'context' => 'topic', 'before' => '<div class="bbp-the-content-wrapper">', 'after' => '</div>', 'wpautop' => true, 'media_buttons' => false, 'textarea_rows' => '12', 'tabindex' => bbp_get_tab_index(), 'tabfocus_elements' => 'bbp_topic_title,bbp_topic_tags', 'editor_class' => 'bbp-the-content', 'tinymce' => false, 'teeny' => true, 'quicktags' => true, 'dfw' => false ), 'get_the_content' );Here is what I am trying to do, i.e., add the words “… and a short description of the topic here.” in the blue area.
_________
Create a new conversation topic using the form belowEditing — Apparently, the image didn’t show. Here is the link, if you like
https://drive.google.com/open?id=0B1Jr2Alfov9eZVVhT2U0dGRDQVVWeVE0WGh4OTZ1QW50RFdRThank you!
Topic: Change in translations
I’m not satisfied with some of the translated words i bbpress (danish) – I have tried to change in / wp-content / languages / plugins / bbpress-da_DK.po
I have tried to change freshness:
#: includes/admin/forums.php:414 includes/admin/topics.php:638
#: templates/default/bbpress/loop-forums.php:22
#: templates/default/bbpress/loop-topics.php:22
msgid “Freshness”
msgstr “Seneste indlæg”