![]() |
*** UPDATE ***
I think that wp-signup.php can handle what I need to do. I have managed to get this "Add New Site" registration working (with only 3 super-simple mods to the code) so it allows non-users (any visitor to the website) to register a new site (without user registration) and have the site is active immediately. And it was much simpler than I expected.
I'm pretty sure all the code needed is already in wp-signup.php (and/or site-new.php). I now need someone to .....
- rewrite some of the conditional calls (which are I've needed to change to get this working)
-
- modify the preg_replace to allow _underscores in sitename
* I am not modifying the core code. I have copied the wp-signup.php code into the theme as a page template.
Solution - 1hi, here is a modified code from http://www.scribd.com/doc/76015425/279/Creating-a-New-Site I changed this into a shortcode so you can embed this into any page on your frontend: The following assumes you are using multisite with subdirectories and the owner of the new sites is user_id=1:
Solution - 2you said thea "site-new.php " does what you want , so can we modified it? Solution - 3I've been working on similar projects and always keeping my eyes open for new methods. I seem to recall a plugin on wpmudev that did this fairly well and I can't seem to find it now.. I'm looking forward to seeing what answers others will have.. Solution - 4Gravity forms should be able to handle what you are looking for. It already has the site creation part built in to the forms, so I believe you should be able to create a from that will go through the process like normal, and then you can customize it to 'not register' the user with the hooks (http://www.gravityhelp.com/documentation/page/User_Registration_Add-on_Developer_Docs). My thought though, for an even easier solution, is that you do a gravity form for new site creation, and for the required fields for the user registration part (name, username, email, password... ) you simply put those fields as 'hidden' and put in your own information as the default values. <- I'd be happy to help if you want that put in. Solution - 5Hi, Where one can find your changed wp-signup.php code? Regards, Gabriel |
Wordpress |
Type: | Code Example |
Category: | Coding |
Sub Category: | Code Example |
Uploaded by: | Admin |
Views: | 8 |