firstname.lastname@example.org +1 400 3113 11
Demo content import
Pure template gives two types of demo content.
First type is a basic demo content. It’s a few posts, events, reports and questions. Each post has thumbnail. This demo content will be created automatically after a first activation of template. In any case, you can easily remove this demo content with one click. Just go to [Pure settings] / [Data import] and click on “Remove basic (minimal) demo data”.
If you will want restore basic demo data, you can click on “Generate basic (minimal) demo data” in same window.
Second type of demo content is a generation of content. Pay your attention – not import content, but a generation of content. In any case, to be easier, we call it import. In this case, you will get not only posts, but also will be generated: members (with avatars), groups, memberships and friendships.
Pure template importer (not importer for sure, but generator) of demo content can be launched in two ways. First way is manual start of script. This way is better and safely and we recommend use it. Second way is online import. In this case, import’s script will be launched remotely.
Now you are ready to start export demo data.
Pay your attention, you should run script with some rights, which allows to write data into your [../wp-content/uploads] and [PHP temp upload] folders.
As we said before, we recommend use this way. After you run import, you will see logs of process in console. If you have some problems with import, you should open file [launcher.php] and turn on DEBUG mode according comments in script. Copy logs data from console and send us, please. We will help you, you will help other people.
Be sure – all files from [demo.zip] are in folder [wp-content/uploads/demo]
At the time of import, set rights to ../wp-content/uploads to 777 for standard user of your server (import script will be run by standard user of your server). In unix OS – use CHMOD; in windows – set permission via properties of folder (section “security”). It is necessary only during import.
At the time of import, set rights to your [PHP upload temp folder] (you can see path to this folder in your php.ini – [upload_tmp_dir]) to 777 for standard user of your server. Use commands like in step (2). It is necessary only during import.
Go to administration panel of your site, section “Pure”, page “Import data”
After you press button “Start import in online mode”, you will see area with logs information
Procedure of import will take much time. About 5-10 minutes.
Do not close browser and do not update page while procedure of import is going.
After finishing of import, restore rights to ../wp-content/uploads and PHP upload temp folder to standard.
If something is going wrong, you will see information about errors in logs.
Pay your attention, you have to change permissions of access to your folders on server (that’s why we call the first way – “safely”).
As you understand, an import is a procedure of copy some content from one place to other place. But we have not basic content (which can be copied). Instead it we have some data to generate content. You can discover folder [demo] with files.
For example, file [authors.xml] defines information about authors, which will be created; file [titles.xml] – titles of future posts. It works very simple.
Step 1. Create members according [authors.xml]
Step 2. Create groups according [groups.xml]
Step 3. Create friends for each member. There is no scheme – just random friendships.
Step 4. Join members to groups. Again, without any defined scheme – just random procedure.
Step 5. Create posts. For each value in [titles.xml] will be created one post. Content of post generated randomly – we take some image from folder [images], take random text form [texts.xml] and random embed content from [embeds.xml]. Author of post defines randomly too.