Dates and files issues on new (children) sites.

Hi there,
The plugin works "almost perfectly".

1. If you have a blog (as a template) where you have used it for a few test pages/posts/categories and so on when used as a template you get the new site having post iDs like 234, 520 etc.
2. The new (children) sites will have as dates for the inherited posts/pages the original ones from the mother template. This is quite uncomfortable because you end up with posts on your newly created site dating back to December 2010 for example. :slight_frown:
3. When you select for the files to be copied as well, the files get copied alright but the links on the posts/pages link to the mother (template) site.
4. In the .dir folder for the new child you get all the months since the first post (dating back to 2010 for example).

Can we also find a solid solution on having the users able to choose a template on signup? This feature has also been around for quite some time as well. :slight_frown:

Can you please look into these issues?
Thank you

  • DavidM
    • DEV MAN’s Mascot

    Hi marikamitsos,

    For the most part, these items are simply the result of the way the plugin works, it merely creates a copy of the original templated sites.

    The links are copied as they are so links to files as well as other links to content within that site would point back to the templated site. I imagine a feature could be developed to alter the links upon site creation to point to the new site, it's just not been done as yet.

    I'll move this over to the feature suggestion forum so we can have a closer look into them. I'll also see what else I can find about the template choice upon signup as that has been requested, as you mentioned.

    Cheers,
    David

  • marikamitsos
    • The Crimson Coder

    Thank you for the reply David,

    these items are simply the result of the way the plugin works, it merely creates a copy of the original templated sites.

    I know. I am just saying that it should probably be improved. I think it should make the "right changes" and not merely create a copy.

    I imagine a feature could be developed to alter the links upon site creation to point to the new site

    That would be great. :slight_smile:

    I'll also see what else I can find about the template choice upon signup

    I have looked at quite a few of them as well. Still. Those are hacks or suggestions or workarounds.
    You can even find one of my suggestions from a few months back. I am talking for a feature supplied by the plugin itself though.

    I'll move this over to the feature suggestion forum so we can have a closer look into them.

    Please do.

    Thanks again.

  • marikamitsos
    • The Crimson Coder

    Have these issues, and if yes which ones, been resolved?

    Can we also find a solid solution on having the users able to choose a template on signup? This feature has also been around for quite some time as well. :slight_frown:

    This one is.

    Is anybody else interested on giving +1's for the rest?

  • msk5400
    • Site Builder, Child of Zeus

    In case this helps anyone, I hacked the plugin to simply update the post_date of the "Welcome" post for any new blogs on my multisite. I updated the blogtemplates/blogtemplatesfiles/blog_templates.php file by adding the code below around line 268. This could easily be enhanced to loop through any posts found in the template blog.

    After this code:

    case 'posts':
                            $this->clear_table($wpdb->posts);
                            $this->copy_table($template['blog_id'],"posts");

    Inserted this code:

    $wpdb->update( 'bowwp_' . (int) $blog_id . '_posts',
    							array(
    								'post_date' => date("Y-m-d H:i:s"),
    								'post_date_gmt' => date('Y-m-d H:i:s')
    							),
    							array( 'ID' => 1 ),
    							array(
    								'%s',	// value1
    								'%s'	// value2
    							),
    							array( '%s' )
    						);

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.