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.

Add a Field to the Site Registration String?

  1. I am using a Blog Templates plugin, and it uses a value in the Post string/array.

    (similar to user meta)

    Instead this is site meta, how can I add this functionality?

    Since usermeta is already built into script, what if i used usermeta (1st) as the field containng this value, where can i add it to the userregistration.php file

    Btw, kudos, this script is pretty complex. You guys have some good preg replace logic in it that i was surprised to see :)

    Posted 7 years ago on Wednesday January 16, 2013 | Permalink
  2. I'll send this information to the development team and see if they have any suggestions for you.

    Posted 7 years ago on Wednesday January 16, 2013 | Permalink
  3. I am not sure exactly what you are trying to accomplish, but like you said, this Add-On is complex, so I wouldn't recommend changing any of the core files. However, if you try explaining again in more details what you are trying to do, we may have some ideas for you using a hook.

    Posted 7 years ago on Wednesday January 16, 2013 | Permalink
  4. Essentially, I have a blog template plugin. It attaches itself to the wp-register form, and has a field for a template number to be submitted in the blog meta array (from the register page)

    Otherwise it submits to the $_POST array in admin

    Then the plugin listens too the hook wpmu_new_blog , uses the meta / post value for the template #

    So Im simply trying to insert another field/value into the array. Or however you guys do it. Meta fields are for user creation, so they werent working for me (unless im doing something wrong)

    Instead im after some blog meta fields. So if i have things like this template plugin, or a plugin that allows people to set blog description on signup; etc; that I can attach it to part of the Gravity Form form.

    Posted 7 years ago on Thursday January 17, 2013 | Permalink
  5. check out this html from wp-signup.php

    <form id="setupform" method="post" action="wp-signup.php">
    		<input type="hidden" name="stage" value="gimmeanotherblog" />
    		<input type='hidden' name='signup_form_id' value='220627718' /><input type="hidden" id="_signup_form" name="_signup_form" value="354c0ab4be" />		<label for="blogname">Site Domain:</label><input name="blogname" type="text" id="blogname" value="" maxlength="60" /><span class="suffix_address">.,....</span><br />	<label for="blog_title">Site Title:</label>
    	<input name="blog_title" type="text" id="blog_title" value="" />
    	<div id="privacy">
            <p class="privacy-intro">
                <label for="blog_public_on">Privacy:</label>
                Allow search engines to index this site.            <br style="clear:both" />
                <label class="checkbox" for="blog_public_on">
                    <input type="radio" id="blog_public_on" name="blog_public" value="1" checked="checked" />
                    <strong>Yes</strong>
                </label>
                <label class="checkbox" for="blog_public_off">
                    <input type="radio" id="blog_public_off" name="blog_public" value="0"  />
                    <strong>No</strong>
                </label>
            </p>
    	</div>
    
    	<div id="blog_template-selection">
    	<div class="blog_template-option">
    		.......
    				<input type="radio" name="blog_template" value="4" style="display: none" />
    Posted 7 years ago on Thursday January 17, 2013 | Permalink
  6. Ok. I get it. You basically are looking for a new "section" of field mapping for "Site Meta" that will allow you to map site meta to fields in your form. That makes sense, but unfortunately it is not something we currently support. I have made a note and will discuss this with the team to see if it is something can add in the future.
    However, we do have a hook that you can use to manually add that site meta when the new site/bog is created. The following doc page explains how to use the hook and has an example to get you started.
    http://www.gravityhelp.com/documentation/page/Gform_site_created

    Posted 7 years ago on Thursday January 17, 2013 | Permalink
  7. Thanks Alex

    I think it would be a beneficial feature of Gform; because there are plenty of registration-esque plugins out there that could then be used with yours

    Posted 7 years ago on Monday January 21, 2013 | Permalink
  8. Looks like this is after fact. So plugins that watch post array wouldnt work for that.

    But if i could find a way to use this afterblogs been made trigger to call the function, then maybe work?

    But this is beneficial for my Pro Sites plugin, so nice hook

    Posted 7 years ago on Wednesday January 23, 2013 | Permalink