PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Multisite Blog Creation Issues

  1. developdaly
    Member

    I'm using the user registration add-on to create a new user and a new blog. I'm trying to put together a nice UI for the registration. Visit https://en.wordpress.com/signup/?new=gravitytest and look at the text input for the subdomain.

    How could I go about setting up a subdomain or subdirectory input field? There's a few issues at hand.

    1) How can I achieve the style of {text box}.domain.com or domain.com/{subdirectory}?

    2) It doesn't appear that Gravity checks whether the subdomain/directory already exists. In the case that it already does, the site just isn't created. Bug?

    2b) If Gravity does (or eventually does) check for the site name, could that be an AJAX option?

    Posted 13 years ago on Friday February 4, 2011 | Permalink
  2. For #1 this little jQuery snippet can be used to output your domain per your example:

    <script type="text/javascript">
        jQuery(document).ready(function($){
    
            // replace #input_3_1 with your input id
            $("#input_3_1").after('.domain.com');
    
        });
    </script>

    I will look into #2 and let you know. Unfortunately, the check will not be in AJAX; however, it would be possible to create this check via some custom code.

    Posted 13 years ago on Friday February 4, 2011 | Permalink
  3. developdaly
    Member

    Any update on Gravity's ability to check on whether the site already exists?

    Posted 13 years ago on Thursday February 10, 2011 | Permalink
  4. Hi Patrick, I've just sent you an email with a fix. Thanks for reporting this issue!

    Posted 13 years ago on Thursday February 10, 2011 | Permalink
  5. developdaly
    Member

    Works like a charm, thanks!

    Posted 13 years ago on Friday February 11, 2011 | Permalink

This topic has been resolved and has been closed to new replies.