Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 11,551 through 11,575 (of 26,873 total)
  • Author
    Search Results
  • #135287
    vogelsang
    Participant

    I am working on getting a drupal forum migrated to bbpress. I am using the bbpress importer tool. The forum I am migrating has about 4000 topics and 40000 replies. The migration works fine for a few topics, but seems to get stuck at random places after about a 1000 records are migrated. This makes me think that it is not a data problem. More likely some sort of timeout.

    Have any of you experienced something similar? I am running things locally with the most recent stable versions of WP and bbpress.

    Here is my script. It is not well-tested. Any suggestions for improvements are welcome and feel free to use it as part of bbpress in whatever way you feel like.

    
    <?php
    
    /**
     * Implementation of Drupal Forum converter.
     */
    class Drupal extends BBP_Converter_Base
    {
    	function __construct()
    	{
    		parent::__construct();
    		$this->setup_globals();
    	}
    
    	public function setup_globals()
    	{
    		/** Forum Section ******************************************************/
    
    		// Forum id. Stored in postmeta.
    		$this->field_map[] = array(
    			'from_tablename' => 'taxonomy_term_data', 'from_fieldname' => 'tid', //TODO correct ID??
    			'to_type' => 'forum', 'to_fieldname' => '_bbp_forum_id',
    		);
    		
    		// Forum parent id.  If no parent, than 0. Stored in postmeta.
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'forum', 'from_fieldname' => 'parentid',
    		//	'to_type' => 'forum', 'to_fieldname' => '_bbp_parent_id'
    		//);
    		
    		// Forum title.
    		$this->field_map[] = array(
    			'from_tablename' => 'taxonomy_term_data', 'from_fieldname' => 'name',
    			'to_type' => 'forum', 'to_fieldname' => 'post_title'
    		);
    		
    		// Forum slug. Clean name.
    		$this->field_map[] = array(
    			'from_tablename' => 'taxonomy_term_data', 'from_fieldname' => 'name',
    			'to_type' => 'forum', 'to_fieldname' => 'post_name',
    			'callback_method' => 'callback_slug'
    		);
    		
    		// Forum description.
    		$this->field_map[] = array(
    			'from_tablename' => 'taxonomy_term_data', 'from_fieldname' => 'description',
    			'to_type' => 'forum', 'to_fieldname' => 'post_content',
    			'callback_method' => 'callback_null'
    		);
    		
    		// Forum display order.  Starts from 1.
    		$this->field_map[] = array(
    			'from_tablename' => 'taxonomy_term_data', 'from_fieldname' => 'weight',
    			'to_type' => 'forum', 'to_fieldname' => 'menu_order'
    		);
    		
    		// Forum date update.
    		$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')
    		);
    
    		/** Topic Section ******************************************************/
    
    		// Topic id. Stored in postmeta.
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'nid',
    			'to_type' => 'topic', 'to_fieldname' => '_bbp_topic_id'
    		);
    		
    		// Forum id. Stored in postmeta.
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'tid',
    			'to_type' => 'topic', 'to_fieldname' => '_bbp_forum_id',
    			'callback_method' => 'callback_forumid'
    		);
    				
    		// Topic author.
    		$this->field_map[] = array(
    			'from_tablename' => 'node', 
    			'from_fieldname' =>  'uid',
    			'join_tablename'  => 'forum_index',
    			'join_type'       => 'INNER',
    			'join_expression' => 'ON node.nid = forum_index.nid',
    			'to_type' => 'topic', 
    			'to_fieldname' => 'post_author',
    			'callback_method' => 'callback_userid'
    		);	
    
    		// Topic content.
    		// Note: We join the posts table because topics do not have content.
    		$this->field_map[] = array(
    			'from_tablename'  => 'field_data_body',
    			'from_fieldname'  => 'body_value',
    			'join_tablename'  => 'node',
    			'join_type'       => 'INNER',
    			'join_expression' => 'ON field_data_body.revision_id = node.vid', 			
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_html'
    		);		
    				
    		// Topic title.
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'title',
    			'to_type' => 'topic', 'to_fieldname' => 'post_title'
    		);
    		
    		// Topic slug. Clean name.
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 
    			'from_fieldname' => 'title',
    			'to_type' => 'topic', 
    			'to_fieldname' => 'post_name',
    			'callback_method' => 'callback_slug'
    		);
    		
    		// Forum id.  If no parent, than 0.	
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'tid',
    			'to_type' => 'topic', 'to_fieldname' => 'post_parent',
    			'callback_method' => 'callback_forumid'
    		);
    
    		// Topic reply count
    		// $this->field_map[] = array(
    			// 'from_tablename'  => 'forum_index',
    			// 'from_fieldname'  => 'comment_count',
    			// 'to_type'         => 'topic',
    			// 'to_fieldname'    => '_bbp_reply_count'
    			// //,
    			// //'callback_method' => 'callback_topic_reply_count'
    		// );
    		
    		// Topic date update.
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'created',
    			'to_type' => 'topic', 'to_fieldname' => 'post_date',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'created',
    			'to_type' => 'topic', 'to_fieldname' => 'post_date_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'last_comment_timestamp',
    			'to_type' => 'topic', 'to_fieldname' => 'post_modified',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename' => 'forum_index', 'from_fieldname' => 'last_comment_timestamp',
    			'to_type' => 'topic', 'to_fieldname' => 'post_modified_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    
    		/** Tags Section ******************************************************/
    		
    		// Topic id.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'tagcontent', 'from_fieldname' => 'contentid',
    			// 'to_type' => 'tags', 'to_fieldname' => 'objectid',
    			// 'callback_method' => 'callback_topicid'
    		// );
    		
    		//Tags text.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'tag', 'from_fieldname' => 'tagtext',
    			// 'join_tablename' => 'tagcontent', 'join_type' => 'INNER', 'join_expression' => 'USING (tagid)',
    			// 'to_type' => 'tags', 'to_fieldname' => 'name'
    		// );		
    
    		/** Post Section ******************************************************/
    
    		// Post id. Stores in postmeta.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 'from_fieldname' => 'cid',
    			'to_type' => 'reply', 'to_fieldname' => '_bbp_post_id'
    		);
    		
    		// Forum id. Stores in postmeta.
    		$this->field_map[] = array(
    			'from_tablename' => 'forum', 
    			'from_fieldname' => 'tid',
    			'join_tablename'  => 'comment',
    			'join_type'       => 'INNER',
    			'join_expression' => 'ON forum.nid = comment.nid',
    			'to_type' => 'reply', 'to_fieldname' => '_bbp_forum_id',
    			'callback_method' => 'callback_topicid_to_forumid'
    		);
    		
    		// Topic id. Stores in postmeta.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 'from_fieldname' => 'nid',
    			'to_type' => 'reply', 'to_fieldname' => '_bbp_topic_id',
    			'callback_method' => 'callback_topicid'
    		);
    		
    		// Author ip.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 'from_fieldname' => 'hostname',
    			'to_type' => 'reply', 'to_fieldname' => '__bbp_author_ip'
    		);	
    			
    		// Post author.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 'from_fieldname' => 'uid',
    			'to_type' => 'reply', 'to_fieldname' => 'post_author',
    			'callback_method' => 'callback_userid'
    		);
    		
    		// Topic title.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 'from_fieldname' => 'subject',
    			'to_type' => 'reply', 'to_fieldname' => 'post_title'
    		);
    		
    		// Topic slug. Clean name.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 
    			'from_fieldname' => 'subject',
    			'to_type' => 'reply', 
    			'to_fieldname' => 'post_name',
    			'callback_method' => 'callback_slug'
    		);
    		
    		// Post content.
    		// Note: We join the posts table because topics do not have content.
    		$this->field_map[] = array(
    			'from_tablename'  => 'field_data_comment_body',
    			'from_fieldname'  => 'comment_body_value',
    			'join_tablename'  => 'comment',
    			// 'join_type'       => 'INNER',
    			'join_expression' => 'ON field_data_comment_body.entity_id = comment.cid',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_html'
    		);	
    		
    		// Post content.
    		// BRUGES IKKE - SE OVENFOR
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'post', 'from_fieldname' => 'pagetext',
    			// 'to_type' => 'reply', 
    			// 'to_fieldname' => 'post_content',
    			// 'callback_method' => 'callback_html'
    		// );
    		
    		// Topic id.  If no parent, than 0.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 'from_fieldname' => 'nid',
    			'to_type' => 'reply', 'to_fieldname' => 'post_parent',
    			'callback_method' => 'callback_topicid'
    		);
    
    		// Topic date update.
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 
    			'from_fieldname' => 'created',
    			'to_type' => 'reply', 
    			'to_fieldname' => 'post_date',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 
    			'from_fieldname' => 'created',
    			'to_type' => 'reply', 
    			'to_fieldname' => 'post_date_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 
    			'from_fieldname' => 'changed',
    			'to_type' => 'reply', 
    			'to_fieldname' => 'post_modified',
    			'callback_method' => 'callback_datetime'
    		);
    		$this->field_map[] = array(
    			'from_tablename' => 'comment', 
    			'from_fieldname' => 'changed',
    			'to_type' => 'reply', 
    			'to_fieldname' => 'post_modified_gmt',
    			'callback_method' => 'callback_datetime'
    		);
    
    		/** User Section ******************************************************/
    
    		// Store old User id. Stores in usermeta.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'users', 'from_fieldname' => 'uid',
    			// 'to_type' => 'user', 'to_fieldname' => '_bbp_user_id'
    		// );
    		
    		// Store old User password. Stores in usermeta serialized with salt.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'users', 'from_fieldname' => 'pass',
    			// '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
    		// todo ???
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'users', 'from_fieldname' => 'salt',
    		//	'to_type' => 'user', 'to_fieldname' => ''
    		//);
    				
    		// // User password verify class. Stores in usermeta for verifying password.
    		// $this->field_map[] = array(
    			// 'to_type' => 'users', 'to_fieldname' => '_bbp_class',
    			// 'default' => 'Vbulletin'
    		// );
    		
    		// // User name.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'users', 'from_fieldname' => 'name',
    			// 'to_type' => 'user', 'to_fieldname' => 'user_login'
    		// );
    				
    		// // User email.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'users', 'from_fieldname' => 'mail',
    			// 'to_type' => 'user', 'to_fieldname' => 'user_email'
    		// );
    		
    		// User homepage.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'users', 'from_fieldname' => 'homepage',
    			// 'to_type' => 'user', 'to_fieldname' => 'user_url'
    		// );
    		
    		// User registered.
    		// $this->field_map[] = array(
    			// 'from_tablename' => 'users', 'from_fieldname' => 'created',
    			// 'to_type' => 'user', 'to_fieldname' => 'user_registered',
    			// 'callback_method' => 'callback_datetime'
    		// );
    		
    		// User aim.
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'users', 'from_fieldname' => 'aim',
    		//	'to_type' => 'user', 'to_fieldname' => 'aim'
    		//);
    		
    		// User yahoo.
    		//$this->field_map[] = array(
    		//	'from_tablename' => 'users', 'from_fieldname' => 'yahoo',
    		//	'to_type' => 'user', 'to_fieldname' => 'yim'
    		//);	
    	}
    	
    	/**
    	 * 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'] ) );
    	}
    
    }
    
    #135285
    mikeRONALDO
    Participant

    Hi there!

    In my website i am using Typo3 as CMS, and now i’m thinking to build a new website but with WordPress…In the current wesbite, i use a plugin called mm_forum that works as a Forum of my website, and i am wondering if bbPress can import the users, posts, and other stuff from it, so i can “migrate” the data to the new website built in WordPress.

    Thank you very much

    #135283
    eldesperado
    Participant

    Hello,
    – bbPress Version : 2.3.2
    – WordPress Version : 3.5.2
    – PHP/MySQL Version : PHP 5.3/MySQL 5.1
    – Theme : Twenty Twelve (modified)
    – website adress : local (127.0.0.1/etc …)

    I just discovered this extension by mordauk and I made some changes on it to display on a page WordPress, the profile page from bbPress.

    In includes/common/shortcodes.php :

    
    <em>/*line 92 :*/</em>
    			'bbp-profile-edit'     => array( $this, 'display_profile_edit'  ), // User Profile
    <em>/*lines 747 to 762 :*/</em>
    	 public function display_profile_edit() { 
     		 
     		                // Unset globals 
     		                $this->unset_globals(); 
     		 
     		                // Start output buffer 
     		                $this->start( 'bbp_profile_edit' ); 
     		 
     		                // Output templates 
     		                if ( is_user_logged_in() ) 
     		                        bbp_get_template_part( 'content', 'single-user'        ); 
     		 
     		                // Return contents of output buffer 
     		                return $this->end(); 
     	 
     	       } 

    My problem is that the profile page is displayed correctly, but none of the links work.
    Someone has an idea to solve this ?

    Thanks

    #135281
    moeller84
    Participant

    Hello everyone,

    Completely new to bbPress here, so bear with me.

    I’m running a forum in PHP-fusion, but want to join the wonderful world of bbPress and WordPress and the endless possibilities they present.

    However i have encountered a problem as i want to transfer all the existing members and preferably old forum posts and blog posts to bbpress. I have been looking pretty much everywhere, but it seems like this is not possible unless i create some customized script.

    This is way beyond my capabilities, so now im turning to the forum to ask if there really isnt any possibilites for making such a transfer/conversion or anyone have some great tips on what to do?

    Thx in advance

    #135277
    cappazushi
    Participant

    I’m trying to set up a forum on a beta (read: fresh) install of WordPress before I move it over to live. However, I can’t get any widgets to show up on the forums, no matter what theme I am using. Instead, all I get is a 2/3 width forum and a blank widget sidebar.

    What can I do to fix this?

    #135263

    In reply to: Where is my forum?

    m4j4
    Participant

    Hi, Trifon,

    I also have trouble installing bbpress in my WordPress.

    I do follow the instructions on https://codex.bbpress.org/getting-started-with-bbpress/

    1. I go to the Add plugin section.
    2. I find bbpress.
    3. I install it.
    4. I activate it (Here, when clicling the Activate button for the first time, the system says “You do not have the priviliges …”,, so I click the Activate button again and then it works. So I do manage to install bbpress. It is visible in the list of my plugins. Everything seems OK.)
    5. But the problem is that bbpress does not appear in Settings sections (menu of wordpress on the left). So I do not know how ta access it, work with it.

    I would be greatfull for some further instructions.

    #135249
    Tecca
    Participant

    From what I can see, Enfold is just another WordPress theme that has edited some bbPress CSS and files. If that’s the case, then everything will be fine — you’d still be using your WordPress install with the bbPress plugin, so your tables wouldn’t go anywhere.

    qassoom
    Participant

    After turning on the automatic upgrade for my plugins, one day I walk in the forum page of my website and I get this

    http://qassoom.me/techie/forum/the-assembly/

    I am using PHP Ease theme
    http://www.php-ease.com/wordpress/themes/framework.html

    Wordpress Version 3.5.2

    bbPress Version 2.3.2

    Your help will be more than appreciated!!!

    #135244
    Sameer
    Participant

    @Rasheed you are great man, its working 🙂

    i was following the below links and i was just stuck ( it was not working)

    https://codex.bbpress.org/bbpress-in-your-language/
    http://www.anttivaihia.com/blog/2012/06/how-change-language-bbpress-20

    I think they should update the above contents to save others time as your solution works like charm 🙂

    Once again thanks you very much

    #135243
    Rasheed Bydousi
    Participant

    it is “bbpress-ar.mo”

    #135242
    Sameer
    Participant

    is this bbpress-ar.mo or bbpress-ar_AR.mo ??
    i am confused now 🙁

    #135241
    Rasheed Bydousi
    Participant

    Add the file “bbpress-ar.mo” to the path:
    /public_html/wp-content/languages/bbpress/

    #135240
    Sameer
    Participant

    @Rasheed

    Thanks bro, really you made my life easy.

    one thing more i have replaced the old file with this one how should i delete the cache as its not reflecting the changes

    Thanks in advance

    #135239
    Rasheed Bydousi
    Participant

    You have an “export” link at the bottom of the page:
    https://translate.wordpress.org/projects/bbpress/dev/ar/default

    #135238
    Sameer
    Participant


    @Rasheed

    Can you please share Arabic Language files for bbPress 2.2.3
    I didn’t find it for latest version of bbPress

    Thanks in advance

    #135223
    Zachary DuBois
    Participant
    #135220

    Topic: Installing a theme

    in forum Themes
    markusloffler
    Participant

    Hi all,
    I installed the latest version of wordpress and then bbpress on top of it.

    How do I install themes, like the ones that can be found here: http://bbshowcase.org/forums/view/available-themes/page/2? I searched through the web, but I couldn’t figure out how.

    ZĂ© Fontainhas
    Participant

    From https://bbpress.trac.wordpress.org/ticket/2151 ,here’s a quick hack to turn bbPress activity recording on, on sites that have the Discourage search engines option checked. Put this somewhere in functions.php or in your own plugin’s code:

    
    <?php
    
    add_filter( 'bbp_is_site_public', 'yourownprefix_enable_bbp_activity', 10, 2);
    
    function yourownprefix_enable_bbp_activity( $public, $site_id ) {
    	return true;
    }
    
    ?>
    
    Erlend
    Participant

    Today I had a guest post published on WP Tavern which is largely about bbPress. It also talks about functionality like @ddean ‘s Topics for Posts plugin.

    Dear Automattic: You Are Losing The Debate

    #135186
    Xarcell
    Participant

    There are several tutorials on ow to create your own bbpress theme to work with your wp child theme, but none of them work. Can someone point me in the right direction or tell me how to do it?

    I’m planning on making a WordPress theme that also works with buddyPress and bbPress. However, I cannot figure out how to create a custom bbPress theme that will be installed with my WP theme.

    Thanks.

    #135185
    dtbaker
    Participant

    @aaclayton – currently using this plugin: https://wordpress.org/plugins/bbpress-unread-posts/

    yes this plugin does add a meta key to each post for tracking unread status. Do you know of a better plugin that does this in a more elegant fashion?

    #135180
    Sam Scholfield
    Participant

    Hi All,

    I just updated WordPress, in doing so I can no longer see the links for the Forum that are normally in the admin sidebar (Forums, Topics, Replies).

    I can see where they are meant to be as the space that is normally above and below it is still there.

    I have disabled all plugins to make sure it wasn’t a conflict there.

    Any ideas how to fix this?

    Thanks,
    Sam

    #135179
    dtbaker
    Participant
    #135147
    GGGamers
    Participant

    Hi i want to add a button (create new post) which is when click user can able to make a new post…I will do just same like wordpress forum do here is the link( http://wordpress.org/support/forum/installation). I basically add the button that simple work in the same as like wordpress (Add new) button can do..
    please guide me how can i do that, tell me the code if any aur where should i add the code.Thanks

    #135136

    In reply to: Page Layout Question

    jeanbledsoe
    Participant

    I’m having the same issue. I designed the client’s site using Impact Page Builder. But when I use bbPress to set up forums, the option to assign an Impact template is not there. Therefore, the forum looks like this: http://northidahocvma.org/forums/forum/forum-2?preview=true&preview_id=607&preview_nonce=7b2aed77ba
    Instead of having the Impact styling like this: http://northidahocvma.org/
    I’m using the latest versions of both WordPress & bbPress with Twenty Twelve theme. Any other suggestions?

Viewing 25 results - 11,551 through 11,575 (of 26,873 total)
Skip to toolbar