Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress"'

Viewing 25 results - 3,151 through 3,175 (of 26,835 total)
  • Author
    Search Results
  • #200489
    Robin W
    Moderator
    #200469
    antonv
    Participant

    try bbPress Topics for Posts
    I am using it – works well.

    Also take note of: this support topic

    #200406
    Benjamin
    Participant

    I think I may have fixed it. Time to run another import. I’ve made the following changes to the import script.

    <?php
    
    /**
     * Implementation of ECO Forums converter.
     *
     * @since bbPress (r4689)
     * @link Codex Docs https://codex.bbpress.org/import-forums/custom-import
     */
    class VSI extends BBP_Converter_Base {
    
    	/**
    	 * Main Constructor
    	 *
    	 * @uses Example_Converter::setup_globals()
    	 */
    	function __construct() {
    		parent::__construct();
    		$this->setup_globals();
    	}
    
    	/**
    	 * Sets up the field mappings
    	 */
    	public function setup_globals() {
    
    		/** Forum Section *****************************************************/
    
    		// Setup table joins for the forum section at the base of this section
    
    		// Forum id (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_FORUMS',
    			'from_fieldname'  => 'forumid',
    			'to_type'         => 'forum',
    			'to_fieldname'    => '_bbp_forum_id'
    		);
    
    		// Forum parent id (If no parent, then 0. Stored in postmeta)
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'forums_table',
    		//	'from_fieldname'  => 'the_parent_id',
    		//	'to_type'         => 'forum',
    		//	'to_fieldname'    => '_bbp_forum_parent_id'
    		//);
    
    		// Forum topic count (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename' => 'ECOFORUMS_FORUMS',
    			'from_fieldname' => 'numberoftopics',
    			'to_type'        => 'forum',
    			'to_fieldname'   => '_bbp_topic_count'
    		);
    
    		// Forum reply count (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename' => 'ECOFORUMS_FORUMS',
    			'from_fieldname' => 'numberofreplies',
    			'to_type'        => 'forum',
    			'to_fieldname'   => '_bbp_reply_count'
    		);
    
    		// Forum total topic count (Stored in postmeta)
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'forums_table',
    		//	'from_fieldname' => 'the_total_topic_count',
    		//	'to_type'        => 'forum',
    		//	'to_fieldname'   => '_bbp_total_topic_count'
    		//);
    
    		// Forum total reply count (Stored in postmeta)
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'forums_table',
    		//	'from_fieldname' => 'the_total_reply_count',
    		//	'to_type'        => 'forum',
    		//	'to_fieldname'   => '_bbp_total_reply_count'
    		//);
    
    		// Forum title.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_FORUMS',
    			'from_fieldname'  => 'forumtitle',
    			'to_type'         => 'forum',
    			'to_fieldname'    => 'post_title'
    		);
    
    		// Forum slug (Clean name to avoid confilcts)
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'forums_table',
    		//	'from_fieldname'  => 'the_forum_slug',
    		//	'to_type'         => 'forum',
    		//	'to_fieldname'    => 'post_name',
    		//	'callback_method' => 'callback_slug'
    		//);
    
    		// Forum description.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_FORUMS',
    			'from_fieldname'  => 'forumdescription',
    			'to_type'         => 'forum',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_null'
    		);
    
    		// Forum display order (Starts from 1)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_FORUMS',
    			'from_fieldname'  => 'forumorder',
    			'to_type'         => 'forum',
    			'to_fieldname'    => 'menu_order'
    		);
    
    		// 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'
    		//);
    
    		/** Topic Section *****************************************************/
    
    		// Setup table joins for the topic section at the base of this section
    
    		// Topic id (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'messageid',
    			'to_type'         => 'topic',
    			'to_fieldname'    => '_bbp_topic_id'
    		);
    
    		// Topic reply count (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'replycount',
    			'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'  => 'topics_table',
    		//	'from_fieldname'  => 'the_total_topic_reply_count',
    		//	'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'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'forumid',
    			'to_type'         => 'topic',
    			'to_fieldname'    => '_bbp_forum_id',
    			'callback_method' => 'callback_forumid'
    		);
    
    		// Topic author.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'memberid',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_author',
    			'callback_method' => 'callback_userid'
    		);
    
    		// Topic author ip (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'ipaddress',
    			'to_type'         => 'topic',
    			'to_fieldname'    => '_bbp_author_ip'
    		);
    
    		// Topic content.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'forummessage',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_html'
    		);
    
    		// Topic title.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'forumsubject',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_title'
    		);
    
    		// Topic slug (Clean name to avoid conflicts)
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'topics_table',
    		//	'from_fieldname'  => 'the_topic_slug',
    		//	'to_type'         => 'topic',
    		//	'to_fieldname'    => 'post_name',
    		//	'callback_method' => 'callback_slug'
    		//);
    
    		// Topic parent forum id (If no parent, then 0)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'forumid',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_parent',
    			'callback_method' => 'callback_forumid'
    		);
    
    		// Sticky status (Stored in postmeta))
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'topics_table',
    		//	'from_fieldname'  => 'the_topic_sticky_status',
    		//	'to_type'         => 'topic',
    		//	'to_fieldname'    => '_bbp_old_sticky_status',
    		//	'callback_method' => 'callback_sticky_status'
    		//);
    
    		// Topic dates.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'datecreated',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_date',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'datecreated',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_date_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'dateupdate',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_modified',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'dateupdate',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_modified_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'topics_table',
    		//	'from_fieldname'  => 'the_topic_modified_date',
    		//	'to_type'         => 'topic',
    		//	'to_fieldname'    => '_bbp_last_active_time',
    		//	'callback_method' => 'callback_datetime'
    		//);
    
    		// Setup any table joins needed for the topic section
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'threadid',
    			'join_tablename'  => 'topics_table',
    			'join_type'       => 'INNER',
    			'join_expression' => 'USING replies_table.the_topic_id = topics_table.the_topic_id',
    			'from_expression' => 'WHERE ECOFORUMS_MESSAGES.threadid = 0',
    			'to_type'         => 'topic'
    		);
    
    		
    		/** Reply Section *****************************************************/
    
    		// Setup table joins for the reply section at the base of this section
    
    		// Reply id (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'threadid',
    			'to_type'         => 'reply',
    			'to_fieldname'    => '_bbp_post_id'
    		);
    
    		// Reply parent forum id (If no parent, then 0. Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'forumid',
    			'to_type'         => 'reply',
    			'to_fieldname'    => '_bbp_forum_id',
    			'callback_method' => 'callback_topicid_to_forumid'
    		);
    
    		// Reply parent topic id (If no parent, then 0. Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'replyto',
    			'to_type'         => 'reply',
    			'to_fieldname'    => '_bbp_topic_id',
    			'callback_method' => 'callback_topicid'
    		);
    
    		// Reply author ip (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'ipaddress',
    			'to_type'         => 'reply',
    			'to_fieldname'    => '_bbp_author_ip'
    		);
    
    		// Reply author.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'memberid',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_author',
    			'callback_method' => 'callback_userid'
    		);
    
    		// Reply title.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'forumsubject',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_title'
    		);
    
    		// Reply slug (Clean name to avoid conflicts)
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'replies_table',
    		//	'from_fieldname'  => 'the_reply_slug',
    		//	'to_type'         => 'reply',
    		//	'to_fieldname'    => 'post_name',
    		//	'callback_method' => 'callback_slug'
    		//);
    
    		// Reply content.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'forummessage',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_html'
    		);
    
    		// Reply order.
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'replies_table',
    		//	'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'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'threadid',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_parent',
    			'callback_method' => 'callback_topicid'
    		);
    
    		// Reply dates.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'datecreated',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_date',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'datecreated',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_date_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'dateupdate',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_modified',
    			'callback_method' => 'callback_datetime'
    		);
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'replies_table',
    		//	'from_fieldname'  => 'dateupdate',
    		//	'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'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'threadid',
    			'join_tablename'  => 'replies_table',
    			'join_type'       => 'INNER',
    			'join_expression' => 'USING topics_table.the_topic_id = replies_table.the_topic_id',
    			'from_expression' => 'WHERE ECOFORUMS_MESSAGES.replyto != 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'  => 'ECO_MEMBERS',
    			'from_fieldname'  => 'member_id',
    			'to_type'         => 'user',
    			'to_fieldname'    => '_bbp_user_id'
    		);
    
    		// Store old User password (Stored in usermeta serialized with salt)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECO_MEMBERS',
    			'from_fieldname'  => 'userpassword',
    			'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'  => 'users_table',
    		//	'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'  => 'ECO_MEMBERS',
    			'from_fieldname'  => 'login_id',
    			'to_type'         => 'user',
    			'to_fieldname'    => 'user_login'
    		);
    
    		// User nice name.
    		$this->field_map[] = array(
    			'from_tablename' => 'ECO_MEMBERS',
    			'from_fieldname' => 'login_id',
    			'to_type'        => 'user',
    			'to_fieldname'   => 'user_nicename'
    		);
    
    		// User email.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECO_MEMBERS',
    			'from_fieldname'  => 'emailaddress',
    			'to_type'         => 'user',
    			'to_fieldname'    => 'user_email'
    		);
    
    		// User homepage.
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'users_table',
    		//	'from_fieldname'  => 'the_users_homepage_url',
    		//	'to_type'         => 'user',
    		//	'to_fieldname'    => 'user_url'
    		//);
    
    		// User registered.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECO_MEMBERS',
    			'from_fieldname'  => 'accountcreated',
    			'to_type'         => 'user',
    			'to_fieldname'    => 'user_registered',
    			'callback_method' => 'callback_datetime'
    		);
    
    		// User status.
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'users_table',
    		//	'from_fieldname' => 'the_users_status',
    		//	'to_type'        => 'user',
    		//	'to_fieldname'   => 'user_status'
    		//);
    
    		// User display name.
    		$this->field_map[] = array(
    			'from_tablename' => 'ECO_MEMBERS',
    			'from_fieldname' => 'login_id',
    			'to_type'        => 'user',
    			'to_fieldname'   => 'display_name'
    		);
    
    		// User AIM (Stored in usermeta)
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'users_table',
    		//	'from_fieldname'  => 'the_users_aim',
    		//	'to_type'         => 'user',
    		//	'to_fieldname'    => 'aim'
    		//);
    
    		// User Yahoo (Stored in usermeta)
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'users_table',
    		//	'from_fieldname'  => 'the_users_yahoo',
    		//	'to_type'         => 'user',
    		//	'to_fieldname'    => 'yim'
    		//);
    
    		// User Jabber (Stored in usermeta)
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'users_table',
    		//	'from_fieldname' => 'the_users_jabber',
    		//	'to_type'        => 'user',
    		//	'to_fieldname'   => 'jabber'
    		//);
    
    		// 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'  => 'users_table',
    		//	'join_type'       => 'INNER',
    		//	'join_expression' => 'USING users_profile_table.the_user_id = users_table.the_user_id',
    		//	'from_expression' => 'WHERE users_table.the_user_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'] ) );
    	}
    }
    
    Benjamin
    Participant

    So I’m converting a forum that was originally written in Coldfusion. I have imported the data into MySQL and thought I had the forum converting correctly (all the threads were imported). However it seems like replies were added as topics and not joined with the topic they were associated with. I’ve banged my head against this problem and now have to ask for help from people who know much more than I do. In exchange I will buy you a coffee or dinner 🙂

    Here’s a screenshot of the database I’m importing from

    DB
    and the result
    Result

    Here is my importing script

    <?php
    
    /**
     * Implementation of ECO Forums converter.
     *
     * @since bbPress (r4689)
     * @link Codex Docs http://codex.bbpress.org/import-forums/custom-import
     */
    class VSI extends BBP_Converter_Base {
    
    	/**
    	 * Main Constructor
    	 *
    	 * @uses Example_Converter::setup_globals()
    	 */
    	function __construct() {
    		parent::__construct();
    		$this->setup_globals();
    	}
    
    	/**
    	 * Sets up the field mappings
    	 */
    	public function setup_globals() {
    
    		/** Forum Section *****************************************************/
    
    		// Setup table joins for the forum section at the base of this section
    
    		// Forum id (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_FORUMS',
    			'from_fieldname'  => 'forumid',
    			'to_type'         => 'forum',
    			'to_fieldname'    => '_bbp_forum_id'
    		);
    
    		// Forum parent id (If no parent, then 0. Stored in postmeta)
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'forums_table',
    		//	'from_fieldname'  => 'the_parent_id',
    		//	'to_type'         => 'forum',
    		//	'to_fieldname'    => '_bbp_forum_parent_id'
    		//);
    
    		// Forum topic count (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename' => 'ECOFORUMS_FORUMS',
    			'from_fieldname' => 'numberoftopics',
    			'to_type'        => 'forum',
    			'to_fieldname'   => '_bbp_topic_count'
    		);
    
    		// Forum reply count (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename' => 'ECOFORUMS_FORUMS',
    			'from_fieldname' => 'numberofreplies',
    			'to_type'        => 'forum',
    			'to_fieldname'   => '_bbp_reply_count'
    		);
    
    		// Forum total topic count (Stored in postmeta)
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'forums_table',
    		//	'from_fieldname' => 'the_total_topic_count',
    		//	'to_type'        => 'forum',
    		//	'to_fieldname'   => '_bbp_total_topic_count'
    		//);
    
    		// Forum total reply count (Stored in postmeta)
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'forums_table',
    		//	'from_fieldname' => 'the_total_reply_count',
    		//	'to_type'        => 'forum',
    		//	'to_fieldname'   => '_bbp_total_reply_count'
    		//);
    
    		// Forum title.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_FORUMS',
    			'from_fieldname'  => 'forumtitle',
    			'to_type'         => 'forum',
    			'to_fieldname'    => 'post_title'
    		);
    
    		// Forum slug (Clean name to avoid confilcts)
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'forums_table',
    		//	'from_fieldname'  => 'the_forum_slug',
    		//	'to_type'         => 'forum',
    		//	'to_fieldname'    => 'post_name',
    		//	'callback_method' => 'callback_slug'
    		//);
    
    		// Forum description.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_FORUMS',
    			'from_fieldname'  => 'forumdescription',
    			'to_type'         => 'forum',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_null'
    		);
    
    		// Forum display order (Starts from 1)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_FORUMS',
    			'from_fieldname'  => 'forumorder',
    			'to_type'         => 'forum',
    			'to_fieldname'    => 'menu_order'
    		);
    
    		// 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'
    		//);
    
    		/** Topic Section *****************************************************/
    
    		// Setup table joins for the topic section at the base of this section
    
    		// Topic id (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'messageid',
    			'to_type'         => 'topic',
    			'to_fieldname'    => '_bbp_topic_id'
    		);
    
    		// Topic reply count (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'replycount',
    			'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'  => 'topics_table',
    		//	'from_fieldname'  => 'the_total_topic_reply_count',
    		//	'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'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'forumid',
    			'to_type'         => 'topic',
    			'to_fieldname'    => '_bbp_forum_id',
    			'callback_method' => 'callback_forumid'
    		);
    
    		// Topic author.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'memberid',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_author',
    			'callback_method' => 'callback_userid'
    		);
    
    		// Topic author ip (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'ipaddress',
    			'to_type'         => 'topic',
    			'to_fieldname'    => '_bbp_author_ip'
    		);
    
    		// Topic content.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'forummessage',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_html'
    		);
    
    		// Topic title.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'forumsubject',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_title'
    		);
    
    		// Topic slug (Clean name to avoid conflicts)
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'topics_table',
    		//	'from_fieldname'  => 'the_topic_slug',
    		//	'to_type'         => 'topic',
    		//	'to_fieldname'    => 'post_name',
    		//	'callback_method' => 'callback_slug'
    		//);
    
    		// Topic parent forum id (If no parent, then 0)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'forumid',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_parent',
    			'callback_method' => 'callback_forumid'
    		);
    
    		// Sticky status (Stored in postmeta))
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'topics_table',
    		//	'from_fieldname'  => 'the_topic_sticky_status',
    		//	'to_type'         => 'topic',
    		//	'to_fieldname'    => '_bbp_old_sticky_status',
    		//	'callback_method' => 'callback_sticky_status'
    		//);
    
    		// Topic dates.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'datecreated',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_date',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'datecreated',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_date_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'dateupdate',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_modified',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'dateupdate',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_modified_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'topics_table',
    		//	'from_fieldname'  => 'the_topic_modified_date',
    		//	'to_type'         => 'topic',
    		//	'to_fieldname'    => '_bbp_last_active_time',
    		//	'callback_method' => 'callback_datetime'
    		//);
    
    		// Setup any table joins needed for the topic section
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'replies_table',
    		//	'from_fieldname'  => 'the_topic_id',
    		//	'join_tablename'  => 'topics_table',
    		//	'join_type'       => 'INNER',
    		//	'join_expression' => 'USING replies_table.the_topic_id = topics_table.the_topic_id',
    		//	'from_expression' => 'WHERE forums_table.the_topic_id = 0',
    		//	'to_type'         => 'topic'
    		//);
    
    		
    		/** Reply Section *****************************************************/
    
    		// Setup table joins for the reply section at the base of this section
    
    		// Reply id (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'threadid',
    			'to_type'         => 'reply',
    			'to_fieldname'    => '_bbp_post_id'
    		);
    
    		// Reply parent forum id (If no parent, then 0. Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'forumid',
    			'to_type'         => 'reply',
    			'to_fieldname'    => '_bbp_forum_id',
    			'callback_method' => 'callback_topicid_to_forumid'
    		);
    
    		// Reply parent topic id (If no parent, then 0. Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'replyto',
    			'to_type'         => 'reply',
    			'to_fieldname'    => '_bbp_topic_id',
    			'callback_method' => 'callback_topicid'
    		);
    
    		// Reply author ip (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'ipaddress',
    			'to_type'         => 'reply',
    			'to_fieldname'    => '_bbp_author_ip'
    		);
    
    		// Reply author.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'memberid',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_author',
    			'callback_method' => 'callback_userid'
    		);
    
    		// Reply title.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'forumsubject',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_title'
    		);
    
    		// Reply slug (Clean name to avoid conflicts)
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'replies_table',
    		//	'from_fieldname'  => 'the_reply_slug',
    		//	'to_type'         => 'reply',
    		//	'to_fieldname'    => 'post_name',
    		//	'callback_method' => 'callback_slug'
    		//);
    
    		// Reply content.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'forummessage',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_html'
    		);
    
    		// Reply order.
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'replies_table',
    		//	'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'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'replyto',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_parent',
    			'callback_method' => 'callback_topicid'
    		);
    
    		// Reply dates.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'datecreated',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_date',
    			'callback_method' => 'callback_datetime'
    		);
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'replies_table',
    		//	'from_fieldname'  => 'datecreated',
    		//	'to_type'         => 'reply',
    		//	'to_fieldname'    => 'post_date_gmt',
    		//	'callback_method' => 'callback_datetime'
    		//);
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECOFORUMS_MESSAGES',
    			'from_fieldname'  => 'dateupdate',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_modified',
    			'callback_method' => 'callback_datetime'
    		);
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'replies_table',
    		//	'from_fieldname'  => 'dateupdate',
    		//	'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'  => 'topics_table',
    		//	'from_fieldname'  => 'the_topic_id',
    		//	'join_tablename'  => 'replies_table',
    		//	'join_type'       => 'INNER',
    		//	'join_expression' => 'USING topics_table.the_topic_id = replies_table.the_topic_id',
    		//	'from_expression' => 'WHERE topics_table.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'  => 'ECO_MEMBERS',
    			'from_fieldname'  => 'member_id',
    			'to_type'         => 'user',
    			'to_fieldname'    => '_bbp_user_id'
    		);
    
    		// Store old User password (Stored in usermeta serialized with salt)
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECO_MEMBERS',
    			'from_fieldname'  => 'userpassword',
    			'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'  => 'users_table',
    		//	'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'  => 'ECO_MEMBERS',
    			'from_fieldname'  => 'login_id',
    			'to_type'         => 'user',
    			'to_fieldname'    => 'user_login'
    		);
    
    		// User nice name.
    		$this->field_map[] = array(
    			'from_tablename' => 'ECO_MEMBERS',
    			'from_fieldname' => 'login_id',
    			'to_type'        => 'user',
    			'to_fieldname'   => 'user_nicename'
    		);
    
    		// User email.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECO_MEMBERS',
    			'from_fieldname'  => 'emailaddress',
    			'to_type'         => 'user',
    			'to_fieldname'    => 'user_email'
    		);
    
    		// User homepage.
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'users_table',
    		//	'from_fieldname'  => 'the_users_homepage_url',
    		//	'to_type'         => 'user',
    		//	'to_fieldname'    => 'user_url'
    		//);
    
    		// User registered.
    		$this->field_map[] = array(
    			'from_tablename'  => 'ECO_MEMBERS',
    			'from_fieldname'  => 'accountcreated',
    			'to_type'         => 'user',
    			'to_fieldname'    => 'user_registered',
    			'callback_method' => 'callback_datetime'
    		);
    
    		// User status.
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'users_table',
    		//	'from_fieldname' => 'the_users_status',
    		//	'to_type'        => 'user',
    		//	'to_fieldname'   => 'user_status'
    		//);
    
    		// User display name.
    		$this->field_map[] = array(
    			'from_tablename' => 'ECO_MEMBERS',
    			'from_fieldname' => 'login_id',
    			'to_type'        => 'user',
    			'to_fieldname'   => 'display_name'
    		);
    
    		// User AIM (Stored in usermeta)
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'users_table',
    		//	'from_fieldname'  => 'the_users_aim',
    		//	'to_type'         => 'user',
    		//	'to_fieldname'    => 'aim'
    		//);
    
    		// User Yahoo (Stored in usermeta)
    		//$this->field_map[] = array(
    		//	'from_tablename'  => 'users_table',
    		//	'from_fieldname'  => 'the_users_yahoo',
    		//	'to_type'         => 'user',
    		//	'to_fieldname'    => 'yim'
    		//);
    
    		// User Jabber (Stored in usermeta)
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'users_table',
    		//	'from_fieldname' => 'the_users_jabber',
    		//	'to_type'        => 'user',
    		//	'to_fieldname'   => 'jabber'
    		//);
    
    		// 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'  => 'users_table',
    		//	'join_type'       => 'INNER',
    		//	'join_expression' => 'USING users_profile_table.the_user_id = users_table.the_user_id',
    		//	'from_expression' => 'WHERE users_table.the_user_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'] ) );
    	}
    }
    
    privatec2
    Participant

    Hi All,
    I am setting up a site to help me learn, so all this is very new to me so apologies for the silly questions if it seems straight forward to others,
    My Site is: martialartsavenue.com
    I am using AVADA themed WordPress, vers 5.9.1
    I have several plugins installed, including BBpress Version 2.5.14 and BuddyPress Version 4.3.0.

    Steps to Troubleshoot:
    -Spent hours on Google looking for other occurances and found several reports from years ago, and code suggestions, however i do not know how to code and scared it will cause more harm,
    -I tried disabling BuddyPress plugins but still no difference.
    -Tried creating a noreply@martialartsavenue.com email address in case anything was being sent to that, and confirmed nothing recieved.
    -I checked with my host- siteground that they couldn’t see anything being blocked on their Mail systems, nothing appearing to be the cause on their side.
    -Tried finding settings where i can add/modify email addresses or Enable/Disable who gets what and can not find.

    So, I would like to know, is there any fixes for this, or are others getting it as well
    -Any other suggestions I could try to fix it with?
    -Also, is the Site Admin meant to also get a copy of an email to all new Topics, or just the Creators?
    thanks,

    Robin W
    Moderator

    Put this in your child theme’s function file – or use https://en-gb.wordpress.org/plugins/code-snippets/

    and change ‘new text’ to whatever you want

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'Create New Topic') {
    	$translated_text = 'new text';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    #200368

    In reply to: bbPress like button

    Robin W
    Moderator

    people write plugins for free, and generally because they needed the functionality for their own site.

    They publish to help others, but they have no duty to support or maintain them. This is just free software.

    That they have not updated doesn’t mean it won’t work, for instance I have 6 plugins and every time wordpress publishes a new version I have to update the text in all 6 to make sure they say they are up to date, even though I have not altered any other code.

    When I last looked at this one it worked fine, but I cannot guarantee this.

    #200360

    In reply to: bbPress like button

    Mike Witt
    Participant

    “This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress”

    (And it was last updated four years ago)

    This seems to be the story with a bunch of “like button” plugins. I wonder why?

    #200359

    In reply to: bbPress like button

    Robin W
    Moderator

    bbp-valoration

    still works as far as I know

    #200355
    Robin W
    Moderator

    what php version are you running ?

    Display PHP Version

    #200339
    danbbpress
    Participant

    Hello,

    I have a legacy version of BBPress (0.9.0.2). I was going to migrate to the WordPress version, but that seems difficult plus mine isn’t a WordPress website.

    I’d like to ask for your advice: is it safe, security wise to keep this old version of BBPress? What could happen? I have activated several plugins, including the Human Test to keep a tight control over new posts.

    I’m also looking into deactivating new registrations/topics and keeping it online as an archive.

    Security is my main concern.

    Thank you.

    Daniel J. Lewis
    Participant

    I have a large bbPress forum where the wp_postsmeta table is 2 GB! Surprisingly, I’ve not had much trouble hosting that anywhere until I tried Flywheel.

    When bbPress is active, trying to log in through /wp-login.php gives me a 503 error and won’t let me into the dashboard. But if I remove bbPress from the plugins folder, I can log in successfully. This is 100% repeatable.

    The Flywheel people can log in with their own admin account, but they aren’t a forum “keymaster.”

    This site used to be WordPress Multisite but is now its own installation. Server is PHP 7.2.

    But this exact same site runs fine when hosted on Liquid Web, or my own server via Centminmod.

    Can you give any guidance? Unfortunately, the logs aren’t helpful.

    #200319
    lflier
    Participant

    Compared to BuddyPress, or a membership plugin like MemberPress, this is a surprisingly tedious thing to do in bbPress. I got 3/4 of the way to building it when I decided I really wanted the function on the membership account page and not in bbPress after all.

    But suppose you wanted to add a tab for a page on which a user could upload an avatar using one of the many WordPress avatar plugins. Here, roughly, are the steps you would follow:

    1. First, you have to create the tab. This is done by adding another list-item in bbpress/templates/default/bbpress/user-details.php.
    2. In the other menu items on this template, you’ll notice that the href for the link is created by a function like ‘bbp_user_profile_edit_url()’. That’s because the user’s display name has to be part of the link. So, what you’ve got to do next is look in bbpress/includes/users/template.php and find that function. Then you’ve got to copy it, rename it, and modify it so that it creates the link you want (e.g., ‘/forums/users/username/avatar/’ ).
    3. Next, you’ve got set up bbPress to parse that link. The parsing function is bbp_parse_query(), which is found at the bottom of bbpress/includes/core/template-functions.php. This function reads the URI and sets conditional tags (e.g., ‘bbpress_is_single_user_edit’) depending on what the URI is. The function is called from bbpress/includes/core/actions.php. You’ll need to copy this function somewhere else and rename it. Then remove the action that calls it and add an action that calls your function. Then, you’ll need to modify your function such that if the URI ends in ‘avatar’ it sets a conditional tag, e.g., ‘bbpress_is_single_user_avatar’.
    4. Templates are loaded based on the conditional tags, and there are functions that return true or false depending on what conditional tags are present, e.g. ‘bbp_is_single_user_edit()’. These are found in bbpress/includes/common/tempate.php. You’ll have to create one of these that returns true for ‘bbpress_is_single_user_avatar’.
    5. Once you’ve got that, then you can conditionally load the templates you want for the page. Templates are loaded in bbpress/includes/core/template-loader.php. The function is bbp_template_include_theme_supports(). It has a filter, so you can add a conditional that loads a template when ‘bbp_is_single_user_avatar()’ is true.

    As I said, I got about 3/4 of the way to doing this when I realized that it would be clearer in my application to have the avatar in the account area of my membership plugin. But I think this is roughly how you would do it in bbPress.

    #200247
    Barry
    Participant

    There are some different ways you might tackle this.

    https://gist.github.com/barryhughes/ae5ca5a4684f347e8ba81e88a6501801

    One is to use some code like I shared above, which could be added either to a custom plugin (preferred) or else to your theme’s functions.php file.

    Alternatively, you could create a custom template override for loop-single-topic.php and make a change within the <p class="bbp-topic-meta"> section.

    If that’s of interest/if you think you might prefer the second approach, we could explore the code you’d need to add to make it happen 🙂

    #200211

    In reply to: Need BBpress Help

    Robin W
    Moderator
    #200208
    anonymized-11014282
    Inactive

    Follow This link. Just a simple snippet.

    https://vvcares.com/w/wordpress-hide-pages-for-non-logged-in-users/

    The snippet will do:
    IF the user is not logged-in..
    AND the page name is ‘members’ OR ‘activity’ OR bp-profile-page..
    THEN it will redirect to REGISTER page.

    #200201
    vtm5978
    Participant

    hi there,

    i have a list of topics in the forum but its not listing all of them.
    kindly assist?

    1) WordPress 5.2
    2) bbPress 2.5.14
    3) link to my site – http://www.meddirect.co.za/forums

    #200197
    gymball88
    Participant

    try wordpresslogochange types of pluggin, it worked for me without coding. (I’m very much new to wordpress too)

    #200196
    gymball88
    Participant

    probably this is not the best option, but I installed a plugin to change wordpress logo.

    My issue was,, when my user try to reset their password, it takes to wordpress logo page.

    and I kinda of fix that problem with using pluggin, now at least my logo shows not wordpress logo.

    #200186
    artichoku
    Participant

    if it helps, this is the error i get when using the phpbb converter that comes with the installation of bbPress 2.5.14…

    
    WordPress database error: [Specified key was too long; max key length is 1000 bytes]
    CREATE TABLE wp_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 
    #200172
    bdd
    Participant

    I was JUST looking for a solution for this! I’d noticed the tab order was off when I was using tab to add a new post in a bbPress forum on my site.

    Did a little exploration, and found this post:

    WP Accessibility Plugin

    In this section about removing tabindex from focusable elements…

    WP Accessibility Plugin

    …it mentioned this plugin that might help:

    WP Accessibility

    And I found a few others along similar lines:

    WP Accessibility Helper (WAH)

    Accessibility by UserWay

    Just with installing the WP Accessibility Plugin (without making any tweaks to default settings), I noticed a difference. (Need to explore a bit more to see if my issue is solved.)

    #200157

    In reply to: _oembed_ good or bad ?

    Barry
    Participant

    Hmm…well, I don’t think it’s anything nefarious.

    WordPress is testing to see if any URLs inside those posts point to content that can be embedded and—though in your case I’m guessing that mostly is not the case, because it sounds like the result is mostly {{unknown}}—it then caches the result of its tests for better efficiency.

    If you don’t need or want this, you can disable it. I haven’t needed to do this and so have not tried any of the following guides myself, but perhaps they’ll be useful to you:

    yiprichie
    Participant

    Hi,

    The bbpress search box isnt returning the search results from the forum replies. Im using shuttlethemes as my theme. When i contacted them regarding my issue, this was their response below. Is there another way to go around and get the search box to work?

    ‘Often plugin developers will have different settings for specific use cases. It is certainly something that the plugin developer should be supporting you with, as the search is a part of WordPress core and our themes don’t manipulate the search functions.’

    Thank you in advance!

    Richard

    #200137

    In reply to: My Ugly Website

    Robin W
    Moderator

    you might want to do some further styling

    bbp style pack

    #200129
    zwdtk
    Participant

    By default, when joining a group in BuddyPress, you need to subscribe to associated forums. Is it possible to have it so that when you join a group, you are atomically subscribed to the forums as opposed to having to physically subscribe???

    WordPress 5.1.2 . BuddyPress 4.3 . bbPress . 2.5.14
    Thanks in advance.

Viewing 25 results - 3,151 through 3,175 (of 26,835 total)
Skip to toolbar