1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Fresh Install

Discussion in 'XenForo Questions and Support' started by xH3LLRAIZ3Rx, Aug 28, 2015.

  1. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    Im going to completely redo my site and do a fresh install, is it possible to keep the user's and threads but completely remove the Database, or am I able to make a new database for the fresh install then copy over the tables for the User's and Threads?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That is not usually supported. A new install and new database would be completely blank. Bringing over those items would require running an import (in the Admin CP) from the old database to the new one.
     
  3. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    but is it possible without breaking anything?
     
  4. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    ahh I see you can select what to import, yay, please don't tell me it breaks anything
     
  5. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    does this work for Xenforo 1.5?
     
  6. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    the importing I mean from Xenforo 1.5 to new Fresh 1.5 site
     
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yes it will work on XF 1.5
     
  8. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    you can select what you want to import right?
     
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It will present you with all of the import modules. You don't have to run them all, but some depend on others and so they won't all be selectable until you run the requisite modules.
     
  10. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    what are the requirements to run the User and Thread imports?
     
  11. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    library/XenForo/Importer/XenForo.php

    Code:
    public function getSteps()
    	{
    		return array(
    			'userGroups' => array(
    				'title' => new XenForo_Phrase('import_user_groups')
    			),
    			'userFields' => array(
    				'title' => new XenForo_Phrase('import_custom_user_fields'),
    			),
    			'users' => array(
    				'title' => new XenForo_Phrase('import_users'),
    				'depends' => array('userGroups', 'userFields')
    			),
    			'followIgnore' => array(
    				'title' => new XenForo_Phrase('import_follow_ignore_lists'),
    				'depends' => array('users')
    			),
    			'conversations' => array(
    				'title' => new XenForo_Phrase('import_conversations'),
    				'depends' => array('users')
    			),
    			'profilePosts' => array(
    				'title' => new XenForo_Phrase('import_profile_posts'),
    				'depends' => array('users')
    			),
    			'nodes' => array(
    				'title' => new XenForo_Phrase('import_nodes'),
    				'depends' => array('userGroups')
    			),
    			'moderators' => array(
    				'title' => new XenForo_Phrase('import_moderators'),
    				'depends' => array('nodes', 'users')
    			),
    			'threadPrefixes' => array(
    				'title' => new XenForo_Phrase('import_thread_prefixes'),
    				'depends' => array('nodes')
    			),
    			'threads' => array(
    				'title' => new XenForo_Phrase('import_threads_and_posts'),
    				'depends' => array('nodes', 'users', 'threadPrefixes')
    			),
    			'postEditHistory' => array(
    				'title' => new XenForo_Phrase('import_post_edit_history'),
    				'depends' => array('threads')
    			),
    			'polls' => array(
    				'title' => new XenForo_Phrase('import_polls'),
    				'depends' => array('threads')
    			),
    			'attachments' => array(
    				'title' => new XenForo_Phrase('import_attached_files'),
    				'depends' => array('conversations', 'threads')
    			),
    			'likes' => array(
    				'title' => new XenForo_Phrase('import_likes'),
    				'depends' => array('threads', 'profilePosts')
    			),
    			'warnings' => array(
    				'title' => new XenForo_Phrase('import_warnings'),
    				'depends' => array('threads', 'profilePosts')
    			),
    			'userUpgrades' => array(
    				'title' => new XenForo_Phrase('import_user_upgrades'),
    				'depends' => array('users')
    			)
    		);
    	}
    
    So in addition to users and threads you would need to run usergroups, userfields, nodes, and thread prefixes.
     
  12. xH3LLRAIZ3Rx

    xH3LLRAIZ3Rx Member

    yay I got it working
     

Share This Page