WordPress.org

Plugin Directory

Changeset 494778


Ignore:
Timestamp:
01/24/12 21:15:26 (2 years ago)
Author:
MrWiblog
Message:

Version 1.0

Location:
demo-data-creator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • demo-data-creator/trunk/demodata.php

    r443868 r494778  
    33Plugin Name: Demo Data Creator 
    44Plugin URI: http://www.stillbreathing.co.uk/wordpress/demo-data-creator/ 
    5 Description: Demo Data Creator is a Wordpress, WPMU and BuddyPress plugin that allows a Wordpress developer to create demo users, blogs, posts, comments and blogroll links for a Wordpress site. For BuddyPress you can also create user friendships, user statuses, user wire posts, groups, group members and group wire posts. 
    6 Version: 0.9.8 
     5Description: Demo Data Creator is a Wordpress, WPMU and BuddyPress plugin that allows a Wordpress developer to create demo users, blogs, posts, comments and blogroll links for a Wordpress site. For BuddyPress you can also create user friendships, user statuses, user wire posts, groups, group members and group wire posts. PLEASE NOTE: deleting the data created by this plugin will delete EVERYTHING (pages, posts, comments, users - everything) on your site, so DO NOT use on a production site, or one where you want to save the data. 
     6Version: 1.0 
    77Author: Chris Taylor 
    88Author URI: http://www.stillbreathing.co.uk 
     
    1414$register->slug = "demodata"; 
    1515$register->name = "Demo Data Creator"; 
    16 $register->version = "0.9.8"; 
     16$register->version = "1.0"; 
    1717$register->developer = "Chris Taylor"; 
    1818$register->homepage = "http://www.stillbreathing.co.uk"; 
     
    6161} 
    6262 
    63 // include registration functions 
    64 require_once(ABSPATH . WPINC . '/registration.php'); 
     63// include registration functions - DEPRECATED 
     64//require_once(ABSPATH . WPINC . '/registration.php'); 
    6565 
    6666// ====================================================== 
     
    20742074            echo '<li>Error with SQL: ' . $sql . '</li>'; 
    20752075        } 
    2076      
    2077         // these next few tables don't exist any more 
    2078         /* 
    2079      
    2080         // delete user activity 
    2081         $sql = "delete from " . $wpdb->base_prefix. "bp_activity_user_activity;"; 
    2082         $user_activity = $wpdb->query($sql); 
    2083         if ($user_activity === false) { 
    2084             echo '<li>Error with SQL: ' . $sql . '</li>'; 
    2085         } 
    2086          
    2087         // delete user activity cached 
    2088         $sql = "delete from " . $wpdb->base_prefix. "bp_activity_user_activity_cached;"; 
    2089         $user_activity_cached = $wpdb->query($sql); 
    2090         if ($user_activity_cached === false) { 
    2091             echo '<li>Error with SQL: ' . $sql . '</li>'; 
    2092         } 
    2093          
    2094         // delete site activity 
    2095         $sql = "delete from " . $wpdb->base_prefix. "bp_activity_sitewide;"; 
    2096         $sitewide_activity = $wpdb->query($sql); 
    2097         if ($sitewide_activity === false) { 
    2098             echo '<li>Error with SQL: ' . $sql . '</li>'; 
    2099         } 
    2100          
    2101         // delete user wire 
    2102         $sql = "delete from " . $wpdb->base_prefix . "bp_xprofile_wire;"; 
    2103         $user_wire = $wpdb->query($sql); 
    2104         if ($user_wire === false) { 
    2105             echo '<li>Error with SQL: ' . $sql . '</li>'; 
    2106         } 
    2107      
    2108         // delete group wire 
    2109         $sql = "delete from " . $wpdb->base_prefix. "bp_groups_wire;"; 
    2110         $groups_wire = $wpdb->query($sql); 
    2111         if ($groups_wire === false) { 
    2112             echo '<li>Error with SQL: ' . $sql . '</li>'; 
    2113         } 
    2114          
    2115         // delete user blog posts 
    2116         $sql = "delete from " . $wpdb->base_prefix. "bp_user_blogs_posts;"; 
    2117         $user_blogs_posts = $wpdb->query($sql); 
    2118         if ($user_blogs_posts === false) { 
    2119             echo '<li>Error with SQL: ' . $sql . '</li>'; 
    2120         } 
    2121          
    2122         // delete user blog meta 
    2123         $sql = "delete from " . $wpdb->base_prefix. "bp_user_blogs_blogmeta;"; 
    2124         $user_blogs_blogmeta = $wpdb->query($sql); 
    2125         if ($user_blogs_blogmeta === false) { 
    2126             echo '<li>Error with SQL: ' . $sql . '</li>'; 
    2127         } 
    2128          
    2129         // delete user blog comments 
    2130         $sql = "delete from " . $wpdb->base_prefix. "bp_user_blogs_comments;"; 
    2131         $user_blogs_comments = $wpdb->query($sql); 
    2132         if ($user_blogs_comments === false) { 
    2133             echo '<li>Error with SQL: ' . $sql . '</li>'; 
    2134         } 
    2135          
    2136         */ 
    2137      
     2076 
    21382077        // delete user xprofile data 
    21392078        $sql = "delete from " . $wpdb->base_prefix. "bp_xprofile_data where user_id > 1;"; 
     
    25622501            echo ' 
    25632502            <p>Delete all user and blog data in your database except for information and tables for blog ID 1 and user ID 1. This will also delete all Buddypress groups and friend relationships.</p> 
    2564             <p><strong>WARNING: This will delete ALL data except for data for user ID 1 and blog ID 1, making your site as it was when you first installed WordPress and BuddyPress. This will also delete all Buddypress groups and friend relationships.</strong></p> 
     2503            <p><strong>WARNING: This will delete ALL data, making your site as it was when you first installed WordPress and BuddyPress. This will also delete all Buddypress groups and friend relationships.</strong></p> 
    25652504            '; 
    25662505        } else { 
    25672506            echo ' 
    2568             <p>Delete all user and blog data in your database except for information and tables for blog ID 1 and user ID 1.</p> 
    2569             <p><strong>WARNING: This will delete ALL data except for data for user ID 1 and blog ID 1, making your site as it was when you first installed WordPress</strong></p> 
     2507            <p>Delete all user and blog data in your database.</p> 
     2508            <p><strong>WARNING: This will delete ALL data.</strong></p> 
    25702509            '; 
    25712510        } 
    25722511        echo ' 
     2512            <p style="border:4px solid #c00;padding:2em;font-weight:bold;color:#c00">THIS WILL DELETE ALL YOUR DATA. ARE YOU SURE YOU WANT TO PROCEED?</p> 
    25732513            <p><label for="delete">Delete demo data</label> 
    25742514            <input type="hidden" name="action" value="delete" /> 
     
    26452585<!--break--> 
    26462586<blockquote><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.</p></blockquote> 
     2587<!--break--> 
     2588<img src="http://lorempixum.com/300/200" alt="Random image courtesy of LoremPixum.com" /> 
     2589<!--break--> 
     2590<img src="http://lorempixum.com/100/100" alt="Random image courtesy of LoremPixum.com" /> 
     2591<img src="http://lorempixum.com/100/100" alt="Random image courtesy of LoremPixum.com" /> 
     2592<img src="http://lorempixum.com/100/100" alt="Random image courtesy of LoremPixum.com" /> 
     2593<img src="http://lorempixum.com/100/100" alt="Random image courtesy of LoremPixum.com" /> 
     2594<img src="http://lorempixum.com/100/100" alt="Random image courtesy of LoremPixum.com" /> 
     2595<img src="http://lorempixum.com/100/100" alt="Random image courtesy of LoremPixum.com" /> 
    26472596<!--break--> 
    26482597<h3>Header Level 3</h3> 
  • demo-data-creator/trunk/readme.txt

    r443868 r494778  
    44Tags: wordpress, wpmu, buddypress, demo, data, example, dummy, users, blogs, sample 
    55Requires at least: 2.7 
    6 Tested up to: 3.2 
    7 Stable tag: 0.9.8 
     6Tested up to: 3.3.1 
     7Stable tag: 1 
    88 
    9 Demo Data Creator is a Wordpress, WPMU/MultiSite and BuddyPress plugin that allows a Wordpress developer to create demo users, blogs, posts, comments and blogroll links for a Wordpress site. For BuddyPress you can also create user friendships, user statuses, user wire posts, groups, group members and group wire posts. 
     9Demo Data Creator is a Wordpress and BuddyPress plugin that allows a Wordpress developer to create demo users, blogs, posts, comments and blogroll links for a Wordpress site. For BuddyPress you can also create user friendships, user statuses, user wire posts, groups, group members and group wire posts. 
    1010 
    1111== Description == 
     
    5454= Why did you write this plugin? = 
    5555 
    56 To scratch my own itch when developing [BeatsBase.com](http://beatsbase.com "Free mix hosting for DJs"). Hopefully this plugin helps other developers too. 
     56To scratch my own itch when developing sites. Hopefully this plugin helps other developers too. 
    5757 
    5858= What about BuddyPress support = 
     
    6565 
    6666== Changelog == 
     67 
     68= 1.0 (2012/01/24) = 
     69 
     70Added support for random images in pages and posts, thanks to LoremPixum.com. Made delete data warning even more obvious. 
    6771 
    6872= 0.9.8 (2011/09/26) = 
Note: See TracChangeset for help on using the changeset viewer.