• Resolved Colmore

    (@colmore)


    Hi all,

    I was just wondering how I would go about populating an empty template with information based on information a user provided in a signup form?

    For example, the site would have the following sections:
    Title
    Company description
    Address
    Phone number
    Fax
    Logo (to upload a picture file)

    There would be a form with those headings that someone would fill in. They’d submit the form and it would automatically put the information they wrote into the template. Then an admin could check it before making the site live.

    The install would be made to a subdomain, but if a user wanted to use their own domain name, they’d have an option to select that and someone would get back to them, or they could enter the information for the mapping and that part would be handled on my side and they’d be given instructions for their domain registrar.

    It’s not simply a registration form to hold information, it’s to create a fully functioning ready-to-go website. Does anyone know if this is being done already? I’ve had trouble finding anything. If it’s not, would it be possible for something like this to be created?

    Thanks for your thoughts.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Jesse Friedman

    (@professor44)

    Hi Colmore

    You can create a form that will tap into the create_empty_blog() function

    Then once the blog is created you’ll want a plugin network activated that will define the global settings you’d need for
    Company description
    Address
    Phone number
    Fax
    Logo

    Once those fields are defined you can do switch_to_blog pass it the id of the new blog and save those values as site options.

    Thread Starter Colmore

    (@colmore)

    Thanks, Jesse. I’ll give that a go.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create A New Site From An Online Form’ is closed to new replies.