I am looking for a multisite solution (something like Drupalgardens.com) with Drupal7, actually i didn`t found something workable (i found a lot of solutions but none of them supports an automated system like Drupalgardens.),So i made my own idea as below:
Using Domain Access module along with Rule module to:
1.Crearting a subdomain with aliases as a user registers.
2.Runing a php script with Rule module after a user registers according to the below algorythm:
- The script uses user tokens such as ([user:name] or uid) to create a subfolder in "/sites/[user:name]" directory and to create a database with user available tokens info.
The PHP script makes a file or edits a pre-defined file like settings.php for above changes("base_url(subdomain) and database) and copies it to user subdomain directory.
Now my questions are:
1.Is it possible to use Tokens in Rules as I mentioned above?
2.Is the PHP script a light-weight script or not?
3.What is your alternative to do such a thing?
4.Is my solution empty of security issues or not?
***Using PHPfilter to run the php script as an Action in Rules.
This Actions are set to run just after a user registers.
Thanks, Your answer will help a lot.