Search Results for '"wordpress"'
-
AuthorSearch Results
-
September 2, 2020 at 2:12 pm #214189
Topic: Problems since the last WordPress update.
in forum Troubleshootingkigazw
ParticipantHello everyone, please help!
Problems since the last WordPress update.
Since the last WordPress update, you can no longer choose between “visual” and “text” in the text editor.
In addition, the “GD Attachments” plugin no longer works.
Am I alone with the problem?
Happy to test at:
September 2, 2020 at 11:59 am #214187In reply to: Documented import from snitz access database
stefyonweb
ParticipantThank you Robin, here’s the code:
<?php /** * bbPress Example Converter * * @package bbPress * @subpackage Converters */ /** * Example converter base impoprter template for bbPress * * @since 2.3.0 bbPress (r4689) * * @link Codex Docs https://codex.bbpress.org/import-forums/custom-import */ class snitz extends BBP_Converter_Base { /** * Main Constructor */ public function __construct() { parent::__construct(); } /** * Sets up the field mappings */ public function setup_globals() { /** Forum Section *****************************************************/ // Setup table joins for the forum section at the base of this section // Old forum id (Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_FORUM', 'from_fieldname' => 'FORUM_ID', 'to_type' => 'forum', 'to_fieldname' => '_bbp_old_forum_id' ); // Forum parent id (If no parent, then 0. Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_FORUM', 'from_fieldname' => 'CAT_ID', 'to_type' => 'forum', 'to_fieldname' => '_bbp_old_forum_parent_id' ); // Forum topic count (Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_FORUM', 'from_fieldname' => 'F_TOPICS', 'to_type' => 'forum', 'to_fieldname' => '_bbp_topic_count' ); // Forum reply count (Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_FORUM', 'from_fieldname' => 'F_COUNT', 'to_type' => 'forum', 'to_fieldname' => '_bbp_reply_count' ); // Forum total topic count (Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_FORUM', 'from_fieldname' => 'F_TOPICS', 'to_type' => 'forum', 'to_fieldname' => '_bbp_total_topic_count' ); // Forum total reply count (Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_FORUM', 'from_fieldname' => 'F_COUNT', 'to_type' => 'forum', 'to_fieldname' => '_bbp_total_reply_count' ); // Forum title. $this->field_map[] = array( 'from_tablename' => 'FORUM_FORUM', 'from_fieldname' => 'F_SUBJECT', 'to_type' => 'forum', 'to_fieldname' => 'post_title' ); // Forum slug (Clean name to avoid confilcts) $this->field_map[] = array( 'from_tablename' => 'FORUM_FORUM', 'from_fieldname' => 'F_SUBJECT', 'to_type' => 'forum', 'to_fieldname' => 'post_name', 'callback_method' => 'callback_slug' ); // Forum description. $this->field_map[] = array( 'from_tablename' => 'FORUM_FORUM', 'from_fieldname' => 'F_DESCRIPTION', 'to_type' => 'forum', 'to_fieldname' => 'post_content', 'callback_method' => 'callback_null' ); // Forum display order (Starts from 1) $this->field_map[] = array( 'from_tablename' => 'FORUM_FORUM', 'from_fieldname' => 'F_ORDER', 'to_type' => 'forum', 'to_fieldname' => 'menu_order' ); // Forum type (Category = 0 or Forum = 1, Stored in postmeta) $this->field_map[] = array( // 'from_tablename' => 'FORUM_FORUM', // 'from_fieldname' => 'the_forum_type', 'to_type' => 'forum', 'to_fieldname' => '_bbp_forum_type', // 'callback_method' => 'callback_forum_type' 'default' => 'forum' ); // Forum status (Unlocked = 0 or Locked = 1, Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_FORUM', 'from_fieldname' => 'F_STATUS', 'to_type' => 'forum', 'to_fieldname' => '_bbp_status', 'callback_method' => 'callback_forum_status' ); // Forum dates. $this->field_map[] = array( 'to_type' => 'forum', 'to_fieldname' => 'post_date', 'default' => date('Y-m-d H:i:s') ); $this->field_map[] = array( 'to_type' => 'forum', 'to_fieldname' => 'post_date_gmt', 'default' => date('Y-m-d H:i:s') ); $this->field_map[] = array( 'to_type' => 'forum', 'to_fieldname' => 'post_modified', 'default' => date('Y-m-d H:i:s') ); $this->field_map[] = array( 'to_type' => 'forum', 'to_fieldname' => 'post_modified_gmt', 'default' => date('Y-m-d H:i:s') ); // Setup the table joins for the forum section /* $this->field_map[] = array( 'from_tablename' => 'groups_table', 'from_fieldname' => 'forum_id', 'join_tablename' => 'forums_table', 'join_type' => 'INNER', 'join_expression' => 'USING groups_table.forum_id = forums_table.forum_id',*/ // 'from_expression' => 'WHERE forums_table.forum_id != 1', /* 'to_type' => 'forum' );*/ /** Forum Subscriptions Section ***************************************/ // Subscribed forum ID (Stored in usermeta) /* $this->field_map[] = array( 'from_tablename' => 'forum_subscriptions_table', 'from_fieldname' => 'the_forum_id', 'to_type' => 'forum_subscriptions', 'to_fieldname' => '_bbp_forum_subscriptions' );*/ // Subscribed user ID (Stored in usermeta) /* $this->field_map[] = array( 'from_tablename' => 'forum_subscriptions_table', 'from_fieldname' => 'the_user_id', 'to_type' => 'forum_subscriptions', 'to_fieldname' => 'user_id', 'callback_method' => 'callback_userid' );*/ /** Topic Section *****************************************************/ // Setup table joins for the topic section at the base of this section // Old topic id (Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'TOPIC_ID', 'to_type' => 'topic', 'to_fieldname' => '_bbp_old_topic_id' ); // Topic reply count (Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_REPLIES', 'to_type' => 'topic', 'to_fieldname' => '_bbp_reply_count', 'callback_method' => 'callback_topic_reply_count' ); // Topic total reply count (Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_REPLIES', 'to_type' => 'topic', 'to_fieldname' => '_bbp_total_reply_count', 'callback_method' => 'callback_topic_reply_count' ); // Topic parent forum id (If no parent, then 0. Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'FORUM_ID', 'to_type' => 'topic', 'to_fieldname' => '_bbp_forum_id', 'callback_method' => 'callback_forumid' ); // Topic author. $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_AUTHOR', 'to_type' => 'topic', 'to_fieldname' => 'post_author', 'callback_method' => 'callback_userid' ); // Topic author ip (Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_IP', 'to_type' => 'topic', 'to_fieldname' => '_bbp_author_ip' ); // Topic content. $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_MESSAGE', 'to_type' => 'topic', 'to_fieldname' => 'post_content', 'callback_method' => 'callback_html' ); // Topic title. $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_SUBJECT', 'to_type' => 'topic', 'to_fieldname' => 'post_title' ); // Topic slug (Clean name to avoid conflicts) $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_SUBJECT', 'to_type' => 'topic', 'to_fieldname' => 'post_name', 'callback_method' => 'callback_slug' ); // Topic status (Open or Closed) $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_STATUS', 'to_type' => 'topic', 'to_fieldname' => '_bbp_old_closed_status_id', 'callback_method' => 'callback_topic_status' ); // Topic parent forum id (If no parent, then 0) $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'FORUM_ID', 'to_type' => 'topic', 'to_fieldname' => 'post_parent', 'callback_method' => 'callback_forumid' ); // Sticky status (Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_STICKY', 'to_type' => 'topic', 'to_fieldname' => '_bbp_old_sticky_status_id', 'callback_method' => 'callback_sticky_status' ); // Topic dates. $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_DATE', 'to_type' => 'topic', 'to_fieldname' => 'post_date', 'callback_method' => 'callback_datetime' ); $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_DATE', 'to_type' => 'topic', 'to_fieldname' => 'post_date_gmt', 'callback_method' => 'callback_datetime' ); $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_LAST_POST_DATE', 'to_type' => 'topic', 'to_fieldname' => 'post_modified', 'callback_method' => 'callback_datetime' ); $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_LAST_POST_DATE', 'to_type' => 'topic', 'to_fieldname' => 'post_modified_gmt', 'callback_method' => 'callback_datetime' ); $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_LAST_POST', 'to_type' => 'topic', 'to_fieldname' => '_bbp_last_active_time', 'callback_method' => 'callback_datetime' ); $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'T_MESSAGE', 'join_tablename' => 'thread', 'join_type' => 'INNER', 'join_expression' => 'USING (threadid) WHERE post.parentid = 0', 'to_type' => 'topic', 'to_fieldname' => 'post_content', 'callback_method' => 'callback_html' ); // Setup any table joins needed for the topic section $this->field_map[] = array( 'from_tablename' => 'FORUM_REPLY', 'from_fieldname' => 'TOPIC_ID', 'join_tablename' => 'FORUM_TOPICS', 'join_type' => 'INNER', 'join_expression' => 'USING FORUM_REPLY.TOPIC_ID = FORUM_TOPICS.TOPIC_ID', 'from_expression' => 'WHERE FORUM_FORUM.TOPIC_ID = 0', 'to_type' => 'topic' ); /** Tags Section ******************************************************/ /** Topic Subscriptions Section ***************************************/ /** Favorites Section *************************************************/ // Favorited topic ID (Stored in usermeta) /** Reply Section *****************************************************/ // Setup table joins for the reply section at the base of this section // Old reply id (Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_REPLY', 'from_fieldname' => 'REPLY_ID', 'to_type' => 'reply', 'to_fieldname' => '_bbp_old_reply_id' ); // Reply parent forum id (If no parent, then 0. Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_REPLY', 'from_fieldname' => 'FORUM_ID', 'to_type' => 'reply', 'to_fieldname' => '_bbp_forum_id', 'callback_method' => 'callback_forumid' ); // Reply parent topic id (If no parent, then 0. Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_REPLY', 'from_fieldname' => 'TOPIC_ID', 'to_type' => 'reply', 'to_fieldname' => '_bbp_topic_id', 'callback_method' => 'callback_topicid' ); // Reply author ip (Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_REPLY', 'from_fieldname' => 'R_IP', 'to_type' => 'reply', 'to_fieldname' => '_bbp_author_ip' ); // Reply author. $this->field_map[] = array( 'from_tablename' => 'FORUM_REPLY', 'from_fieldname' => 'R_AUTHOR', 'to_type' => 'reply', 'to_fieldname' => 'post_author', 'callback_method' => 'callback_userid' ); // Reply title and reply slugs // Note: We don't actually want either a reply title or a reply slug as // we want single replies to use their ID as the permalink. // Reply content. $this->field_map[] = array( 'from_tablename' => 'FORUM_REPLY', 'from_fieldname' => 'R_MESSAGE', 'to_type' => 'reply', 'to_fieldname' => 'post_content', 'callback_method' => 'callback_html' ); /* Snizt doesnt use reply order // Reply order. $this->field_map[] = array( 'from_tablename' => 'FORUM_REPLY', 'from_fieldname' => 'the_reply_order', 'to_type' => 'reply', 'to_fieldname' => 'menu_order' ); */ // Reply parent topic id (If no parent, then 0) $this->field_map[] = array( 'from_tablename' => 'FORUM_REPLY', 'from_fieldname' => 'TOPIC_ID', 'to_type' => 'reply', 'to_fieldname' => 'post_parent', 'callback_method' => 'callback_topicid' ); // Reply dates. $this->field_map[] = array( 'from_tablename' => 'FORUM_REPLY', 'from_fieldname' => 'R_DATE', 'to_type' => 'reply', 'to_fieldname' => 'post_date', 'callback_method' => 'callback_datetime' ); $this->field_map[] = array( 'from_tablename' => 'FORUM_REPLY', 'from_fieldname' => 'R_DATE', 'to_type' => 'reply', 'to_fieldname' => 'post_date_gmt', 'callback_method' => 'callback_datetime' ); $this->field_map[] = array( 'from_tablename' => 'FORUM_REPLY', 'from_fieldname' => 'R_DATE', 'to_type' => 'reply', 'to_fieldname' => 'post_modified', 'callback_method' => 'callback_datetime' ); $this->field_map[] = array( 'from_tablename' => 'FORUM_REPLY', 'from_fieldname' => 'R_DATE', 'to_type' => 'reply', 'to_fieldname' => 'post_modified_gmt', 'callback_method' => 'callback_datetime' ); // Setup any table joins needed for the reply section /* $this->field_map[] = array( 'from_tablename' => 'FORUM_TOPICS', 'from_fieldname' => 'TOPIC_ID', 'join_tablename' => 'FORUM_REPLY', 'join_type' => 'INNER', 'join_expression' => 'USING FORUM_TOPICS.TOPIC_ID = FORUM_REPLY.TOPIC_ID', 'from_expression' => 'WHERE FORUM_TOPICS.first_post != 0', 'to_type' => 'reply' );*/ /** User Section ******************************************************/ // Setup table joins for the user section at the base of this section // Store old user id (Stored in usermeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_MEMBERS', 'from_fieldname' => 'MEMBER_ID', 'to_type' => 'user', 'to_fieldname' => '_bbp_old_user_id' ); // Store old user password (Stored in usermeta serialized with salt) $this->field_map[] = array( 'from_tablename' => 'FORUM_MEMBERS', 'from_fieldname' => 'M_PASSWORD', 'to_type' => 'user', 'to_fieldname' => '_bbp_password', 'callback_method' => 'callback_savepass' ); // Store old user salt (This is only used for the SELECT row info for the above password save) /* $this->field_map[] = array( 'from_tablename' => 'FORUM_MEMBERS', 'from_fieldname' => 'the_users_password_salt', 'to_type' => 'user', 'to_fieldname' => '' );*/ // User password verify class (Stored in usermeta for verifying password) /*$this->field_map[] = array( 'to_type' => 'user', 'to_fieldname' => '_bbp_class', 'default' => 'Example' );*/ // User name. $this->field_map[] = array( 'from_tablename' => 'FORUM_MEMBERS', 'from_fieldname' => 'M_NAME', 'to_type' => 'user', 'to_fieldname' => 'user_login' ); // User nice name. $this->field_map[] = array( 'from_tablename' => 'FORUM_MEMBERS', 'from_fieldname' => 'M_NAME', 'to_type' => 'user', 'to_fieldname' => 'user_nicename' ); // User email. $this->field_map[] = array( 'from_tablename' => 'FORUM_MEMBERS', 'from_fieldname' => 'M_EMAIL', 'to_type' => 'user', 'to_fieldname' => 'user_email' ); // User homepage. $this->field_map[] = array( 'from_tablename' => 'FORUM_MEMBERS', 'from_fieldname' => 'M_HOMEPAGE', 'to_type' => 'user', 'to_fieldname' => 'user_url' ); /* Snitz doesn't use user registered // User registered. $this->field_map[] = array( 'from_tablename' => 'FORUM_MEMBERS', 'from_fieldname' => 'the_users_registration_date', 'to_type' => 'user', 'to_fieldname' => 'user_registered', 'callback_method' => 'callback_datetime' ); */ /* Snitz doesn't use user status // User status. $this->field_map[] = array( 'from_tablename' => 'FORUM_MEMBERS', 'from_fieldname' => 'the_users_status', 'to_type' => 'user', 'to_fieldname' => 'user_status' ); */ // User display name. $this->field_map[] = array( 'from_tablename' => 'FORUM_MEMBERS', 'from_fieldname' => 'M_NAME', 'to_type' => 'user', 'to_fieldname' => 'display_name' ); // User Profile Field 1 (Stored in usermeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_MEMBERS', 'from_fieldname' => 'M_AIM', 'to_type' => 'user', 'to_fieldname' => 'aim' ); // User Profile Field 2 (Stored in usermeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_MEMBERS', 'from_fieldname' => 'M_YAHOO', 'to_type' => 'user', 'to_fieldname' => 'yim' ); // User Profile Field 3 (Stored in usermeta) $this->field_map[] = array( 'from_tablename' => 'FORUM_MEMBERS', 'from_fieldname' => 'M_SIG', 'to_type' => 'user', 'to_fieldname' => '_bbp_snitz_user_sig' ); // Setup any table joins needed for the user section /* $this->field_map[] = array( 'from_tablename' => 'users_profile_table', 'from_fieldname' => 'the_users_id', 'join_tablename' => 'FORUM_MEMBERS', 'join_type' => 'INNER', 'join_expression' => 'USING users_profile_table.MEMBER_ID = FORUM_MEMBERS.MEMBER_ID', 'from_expression' => 'WHERE FORUM_MEMBERS.MEMBER_ID != -1', 'to_type' => 'user' );*/ } /** * This method allows us to indicates what is or is not converted for each * converter. */ public function info() { return ''; } /** * This method is to save the salt and password together. That * way when we authenticate it we can get it out of the database * as one value. Array values are auto sanitized by WordPress. */ public function callback_savepass( $field, $row ) { $pass_array = array( 'hash' => $field, 'salt' => $row['salt'] ); return $pass_array; } /** * This method is to take the pass out of the database and compare * to a pass the user has typed in. */ public function authenticate_pass( $password, $serialized_pass ) { $pass_array = unserialize( $serialized_pass ); return ( $pass_array['hash'] == md5( md5( $password ). $pass_array['salt'] ) ); } /** * Translate the forum status from Snitz v3.x numeric's to WordPress's strings. * * @param int $status Snitz v3.x numeric forum status * @return string WordPress safe */ public function callback_forum_status( $status = 1 ) { switch ( $status ) { case 0 : $status = 'closed'; // Snitz forum status closed 'F_STATUS = 0' break; case 1 : default : $status = 'open'; // Snitz forum status open 'F_STATUS = 1' break; } return $status; } /** * Translate the topic status from Snitz v3.x numeric's to WordPress's strings. * * @param int $status Snitz v3.x numeric topic status * @return string WordPress safe */ public function callback_topic_status( $status = 1 ) { switch ( $status ) { case 0 : $status = 'closed'; // Snitz topic status closed 'T_STATUS = 0' break; case 1 : default : $status = 'publish'; // Snitz topic status open 'T_STATUS = 1' break; } return $status; } /** * Translate the topic sticky status type from Snitz 3.x numeric's to WordPress's strings. * * @param int $status Snitz 3.x numeric forum type * @return string WordPress safe */ public function callback_sticky_status( $status = 0 ) { switch ( $status ) { case 1 : $status = 'sticky'; // Snitz Sticky 'T_STICKY = 1' break; case 0 : default : $status = 'normal'; // Snitz normal topic 'T_STICKY = 0' break; } return $status; } }September 2, 2020 at 6:28 am #214182In reply to: SEO Meta Description for Forums and Topics
Mark Smith
ParticipantWe understand that Yoast and bbPress may not be fully integrated. We have an open-issue report here: https://github.com/Yoast/wordpress-seo/issues/7332 which seeks to do that. We suggest commenting on the issue so you may be kept aware of updates. You may need to create an account in order to do that.
August 31, 2020 at 1:35 pm #214160In reply to: Editing bbpress css from dashboard?
Robin W
Moderatoryes if you don’t want the hassle of css editing, then this may well do all the css you need to change
August 30, 2020 at 6:41 am #214141In reply to: Remove forum prefix before users
Robin W
ModeratorI think this should do it, but check that it works, and try it from topics/replies freshness etc.
add_filter ('bbp_get_user_slug' , 'rew_get_user_slug' ) ; function rew_get_user_slug ($slug) { $default = 'users' ; // Filter & return return apply_filters( 'rew_get_user_slug', get_option( '_bbp_user_slug', $default ) ); }Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
August 29, 2020 at 7:45 am #214127In reply to: Documented import from snitz access database
Robin W
Moderatorbut yes, looks like the way conversion works is different, so use the new ‘to’ and just out your snitz from.
I think this might be your problem
CRITICALLY I also added the following as the example doesn’t had a bit that brings the actual topic content across !
in the first post above.
If you are starting again then make sure you blank the forums in wordpress first, so it does the whole job again
dashboard>forums>reset forums.
August 27, 2020 at 12:21 am #214060In reply to: how to customize search results
smith512
ParticipantI am worried about that “GD Power Search for bbPress” is not verified my wordpress version.
Do you intend to update this?August 26, 2020 at 11:53 am #214056In reply to: BBPress Create Forum Shortcode not working
Robin W
Moderatoryes this seems to be a bug.
in
\bbpress\includes\forums\functions.php
line 197 has
// No forum parent was passed (should never happen) if ( empty( $forum_parent_id ) ) { bbp_add_error( 'bbp_new_forum_missing_parent', __( '<strong>ERROR</strong>: Your forum must have a parent.', 'bbpress' ) );but a top level forum will have zero so empty !
(I’m not a bbpress author, I just help moderate here, so not under my direct powers to change)
To correct this for another user, I did the following :
created a hidden forum – then noted the ID (in this case 4537)
then in
\bbpress\templates\default\bbpress\form-forum.php
changed line 138 etc. from
<p> <label for="bbp_forum_parent_id"><?php esc_html_e( 'Parent Forum:', 'bbpress' ); ?></label><br /> <?php bbp_dropdown( array( 'select_id' => 'bbp_forum_parent_id', 'show_none' => esc_html__( '— No parent —', 'bbpress' ), 'selected' => bbp_get_form_forum_parent(), 'exclude' => bbp_get_forum_id() ) ); ?> </p>to
<?php //the code in incudes/forums/functions won't let post parent be blank. //to get this to work, we have created a hidden forum in the site. This forums ID is 4537 //if the hidden forum exists, then use this forums id //otherwise show the post parent section $forum_parent_id = bbp_get_forum_id( 4537 ); if (!empty( $forum_parent_id )) { ?> <input type="hidden" id="bbp_forum_parent_id" name="bbp_forum_parent_id" value="4537"> <?php } else { ?> <p> <label for="bbp_forum_parent_id"><?php esc_html_e( 'Parent Forum:', 'bbpress' ); ?></label><br /> <?php bbp_dropdown( array( 'select_id' => 'bbp_forum_parent_id', 'show_none' => esc_html__( '— No parent —', 'bbpress' ), 'selected' => bbp_get_form_forum_parent(), 'exclude' => bbp_get_forum_id() ) ); ?> </p> <?php } ?>This template then gets saved to your child themes directory as
wp-content/themes/%your-theme-name%/bbpress/form-forum.php
bbPress will now use this template instead of the original
Finally, add an action to re-write the parent forum from 4537 to zero post forum creation
add_action( 'bbp_new_forum_post_extras', 'ltc_limit_forum', 10 ,1 ); function ltc_limit_forum ($forum_id) { //this function is fired when a forum is created //set post parent to zero wp_update_post( array( 'ID' => $forum_id, 'post_parent' => 0 ) ); }Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
You could amend that function to have an if statement so if forum parent is 4537 then create forum parent as 0, but in this case there were no times when a sub forum was being created, so it was not needed.
I know this is quite convoluted, but it worked !!
There is a trac ticket for this issue somewhere, so the authors are aware
August 26, 2020 at 7:01 am #214049In reply to: how to customize search results
Milan Petrovic
ParticipantYour code doesn’t look complete. You posted ‘my_bbp_filter_search_results’, but there is no filter it is tied into. Which filter did you use to hook this function too?
I can recommend you trying my advanced search plugin: GD Power Search for bbPress – https://wordpress.org/plugins/gd-power-search-for-bbpress/ it allows you to select forums to search through and other things.
Milan
August 25, 2020 at 8:45 am #214027In reply to: bbPress Profile Link Shortcode Plugin
hellojesse
ParticipantMy plugin is rejeceted, here is their reply:
Your plugin has been rejected because it is a duplicate of another plugin, already hosted on WordPress.orgMy answer was this:
The reason why I did it is because, I do have client and he checked your plugin and he said that "This plugin hasn’t been tested with the latest 3 major releases of WordPress." So he feels insecure. I have tested with WordPress and bbPress and it works fine.August 24, 2020 at 6:10 pm #214015In reply to: Topics are Responses Disconnecting
petergariepy
ParticipantA boatload unfortunately.
Admin Columns
Adminimize
Advanced Classifieds and Directory Pro
Advanced Custom Fields
Advanced Custom Fields PRO
All-in-One WP Migration
All-in-One WP Migration Unlimited Extension
amr shortcode any widget
bbP shortcodes
bbPress
bbPress Style
bbpress wp4 fix
bbpress wp4 fix2
Better Search Replace
Bulk Delete
Check Email
Classic Editor
Code Snippets
Contact Form 7
Envato Market
Events Manager
Events Manager Pro
GA Google Analytics
Goodlayers Core
Goodlayers Personnel Post Type
Goodlayers Portfolio Post Type
Goodlayers Twitter
Google XML Sitemaps
Horizontal scrolling announcements
If Menu – Visibility control for menu items
Image Upload for BBPress
Image Upload for bbPress Pro
Intuitive Custom Post Order
Login or Logout Menu Item
Magic Liquidizer Responsive Table
Maintenance
ManageWP – Worker
Media Cleaner
Media Deduper
MemberPress Developer Tools
MemberPress Importer
MemberPress Plus
PAS Vehicle
PDF Embedder
Plugin
Pricing Table by Supsystic
Really Simple CSV Importer
Redux Framework
Reveal IDs
Search & Replace
Simple File List
Simple Lightbox
Slider Revolution
Snazzy Maps
Toolset Types
Toolset Views
UpdraftPlus – Backup/Restore
User Role Editor
User Switching
WordPress Importer
WP All Export Pro
WP All Import – ACF Add-On
WP All Import Pro
WP Engine Automated Migration
WP Google Map Plugin
WP phpMyAdmin
WP-Optimize – Clean, Compress, Cache
WPForms
WPForms Custom Captcha
WPForms PayPal Standard
WPForms StripeAugust 24, 2020 at 5:37 pm #214014In reply to: Forum notification emails sent to “from” address
Robin W
Moderatorbboress notifications are sent from and to the same address, with the actual recipients being BCC’d on the email.
This is a popular way that many people send a single email without letting the recipients see each other.
You probably receive emails this way from some companies.
If you don’t want this, then use
but some hosters may limit the number of emails sent at one time – again seeing these as spam.
There is no right answer – just choose the solution that suits you.
August 24, 2020 at 4:39 pm #214013Topic: Forum notification emails sent to “from” address
in forum Troubleshooting2cats
ParticipantI’m running bbPress 2.6.5 with WordPress 5.4.2, and using SendGrid to process notifications. When I check the SendGrid activity log, I see that the forum notifications, which are being sent from a “noreply@domainname” email address, are also being delivered TO that same “noreply” email address. I have searched every setting and can’t find any reason why emails would be sent to that address. Does anyone know how this could happen? My hosting company tells me this could be seen as spam, which could affect delivery. The forums are members-only so I can’t post a link. Any advice would be greatly appreciated.
August 24, 2020 at 9:54 am #214001In reply to: Re-type email on bbpress registration form
martinrtr
ParticipantNice – thanks Robin – I’m just getting my mind round BBPress for the first time. In the intro blurb there was a statement along the lines of ‘BBPress is develkped by wordpress and, as such uses wordpress core for its functionality’. I read this but clearly didn’t register it!
Thank you for you help
MartinAugust 24, 2020 at 9:52 am #214000In reply to: Re-type email on bbpress registration form
Robin W
Moderatorbbpress simply uses WordPress registration and login, so any plugin that does wordpress registration will work for bbpress.
Therefore rather than trying to amend the bbpress registration, I’d probably just use a wordpress registration plugin, there are lots – just google ‘worpdress registration plugin’
this is a list of popular ones
10 Best WordPress User Registration Plugins to Power Up Your Site
August 24, 2020 at 9:10 am #213999Topic: Re-type email on bbpress registration form
in forum Troubleshootingmartinrtr
ParticipantHI there
I was setting up BBPress and testing ‘register’ and couldn’t figure out why i didn’t get the verification email. Then I realised I had mis-typed my email. I was therefore wondering if there was any way to add a ‘re-type’ email field to the BBpress registration form?
WP 5.5
BBPress 2.6.5
Theme Groppe from Victor Themes (https://themeforest.net/item/groppe-nonprofit-wordpress-theme/20351940?gclid=EAIaIQobChMIsvqPo_Wz6wIVVrTVCh3mVQpjEAAYASAAEgKMKPD_BwE)Thanks
MartinAugust 24, 2020 at 3:18 am #213988In reply to: Allow Users to Edit There Profile Icon on menu Bar
uksentinel
ParticipantHopefully your plugin will be approved and this will ensure WordPress and BBPRESS standards are maintained 😉
Thanks
August 23, 2020 at 2:39 pm #213972Topic: bbPress Profile Link Shortcode Plugin
in forum Pluginsuksentinel
ParticipantThere used to be a plugin called ‘bbPress Profile Link Shortcode’ created by ‘Tyler Tervooren’
Alas this plugin is out of date, is there any equivalents ?
August 23, 2020 at 9:43 am #213955In reply to: Create a new forum on each new post?
hellojesse
ParticipantDear @slugs,
I am WordPress evangelist, and we want to cover as much as possible about WP.
Main features I want to have:
1. Activity page, like on facebook
2. Chat
3. Messenger for users, want push-ups
4. Project Manager to manage any WP project.I will contact you if the site is ready.
Thank you very much.
August 23, 2020 at 9:19 am #213953In reply to: Create a new forum on each new post?
slugs
ParticipantYes, that sounds like a great site idea. I think the web is about 30% wordpress?
August 22, 2020 at 8:30 am #213916In reply to: Allow Users to Edit There Profile Icon on menu Bar
uksentinel
ParticipantFYI – My WordPress and BBPress installations are up-to-date and I have an Icon in the Toolbar which when clicked, goes to three option (Dashboard – Change Password and Log-Out) but does not give access to users topics and post being created etc.
If I use the Widget BBPRESS LOGIN LINKS Widgets – and click on the icon, then it gives me access to the profile details I am looking for, but I would like to use this profiles option for the menu (not wideget)
😉
August 21, 2020 at 6:50 am #213893In reply to: Strip all html tags forms
Robin W
ModeratorPut this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
add_filter( 'bbp_new_topic_pre_content', 'rew_strip_tags' ); add_filter('bbp_edit_topic_pre_content', 'rew_strip_tags' ); add_filter( 'bbp_new_reply_pre_content', 'rew_strip_tags' ); add_filter('bbp_edit_reply_pre_content', 'rew_strip_tags' ); function rew_strip_tags ($content) { $content = strip_tags($content); return $content ; }August 20, 2020 at 9:38 pm #213887Topic: Registration Account
in forum InstallationChristineZ
ParticipantHeeelllloooo bbPress! 🙂
This is my first time writing you and I have first say, I LOVE your plugin. GREAT job!
I have a couple of question about the Registration page.
Website: http://zolofly.com/register/
WordPress Version: 5.5
bbPress Version: 6.2.01) How can extend the Profile Details … under the Account Details so that the page lays out nicely?
Screenshot for your reference: http://prntscr.com/u36rrl … make since?2) How can I make some columns for the Hobbies? Rather than it just being one long row.
3) Where can I add the Terms and Conditions next to the Privacy Policy?
Screenshot for questions 2 and 3 for your reference: http://prntscr.com/u36texThat’s it and thank you so much for your support,
Christine 🙂August 20, 2020 at 5:38 pm #213874In reply to: How to make roles (bbPresss)
hellojesse
ParticipantDiscuss with codex of WordPress. add_role function could help.
August 19, 2020 at 4:47 am #213836Topic: Footer displays as text
in forum Themesrosbiffer
ParticipantI’ve installed bbpress on my wordpress site. On every page I have a footer supplied by the theme which displays fine, except on all my forum pages. Here it just displays as text, starting with “[vc_row full_width=”stretch_row” content_placement=”middle” etc, so all of the WPBakery markup is just showing as text. I can’t try another theme as twenty twenty doesn’t show the footer anyway!
Any idea what I can look at? According to WhatTheFile it’s just using my theme’s page.php file
-
AuthorSearch Results