how to let registering Blog URL dropdown show at home page

Dear Sir,

I have wpmu and bodypress with multi-domains plugins, have lot of domains alreadly add to the multi domains plugins.

I want to show the list of available domains on network, checks for the domain availability in my multi-domains plufins when you are registering it,could regist subdomains.
that is alreadly in my http://24hws.com/register/

How to easy show/display it to home page, let the user easy see it, take domains then keep to register page.

Thank you!

  • aristath
    • Recruit

    Hello there @hi999, I hope you're well today!

    Could you please elaborate?
    When you say you want to show the list of "available" domains, what exactly do you mean?
    Do you mean that you want to display a list of all the domains that already exist in your network, or a list of the domains that do not exist there?

    Please advise,
    Ari.

  • Patrick
    • Support Monkey

    Hi @hi999

    Continuing on from where we left off in Live Support... :slight_smile:

    Want you want to achieve is going to require quite a bit of customization, and some coding as well.

    The first thing you need to do is be sure you have activated the blogs-mu-child theme on your site (you said in live support that you had it). You must activate that child-theme on your site because that is the one we will customize.

    I'm honestly not sure how to get domain selection part of the form from the Multi-Domains plugin onto the front-page of your site. So let's start with the other question you had first.

    To replace the big image with a slider, you<ll first need a slider plugin that allows you to place sliders with a shortcode or a php templatetag. Here are 7 free ones you can check out:
    https://premium.wpmudev.org/blog/7-best-free-wordpress-slider-plugins/

    Once you've played around with them and have chosen your slider, we'll need to open some theme files and start editing.

    Please let me know when you have your slider.

  • Patrick
    • Support Monkey

    @hi999

    Sorry for the delay in replying. Thanksgiving weekend and Android stuff kept me rather occupied. :slight_smile:

    Before we get into replacing the big image on the front-page, have you experimented at all with the built-in slider features of Blogs-MU for that section?

    Even if you have, replacing the image with another slider is really not all that difficult.

    Now that you have your child-theme, you'll need to copy a file from the blogs-mu parent theme to your child, and edit it. But the file we need is located inside other folders, so you need to reproduce that folder structure in your blogs-mu-child theme so it knows where to find it. :slight_smile:

    In your child-theme, create a folder named lib. Inside that folder, create another folder named templates. Inside that, create a folder named wp-template.

    Then you'll need to copy panel-home.php from /lib/templates/wp-template/ in blogs-mu to /lib/templates/wp-template/ in your child-theme.

    Your folder structure should look like the 1st screenshot below.

    Now in panel-home.php of your child-theme, you'll want to comment out lines 9 to 13 inclusively so they look like this:

    <!--<?php if($tn_blogsmu_featured_img_url != "") { ?>
    <img src="<?php echo stripslashes($tn_blogsmu_featured_img_url); ?>" alt="<?php bloginfo('description'); ?>" />
    <?php } else { ?>
    <img src="<?php echo get_template_directory_uri(); ?>/_inc/images/top-default.jpg" alt="<?php bloginfo('description'); ?>" />
    <?php } ?>-->

    Then on the blank line just below that, add the Meta Slider Template Include code that is automatically generated by the slider plugin when you save your slider (2nd & 3rd screenshots).

    Finally, save that file, and upload the child-theme lib folder (and all its contents including your edited panel-home.php) to your blogs-mu-child theme on your site.

    Now when you select "Image Intro" in the Features Settings of your blogs-mu-child theme options panel, you will see your new slider instead of the image.

    You can see it working on my test site here: http://patrickcohen.net/

  • hi999
    • The Crimson Coder

    Hi Patrick,

    Thank you for kind support.

    The home page have error.
    http://www.168tv.com will to main site

    Parse error: syntax error, unexpected '}' in /home/wp24hws/public_html/wp-content/themes/blogs-mu-child/lib/templates/wp-template/panel-home.php on line 11
    -------------------------------------
    comment out 9-13, Is delete it? I delete it.

    -----------------------------------
    This is the panel-home.php, after make change.

    Thanks!
    --------------------------------------------------------
    <?php include ( TEMPLATEPATH . '/options-var.php' ); ?>

    <div id="panel">

    <div id="left-panel">
    <div id="intro-featured-img">
    <?php $feat_style = get_option('tn_blogsmu_featured_blk_option'); ?>

    <?php echo do_shortcode("[metaslider id=131]"); ?>

    <?php } elseif($feat_style == "Featured Slider Posts") { ?>

    --------------------------------------------

  • hi999
    • The Crimson Coder

    Hi Patrick,

    I should not delete this line. after add this line back. The slider work now!

    <?php if($feat_style == "Image Intro" || $feat_style == "") { ?>

    Thank you again for your invaluable support.

    Great support group! You are so amazing!

    Thank you!

  • Patrick
    • Support Monkey

    @hi999

    What I think you are asking is how to get only part of the registration process on the front-page of your site, while keeping the rest of that process on the register page.

    My honest opinion is that it sounds like a great way to get yourself into trouble, lol. And I'm afraid I wouldn't know how to do that, I'm sorry. :slight_smile:

  • hi999
    • The Crimson Coder

    Hi Patrick,

    Thanks for pointing me in the right direction about set slider.

    How to let the sub sites user this slider.
    In my sub site I see have Meta Slider plugin, and preview is working.
    I add Template Include code to Features Setting, the slider not show up.
    <?php echo do_shortcode("[metaslider id=9]"); ?>

    Where is the child file for sub sites, cn.24hws.com
    Do I need do all the process same like main site?

    Thanks!

  • Patrick
    • Support Monkey

    Hi again @hi999

    The ID of the slider will be different on each subsite. So you likely cannot use the slider that you created on the main site.

    So you would need to create a child-theme for each subsite, and add the Template Include with the specific ID of that subsite's slider.

  • hi999
    • The Crimson Coder

    Hi Patrick,

    Thank you for kind support.

    So you would need to create a child-theme for each subsite,

    Where is the fold for subsite ?
    How to create a child-theme for each subsite,

    subsite.domain.com

    I know that.

    The ID of the slider will be different on each subsite. So you likely cannot use the slider that you created on the main site.

    Thanks!

  • hi999
    • The Crimson Coder

    Hi Patrick,

    Thank you for support at chat, but my internet connect lost final.
    so I can not see your note.

    Sub site meta slider not working.

    Now sub site have child themes

    sub site have metaslider, and preview metaslider is working
    <?php echo do_shortcode("[metaslider id=9]"); ?>

    Then
    http://subsite/wp-admin/themes.php?page=options-functions.php
    Features settings
    Image Intro Is Image Intro ???
    <?php echo do_shortcode("[metaslider id=9]"); ?> Is add this code ???

    I didn't do panel-home.php, process. Should I do it?
    I can not find this file at sub site by FTP.

    Now in panel-home.php of your child-theme, you'll want to comment out lines 9 to 13 inclusively so they look like this:
    Then on the blank line just below that, add the Meta Slider Template Include code that is automatically generated by the slider plugin when you save your slider (2nd & 3rd screenshots).

    The main site have this step.

    What I should do?

    Thanks!

  • Patrick
    • Support Monkey

    @hi999

    All your themes & child-themes go in that same folder: /wp-content/themes/

    If you want a distinct child-theme for each site, you need to create them. You can name them following this convention to make it easy to recognize:
    blogs-mu-child-sitename-1
    blogs-mu-child-sitename-2
    blogs-mu-child-sitename-3
    ...etc...

    Remember to add the name to the style-sheet so it displays in your network-admin.

    Once you have created the child-themes for each site, and uploaded them all to the /wp-content/themes/ folder, go to Sites > All Sites in your network-admin. There, you can enable individual themes on individual sites instead of network-enabling them.

    Click the Edit link for a site, then under the Themes tab, enable the child-theme you made for that site. Repeat for each site.

  • hi999
    • The Crimson Coder

    Hi Patrick,

    I appreciate for your kind support and all the efforts.

    Following the process I have new site cn.24hws.com and have child themes with Meta Slider.
    then FTP
    /public_html/wp-content/themes/blogs-mu-child/cn/lib/templates/wp-template

    The sub site home page meta slider still not show up.

    http://24hws.com/wp-admin/network/themes.php?s=cn
    Description
    Stylesheet is missing.

    My question is
    1. /public_html/wp-content/themes/blogs-mu-child
    have lib and other _inc,screenshot.png,style.css and now have cn should I copy those files to sub site folder or not?
    If not, at sub site folder only have one file "lib" is right?
    /public_html/wp-content/themes/blogs-mu-child/cn

    2.

    Remember to add the name to the style-sheet so it displays in your network-admin.

    Is add sub site name to style-sheet. where is style-sheet

    3.
    Once you have created the child-themes for each site, and uploaded them all to the /wp-content/themes/ folder,

    Is just sub site "cn " folder only?

    How to let the sub site home page meta slider show up?
    Main site meta slider is up now.

    Thanks!

  • Patrick
    • Support Monkey

    @hi999

    Stop. You're making things much more complicated than they are.

    All you need to do, for each site, is this:

    - Make a full copy of the child-theme that you already have (do not create any additional folders in it like /cn/)
    - Change the name of the main folder of the child-theme to something easily recognizable for each site (instead of blogs-mu-child, perhaps name them like blogs-mu-child-cn)
    - Open newchildthemename/style.css and change the Theme Name to the same as the folder name

    Now upload that new child-theme to your network, and enable it only on the site you created it for as I described above.

    Repeat for each site.

    :slight_smile:

  • Patrick
    • Support Monkey

    @hi999

    That is good solution, but if I need hundreds sub sites, there will be hundreds copy of the child-theme in the theme listing.

    If you enable each theme only on each specific site, only the theme that is enabled on each site will show in that site's theme directory.

    However, they will all be visible in the network themes page.

    How to set in house slider

    See my reply to your post here:
    https://premium.wpmudev.org/forums/topic/how-to-let-the-sub-sites-user-meta-slider#post-568240

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.