403 posts Keep Walking
  • Has been a member for 3-4 years
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Bought between 100 and 499 items
  • Referred between 100 and 199 users
  • Exclusive Author
UXbarn says

I use a modified version of the importer plugin and changed the class name so it doesn’t conflict. You can also make it look almost exactly like the demo by using use add_option() in the importer to import data into your options panel such as social icons, fonts, colours, settings and other things that the importer wouldn’t usually do.

You can also use set_theme_mod() in the importer so it also sets the menu location, something the default importer doesn’t do.

I might post an example if you guys are interested.

EDIT: Also 1Click demo installers can drastically cut down your support tickets. It is definitely something to look into.

+1 too. Really interested. :)

186 posts
  • Bought between 100 and 499 items
  • Contributed a Tutorial to a Tuts+ Site
  • Elite Author
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 50 000 and 100 000 dollars
Artillegence says

Hey guys I am working on a new version of my 1 click installer .. I will try to make it as a plugin and add on git for everyone ;)

1674 posts Multimedia Artistry
  • Author had a Free File of the Month
  • Has been a member for 3-4 years
  • Referred between 100 and 199 users
  • Bought between 10 and 49 items
  • Exclusive Author
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
dnp_theme says

I am in heaven :)

557 posts Fuel Your Web
  • Elite Author
  • Won a Competition
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Has been a member for 7-8 years
  • Bought between 50 and 99 items
  • Referred between 200 and 499 users
  • Europe
Pirenko says

Wordpress allows us to enter posts, pages, custom post types and other into the database so that is basically what I do with some PHP instructions. We can even add images to the media library and connect them to posts using their ID.
As far as I know this is better than XML import, because it works everywhere.

186 posts
  • Bought between 100 and 499 items
  • Contributed a Tutorial to a Tuts+ Site
  • Elite Author
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 50 000 and 100 000 dollars
Artillegence says

Wordpress allows us to enter posts, pages, custom post types and other into the database so that is basically what I do with some PHP instructions. We can even add images to the media library and connect them to posts using their ID.
As far as I know this is better than XML import, because it works everywhere.
xml import is best for importing pages and posts, there are problems when you try to insert using database options, when you save sql dump in a file , if there are extra characters present it won’t work and manipulating core tables is not recommended ;) . Best way is to export as encoded text even serialized string wont work if there is a new line.
186 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 1 and 100 dollars
  • United States
ThemeBuddies says

I am interested also in a tut or plugin for a one click install!

557 posts Fuel Your Web
  • Elite Author
  • Won a Competition
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Has been a member for 7-8 years
  • Bought between 50 and 99 items
  • Referred between 200 and 499 users
  • Europe
Pirenko says

xml import is best for importing pages and posts, there are problems when you try to insert using database options, when you save sql dump in a file , if there are extra characters present it won’t work and manipulating core tables is not recommended ;) . Best way is to export as encoded text even serialized string wont work if there is a new line.
Nobody spoke about using SQL dump or SQL instructions… I think that it is not even allowed as you can see here: http://support.envato.com/index.php?/Knowledgebase/Article/View/472/85/wordpress-theme-submission-requirements . At a certain point you have this rule: The database shouldn’t be accessed or modified directly. If there is a defined function that can get the data you need, that must be used instead. Use $wpdb and its methods to interface with the database instead of rolling your own.

So, as an example, here’s how I add a page:

$new_page_title = 'About Us';
$new_page_content = 'This is the page content';
$new_page = array(
'post_type' => 'page',
'post_title' => $new_page_title,
'post_content' => $new_page_content,
'post_status' => 'publish'
);
$new_page_id = wp_insert_post($new_page);

Pretty simple, huh?
186 posts
  • Bought between 100 and 499 items
  • Contributed a Tutorial to a Tuts+ Site
  • Elite Author
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 50 000 and 100 000 dollars
Artillegence says


xml import is best for importing pages and posts, there are problems when you try to insert using database options, when you save sql dump in a file , if there are extra characters present it won’t work and manipulating core tables is not recommended ;) . Best way is to export as encoded text even serialized string wont work if there is a new line.
Nobody spoke about using SQL dump or SQL instructions… I think that it is not even allowed as you can see here: http://support.envato.com/index.php?/Knowledgebase/Article/View/472/85/wordpress-theme-submission-requirements . At a certain point you have this rule: The database shouldn’t be accessed or modified directly. If there is a defined function that can get the data you need, that must be used instead. Use $wpdb and its methods to interface with the database instead of rolling your own.

So, as an example, here’s how I add a page:

$new_page_title = 'About Us';
$new_page_content = 'This is the page content';
$new_page = array(
'post_type' => 'page',
'post_title' => $new_page_title,
'post_content' => $new_page_content,
'post_status' => 'publish'
);
$new_page_id = wp_insert_post($new_page);

Pretty simple, huh?

yeah I use that too for my express installer .. but its not usable for replicating demo as it … just my opinion :)

1674 posts Multimedia Artistry
  • Author had a Free File of the Month
  • Has been a member for 3-4 years
  • Referred between 100 and 199 users
  • Bought between 10 and 49 items
  • Exclusive Author
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
dnp_theme says

yeah I use that too for my express installer .. but its not usable for replicating demo as it … just my opinion :)

Show us some code :)

115 posts WordPress Wizard
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Most Wanted Bounty Winner
  • Exclusive Author
  • Envato Studio (Microlancer) Beta Tester
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
CODE9RS says

I’ll write an article.

I was able to create in a new version of our framework (to be released yet) a installer that works with AJAX and is able to:

- Import posts/pages/custom posts (with the default XML Import class from WP, so no news here) - Define the menus locations automatically - Import all widgets to the correct sidebars - Define the demo’s options in theme options panel

I don’t know if is what you guys are looking for, so let me know and I can try help :)

Matthew Schultz – Dev

by
by
by
by
by
by