Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'register'

Viewing 25 results - 451 through 475 (of 4,248 total)
  • Author
    Search Results
  • #202215
    Robin W
    Moderator

    bbpress just uses wordpress users, so if they are registered as part of your course, then bbpress will allocate them the default role (if you change nothing, then that is participant) on first login

    #202212
    kevengland
    Participant

    I’m wondering if it is possible to automatically register a user. I have an online course that is delivered via a platform called “Teachable” and I use a bbPress Forum as part of that course. What I’d like to do is automatically generate an account for people that have bought my course, so that they do not need to create another log-in for the forum.
    Any ideas on whether this is possible and how to do it? There’s usually a plugin for most things like this!
    Thanks in advance.

    #202158

    In reply to: change forum sidebar

    amandainjames
    Participant

    I think you want to add a custom widget in your theme. You can add custom widget adding this code in functions.php

    function wpblog_widget()
    {
        register_sidebar(array(
            'name' => __('Primary Sidebar', 'wpb'),
            'id' => 'primary_sidebar', // unique-sidebar-id
            'description' => '',
            'class' => '',
            'before_widget' => '<li id="%1$s" class="widget %2$s">',
            'after_widget' => '</li>',
            'before_title' => '<h2 class="widgettitle">',
            'after_title' => '</h2>',
        ));
    
    }
    
    add_action('widgets_init', 'wpblog_widget');

    Reference: WordPress Custom Widgets

    #202153
    amandainjames
    Participant

    I will suggest you to go through a WordPress custom taxonomy tutorial. Here are three steps to create a custom taxonomies in WordPress. To create a custom taxonomy you have to add this code in functions.php

    add_action( 'init', 'create_cw_hierarchical_taxonomy', 0 );
    //create a custom taxonomy name
    function create_cw_hierarchical_taxonomy() {
    $labels = array(
    'name' => _x( 'Topics', 'taxonomy general name' ),
    'singular_name' => _x( 'Topic', 'taxonomy singular name' ),
    'search_items' => __( 'Search Topics' ),
    'all_items' => __( 'All Topics' ),
    'parent_item' => __( 'Parent Topic' ),
    'parent_item_colon' => __( 'Parent Topic:' ),
    'edit_item' => __( 'Edit Topic' ),
    'update_item' => __( 'Update Topic' ),
    'add_new_item' => __( 'Add New Topic' ),
    'new_item_name' => __( 'New Topic Name' ),
    'menu_name' => __( 'Topics' ),
    );
    // taxonomy register
    register_taxonomy('topics',array('post'), array(
    'hierarchical' => true,
    'labels' => $labels,
    'show_ui' => true,
    'show_admin_column' => true,
    'query_var' => true,
    'rewrite' => array( 'slug' => 'topic' ),
    ));
    }
    #202113
    The Stash House
    Participant

    Hi Robin,

    I have the same issue as 9march using this code in my functions.php :

    /**
     * BBPress : add new role with custom capabilities
     * https://codex.bbpress.org/custom-capabilities/
     */
    
    //code to add "client" role
    
    function add_new_roles( $bbp_roles )
    {
        /* Add a role called tutor */
        $bbp_roles['bbp_client'] = array(
            'name' => 'Client',
            'capabilities' => custom_capabilities( 'bbp_client' )
        );
    
        return $bbp_roles;
    }
    add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 );
    
    function add_role_caps_filter( $caps, $role )
    {
        /* Only filter for roles we are interested in! */
        if( $role == 'bbp_client' )
            $caps = custom_capabilities( $role );
    
        return $caps;
    }
    add_filter( 'bbp_get_caps_for_role', 'add_role_caps_filter', 10, 2 );
    
    function custom_capabilities( $role )
    {
        switch ( $role )
        {
    
            /* Capabilities for 'client' role */
            case 'bbp_client':
                return array(
                    // Primary caps
                    'spectate'              => true,
                    'participate'           => true,
                    'moderate'              => false,
                    'throttle'              => false,
                    'view_trash'            => false,
    
                    // Forum caps
                    'publish_forums'        => false,
                    'edit_forums'           => false,
                    'edit_others_forums'    => false,
                    'delete_forums'         => false,
                    'delete_others_forums'  => false,
                    'read_private_forums'   => true,
                    'read_hidden_forums'    => false,
    
                    // Topic caps
                    'publish_topics'        => false,
                    'edit_topics'           => false,
                    'edit_others_topics'    => false,
                    'delete_topics'         => false,
                    'delete_others_topics'  => false,
                    'read_private_topics'   => true,
    
                    // Reply caps
                    'publish_replies'       => true,
                    'edit_replies'          => true,
                    'edit_others_replies'   => false,
                    'delete_replies'        => false,
                    'delete_others_replies' => false,
                    'read_private_replies'  => true,
    
                    // Topic tag caps
                    'manage_topic_tags'     => false,
                    'edit_topic_tags'       => false,
                    'delete_topic_tags'     => false,
                    'assign_topic_tags'     => true,
                );
    
                break;
    
            default :
                return $role;
        }
    }

    always ending with “-No roles for this forums-” like the new role for the newly registered user was not saved.

    Regards,

    David

    #202106
    stofilter
    Participant

    Hello bbPress support,

    I’d like to use a custom register page, is this available in the free version?

    Also, are there any paid versions for bbpress? if so, what are the differences between the free and paid version?

    Thanks

    #202040
    Robin W
    Moderator

    As the ‘about’ page says ‘We’re keeping things as small and light as possible while still allowing for great add-on features through WordPress’s extensive plugin system.’

    so bbpress will be maintained, but their will not be lots of features added – many are provided by others eg

    Private groups This Plugin creates unlimited private forum groups
    bbp style pack Lets you style bbpress, and add display features
    bbp topic count Adds any combination of topics, replies and totals under the authors avatar in topics and replies
    bbp profile information Adds up to 4 fields to the bbp user profile and displays any combination of these under the authors avatar in topics and replies
    bbp user ranking Lets you add ranking and badges to topics and replies and profiles
    bbP Toolkit Swiss knife tweaking and hacking Toolkit for bbPress. Set global options and style your forums.
    bbpress sort topics/replies Sort topic replies in ascending or descending order for each bbPress Topic. You can choose to save setting for each topic, for the whole Forum or set globally for every Topic
    bbPress Genesis Extend Provides basic compatibility with bbPress and the Genesis Framework with a few extra goodies
    bbPress – Moderation Tools Add the ability to moderate and approve new topics and replies in bbPress
    bbP Signature This plugin adds user signature support to bbPress
    bbPress2 BBCode This plugin adds support for popular bbcode forum code to posts, comments, pages, bbpress forums and buddypress activity and group forums.
    GD bbPress Attachments Implements attachments upload to the topics and replies in bbPress plugin through media library and adds additional forum based controls.
    bbPress Go To First Unread Post Allows registered bbPress users to quickly jump to the first unread post in a topic
    bbPress Topics for Posts Replace the comments on your WordPress blog posts with topics from an integrated bbPress install
    Inline Image Upload for BBPress Upload inline images to BBPress forum topics and replies.
    bbpress Simple Advert Units Insert advert units (such as adsense or Amazon widgets) into your bbpress forum.
    bbPress – Private Replies A simple plugin to allow your bbPress users to mark their replies as private.
    bbPress Messages bbPress Messages – User Private Messages with notifications, widgets and media with no BuddyPress needed.
    bbP Move Topics Move topics from one forum to another, convert post/comments into topic/replies in the same site.
    bbp user online status A WordPress plugin to show user online/offline statuses in bbpress topics and replies
    bbp-valoration Adds thumbsup, visits and replies count to topics on bbpress, display results on a widget.
    BBP Auto-Close Topics BBP Auto-Close Topics will automatically close bbPress topics after an admin-specified time period.
    bbResolutions bbResolutions, will let you set topic resolutions (Resolved, Not resolved and Not a question).
    Inline Image Upload for BBPress Upload inline images to BBPress forum topics and replies
    bbPress Advanced Statistics Achieve phpBB / vBulletin-esque statistics for your bbPress Forum
    bbPress Custom Email Notifications Modify subscription emails sent to users
    Canned Replies Let’s moderators and keymasters create standard replies and use these in responses
    BBP Improvements for yoast This is a very simple but very helpful tool to help yoast wordpress seo support bbpress better.
    bbPress GDPR bbPress GDPR plugin extends new Data Export & Data Erasure feature bundled with WordPress 4.9.6 Release.
    AsynCRONous bbPress Subscriptions Amends how bbpress sends emails

    This may or may not suit what you require

    #201885

    Hey everyone! I got a nudge from @jeffr0 that this thread had some replies, and I just wanted to chime in and say thank you, very much, for being patient.

    I understand everyone’s feelings. I get where they come from.

    bbPress is a 15 year old piece of forum software based on and specifically for WordPress. The last thing it will ever do is die. (That’s a terrible play on words, but keep reading!)

    The GPL (and it being open-source in general) guarantee everyone that as different people use it, different people will contribute to it, and it will continue to grow, evolve, and be iterated on in perpetuity.

    It being based entirely on WordPress gives it one of the largest and most stable foundations to be built off of.

    The projects spiritual commitment to backwards compatibility through the years means that as the software grows, your content will always grow with it.

    Other forum projects have made sweeping changes without migration paths from old to new versions. bbPress as a project simply appreciates and respects its users and their communities and content too much to not provide great tools to scale your community along with the software.

    bbPress as a project gets developed in bursts. Like it or not, I think that’s the honest truth. If you look at its life as a piece of software as a whole, there is a ton of evidence to support the idea that sometimes a few months will go by with nothing, and then a few months will go by with tons of activity.

    The dips might make your stomach drop at first, but it’s a long ride… a fun ride… and one that I hope others see from a distance as a beautiful effort. One that provides a platform that empowers WordPress users to give their visitors a simple, clean, and dedicated place to enjoy communicating with each other.

    Lastly… strictly on numbers alone, WordPress.org relies heavily on bbPress as the primary method of communication & support for over 75k plugins in 200 languages, and 11 million registered users. bbPress is actively installed in over 340k websites. It’s a fraction of the total WordPress installs (but if the numbers on builtwith and other tools are accurate) it is currently the most widely installed piece of forum software in the world.

    bbPress will never die. It will only get better.

    Thank you, everyone, again, for being patient and for your interest in bbPress. It’s a pretty cool piece of software with some of the best contributors and forum moderators around! I’m working on bbPress everyday, sometimes in my head, and sometimes on other projects that bbPress will inherit someday. It’s always on my mind, even if the commit log doesn’t show it. 💕

    #201651

    In reply to: Edit Pagination Range

    armyadarkness
    Participant

    The forum is private, but the site is not. I will happily register you so that you can view the forum if you like.

    mattbru
    Participant

    What is the secret to modifying/changing the query on the topic archive page? I want to list all topics on that page rather than have 16, and i do not want pagination. On normal wordpress post types this is easily done with pre_get_posts filter. But how is it done with bbpress?

    I have tried this:

    
    function bbp_change_topic_archive_query_args( $query = array() ) {
    	$query['order'] = 'asc';
    	$query['orderby'] = 'title';
    	$query['post_count'] = -1;
    	$query['posts_per_page'] = -1;
    	return $query;
    }
    add_filter('bbp_has_topics_query','bbp_change_topic_archive_query_args');

    and this: (but this requires a shortcode to work properly)

    function bbp_my_register_custom_views() {
    	bbp_register_view( 
    		'asc', __( 'A-Z' ), 
    		array(
    			'orderby' => 'title',
    			'order' => 'ASC',
    			'post_count' => '-1',
    			'posts_per_page' => '-1',
    			'hide_empty' => false,
    		), false );
    }
    add_action( 'bbp_register_views', 'bbp_my_register_custom_views' );

    What else can be done?
    This has to be possible.

    wp v5.2.2, bbp 2.5.14
    site is a pw protected site. I can give access privately if necessary.

    Thanks!

    #201530
    #201119
    Morphim
    Participant

    Hello.
    I’ve just changed host and one of the WP sites I have included a bbpress forum. Someone else managed the site; I only ever updated the core and plugins and didn’t really pay much attention to it other than to see the main site was still working OK. I think I probably missed something regarding this a few years back.

    However, having moved it, I realise the BBpress forum isn’t working. I’m not sure if it was working on the old site but my hunch is that BBpress has changed.

    The old forum was located at http://mysite/bbpress
    whereas now, I think BBpress is integrated into WP (which is great, by the way)

    I also have a bbpress config file with settings for the DB. I’m thinking this is also redundant too as it seems the bbpress settings are just stored in the regular WP db tables.

    I can see my old forum within the bb_forums, bb_meta, bb_post table of my db but in the admin of WP, under the ‘forums’ menu I see ‘no forums’

    So, my question is, how do I get the info from the bb_ tables to register as an integrated forum in the new bbpress?

    Thanks very much in advance if you can help.

    By the way, the old site is no more as I have already switched hosts.

    bleec
    Participant

    Hi
    Is there any way to show a topic created in a forum, on a page within wordpress? Say the home page.

    However I want it to look like a normal post that’s been created in wordpress, not a section of bbpress. From what I can tell so far, it shows like a section of bbpress forum.

    It’s like sometimes when you browse a website, in the sidebar is almost like a snippet of the forum post. It gets your attention. Then if you click on it, it takes you to the forum where you sign in/register. I’m after this if possible?

    #200780
    deheugden
    Participant

    Guys,

    I am looking for a forum that has an integrated chat/shout box. but, the shout/chatbox should be available for guests to, without login. But they need to enter a nickname.

    Now i am having a sperate forum and a seperate chatbox. Users need to register twice and i dont find that convenient. Also, the chat is on the mainpage, thats the first thing users see when they come to my site.

    Anyone who can advice me with this?

    #200688

    In reply to: Menu link to Profile

    pooyanshabani
    Participant

    hi, i have a problem !
    i want when users click on button in the page, if they are logged in, redirect to their profile
    (http://mywebsite.com/members/me/) but if they arent log in, they are redirect to login page (http://mywebsite.com/login)
    like login/register buddypress in the wp menu !!!

    #200571
    9march
    Participant

    Hi robin,

    I have the same issue on my site, I added the code as it is but when i give a user the ‘tutor’ role, After saving the role disappears and the user has no bbpress role assigned to them.Even i i signup as a subscriber, If the default role is set to be ‘tutor’ The newly registered user ends up with no bbpress role.

    Thanks,

    #200543
    kjhjkhjk
    Participant

    Hello, ok, how can I add automatically users to a new group? Because when a new user is registered I need to manually add that user, or users to a group, so they can see the topics in the forums…

    But the idea is when a user is logged out, he can see the forums but no the topics, then if he’s is registered, they can enter automatically to the topics, But actually…I need to add manually every new user to the group, so the can see the topics only if I add them to the groups from the admin panel…

    #200527
    kjhjkhjk
    Participant

    I’m using bbp private groups to set forum from a group as private, but I want to enable that everyone can see the “topics titles” of the forums, then, when they click to one of this topics, they will be redirected to the registration page for a signup, register, etc.

    It this possible?

    Thanks

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

    Hi! I’ve been reading a lot of threads like this but I can’t find the solution. When a user registers on my webpage I receive the email “New User Registration” but the user does not receive the email. My website is http://www.motoadicted.top and my email admin@motoadicted.top, so I think the domain is not the problem. When a user tries to register I receive also this message:

    “Mail failure – rejected by local scanning code
    A message that you sent was rejected by the local scanning code that
    checks incoming messages on this system. The following error was given:

    This message was classified as SPAM and may not be delivered”

    Thanks for reading.

    #200269
    carljmcginn
    Participant

    Yes, it is Do-follow that means, your website is indexing in search engine

    You can also check your complete website report by registering your site in google search console.

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

    #200175
    zenoism
    Participant

    Hi,

    I really like bbpress, but i’ve been having a problem on my website. I’ve downloaded the plugin, activated it. Created forum, register, and lost password pages. Checked “Anyone can register” in settings. Yet, when I try to to register with username and email address in Incognito mode to test it out. after clicking the final “register” button the page just acts as if it refreshed. and no verification is sent to my email address.

    Somebody help..

Viewing 25 results - 451 through 475 (of 4,248 total)
Skip to toolbar