Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 951 through 975 (of 6,775 total)
  • Author
    Search Results
  • #200567
    Barry
    Participant

    Hmm, it’s possible there is some sort of conflict happening.

    It occasionally happens, for instance, that other plugins (or even your theme) generate additional admin menu entries at exactly the same position used by another plugin (in this case, bbPress). In such a case, one will ‘win’ and the other will not be visible. I don’t know that that is what is happening here, but it’s an example of the sort of conflict that is possible.

    Do you have a staging or testing site where you can deactivate all other plugins (except for bbPress) and switch to a default theme—do the admin menu items show up then?

    Alternatively, you could make use of the (humorously-named, but useful) poopy.life service to generate a brand new WordPress sandbox. It only stays alive for 24hrs, but that would possibly be enough time to see if you can install bbPress and use it successfully in a ‘clean’ environment. If you can, that would again indicate there is some kind of conflict on your live site.

    You could even troubleshoot ‘in reverse’ via this sandbox site, by incrementally adding your theme and other plugins and checking to see if any introduce this particular problem.

    #200458
    Barry
    Participant

    Using 2.6-rc-7 (and testing against Twenty Seventeen) I don’t seem to experience the same problem: if I locate a copy of that same stylesheet within:

    themes/twentyseventeen/css/bbpress.css

    It is loaded as expected, instead of the default version.

    #200425
    antonv
    Participant

    Hi guys, I am developing a website using 2.6-rc-7, and changing the default look of bbpress. (paged and threaded replies with alternating gray white backgrounds)

    I have one problem the style sheet located .../theme/ccs/bbpress.css is not loaded,

    I ended up in putting the css code into the theme style and deleting the default styles of the plugin.

    This is either a bug in 2.6-rc-7 or I am missing some coding finesse to make this happen. Any ideas?

    WP 5.2, PHP 7.1,

    PS. bbp 2.5.14 does not have above problem.

    #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'] ) );
    	}
    }
    
    vibhu000
    Participant

    I need to change the default text like “Create New Topic” to something more engaging like “Ask”. Does anyone know of any plugin that can do this?

    #200358
    Robin W
    Moderator

    It could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #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.

    #200282
    Robin W
    Moderator

    It could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    Helmuts
    Participant

    Is there a simple solution to force the site to ignore bbpress fonts and sizes?

    I want bbpress to respect and use the default font and size of the theme.

    Preferably in a form of few lines to be added to custom css of the active theme? I would prefer no to create child-theme (I’m using Neve) and definitely do not want to install additional plugins.

    My forum: ibf.lv

    I have made my forum as light as possible + made it full width and the 1st thing that can’t be ignored are different sizes and font of the forum 🙁

    Thank you 🙂
    Helmuts

    #200262
    Robin W
    Moderator

    It could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #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 
    #200185
    artichoku
    Participant

    hey there. So I’ve been trying to get the import to work for a few weeks and have zero luck whatsoever. I’ve tried the updated script found here:

    Hi All,

    Had the same issue as described above. The default phpbb.php import script didn’t convert anonymous users of topics and replies and the Pixenated script looped infinately with the conversion of users.

    I’ve fixed the script and uploaded to PasteBin. Feel free to share widely.
    https://pastebin.com/FpWsxsUG

    How To:
    1) Upgrade phpBB to v.3.2.5
    2) Install BBpress 2.6 RC7
    3) Upload to /wp-content/plugins/bbpress/includes/admin/converters/phpbb.php

    Remember that real men don’t do backups. They cry a lot. 🙂

    but it has not aleviated the import problem. I no longer see errors, but it just sits at “Starting conversion”. Not sure what my next step is…

    #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.)

    #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.

    xbladerunner
    Participant

    Hello. Is there suppose to be a registration link with the bbPress login form –my main wordpress login form has a registration link below it, but the login form on my bbpress forum pages does not. Here is an example of the forum login page which does not have a registration link (scroll to the bottom of the page): https://cincinnati.unitedresourceconnection.org/financial-assistance
    Here is an example of the main login page (that has a registration link): https://cincinnati.unitedresourceconnection.org/wp-login.php
    Does it look like I’ve configured something incorrectly, or is this the default behavior? I’m using the most recent version of wordpress and bbpress.

    nfusionco
    Participant

    I’m trying to import an old vBulletin (3.8.3) forum to a new bbPress (2.5.14) setupon WordPress 5.1.1 and the initial import looks great. It imports the users (~13k) says something about deleting their WordPress password, then a moment later it seems to hang and no matter how long I leave it we never progress.

    Calculating forum hierarchy (0 - 99)
    Converting forums (0 - 99)
    Delete users WordPress default passwords (12700 - 12799)
    Delete users WordPress default passwords (12600 - 12699)
    Delete users WordPress default passwords (12500 - 12599)
    Delete users WordPress default passwords (12400 - 12499)
    Delete users WordPress default passwords (12300 - 12399)

    Looking at the forum sections shows that it’s created the 22 forums and correctly set some of them as categories, they also show how many topics and replies are in each one correctly –

    — Random Thoughts - Topics: 3,119 Replies: 54,698

    But only 27 topics across the entire forum are imported. It’s the same 27 topics every time as well. To the point that if I stop the import, and hit the start button again, it imports these same 27 topics once more now showing 54. Is there an error log I can find that might show me why it’s hanging up? The bit above with the Calculating Hierarchy is the last update I ever get in the window. I added the lines to turn on debug logging in WordPress but nothing every shows up.

    define( 'WP_DEBUG', true ); // turn on debug mode
    if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
    	define( 'WP_DEBUG_LOG', true ); // log to wp-content/debug.log
    }
    #199887
    lflier
    Participant

    One of the problems I’ve encountered in trying to use the TinyMCE editor in bbPress is styling the text inside the editor itself. The default fonts are serif, but suppose you want sans?

    Attempting to override the font-family in the usual way — by modifying your theme’s CSS file — fails because the editor window of TinyMCE is in it’s own tiny little world as far as CSS is concerned.

    In order to get TinyMCE to use your own stylesheet, you have to pass it as an argument when the editor is called. Here’s how to do it in bbPress.

    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = array( 
                'content_css' => '/wp-content/themes/mytheme/css/tinymce-editor.css',
            );
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    In the example above, “tinymce-editor.css” is the CSS file you want the editor to use. It is located in a folder entitled “CSS”, which is located in your theme folder “mytheme”. The code above can be copied and pasted into your functions.php file.

    Other options for the editor can be found here. Notice that the value for “tinymce” can be an array. That’s what we’re doing above.

    Additional arguments to pass in the array for the TinyMCE editor can be found here.

    I hope this helps someone. The documentation for styling the editor text could be improved. I banged my head on this problem for years until I stumbled on the solution elsewhere.

    #199882
    Robin W
    Moderator

    bbpress does not have fixed separators – it has default ones.

    you can change simply by putting this in your child theme functions file or using code snippets plugin

    function custom_bbp_sub_forum_list() {
      $args['separator'] = 'whatever you want' ;
      return $args;
    }
     add_filter('bbp_after_list_forums_parse_args', 'custom_bbp_sub_forum_list' );
    

    You also seem to be confused by templates. Theme and plugin templates are exactly that and designed to be changed if wanted. With bbpress you simply follow

    Step by step guide to setting up a bbPress forum – part 3

    #199823
    narola
    Participant

    Topics and Replier are not linked after importing the bbpress forum data from one WP site to another already live WP site using wordpress default importer. (tools -> import).

    Imported properly in backend but on frontend topics and replies are not linked.

    Forum repair option event did not worked. This makes topics and replies count zero on frontend.

    Need solution ASAP.

    Thanks

    budget101
    Participant

    @lucio – I had the same issue, I wanted my topic list to appear above my subforums, here is the easy fix.

    go to> wp-content>plugins>bbpress>templates>default>bbpress

    Find content-single-forum.php

    select lines 28-32:

    
    		<?php if ( bbp_has_forums() ) : ?>
    
    			<?php bbp_get_template_part( 'loop', 'forums' ); ?>
    
    		<?php endif; ?>

    Find these lines:

    		<?php if ( bbp_has_forums() ) : ?>
    
    			<?php bbp_get_template_part( 'loop', 'forums' ); ?>
    
    		<?php endif; ?>

    Paste the 3 lines selected above UNDERNEATH those lines (Line #50)

    #199583

    In reply to: Menues does not work

    Robin W
    Moderator

    it will be a change

    It could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    #199581
    jgessentials
    Participant

    Hi,

    I am working on a product testimonials project and would like to know if bbpress is the right plugin for the job. Can it do the following:

    Visitors can search and view testimonials
    Visitors can create an account to post testimonials

    Testimonials will include
    Title
    Text
    product name text field: Product used
    product url text field: Product link
    if text field blank -> default will be used

    Account members can post questions under testimonials – original poster will be notified and can reply
    Possibly create a paid account where ads are removed.

    Thank you!!

    #199450
    jemar707
    Participant

    Hi Robin! Thanks for the reply.

    This is what I am using to reorder replies:

    // Reverse forum replies order from newer to older
     
    function custom_bbp_has_replies() {
    $args['order'] = 'DESC'; // ‘ASC’ (Ascending, Default), 'DESC' (Descending)
     
    return $args;
    }
     
    add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_has_replies' );
     
    function custom_bbp_show_lead_topic( $show_lead ) {
    $show_lead[] = 'true';
    return $show_lead;
    }
     
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
Viewing 25 results - 951 through 975 (of 6,775 total)
Skip to toolbar