• [My skills: I’m pretty new to WP 2 and I’m a novice with php and MySQL though I’m pretty advanced with the concepts and I’m not afraid to poke around under the hood.]

    I want to set up WP blogs for about ten people. My web host, using “Fantastico” has an installer script that works really well. I want the sample first post, sample blog links, the sample “page” to be different. I see that the file:

    wp-admin/install.php

    is where the SQL commands inserting that data happen. But simply copying over that file after the installation has run won’t do anything. Am I correct about that?

    Any suggestions on how to do this?

    My thought is to write an SQL query (and save it so I can use it for all ten installations) and running it in phpMyAdmin. Here is a part of the install.php file that comes with WP 2:

    $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('https://photomatt.net/', 'Matt', 1, 'https://xml.photomatt.net/feed/', '');");
    $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('https://zed1.com/journalized/', 'Mike', 1, 'https://zed1.com/journalized/feed/', '');");
    $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('https://www.alexking.org/', 'Alex', 1, 'https://www.alexking.org/blog/wp-rss2.php', '');");

    Besides changing all the values, what do I have to change to make it work as an SQL query?

    Thanks,

    Shai

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Customized Install of WP 2’ is closed to new replies.