Title: invite new users using script
Last modified: August 20, 2016

---

# invite new users using script

 *  Resolved [Architect](https://wordpress.org/support/users/swotong/)
 * (@swotong)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/invite-new-users-using-script/)
 * This is a quite challenging task I guess. What I’m trying to do is to invite 
   new users to my wordpress with some php script rather than inside the wordpress.
   [Secure Invites](http://wordpress.org/extend/plugins/wordpress-mu-secure-invites/)
   seems to be a quite useful plugin except that I need to invite people inside 
   my wordpress.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [Architect](https://wordpress.org/support/users/swotong/)
 * (@swotong)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/invite-new-users-using-script/#post-2704279)
 * To make it more understandable, I guess I should explain why I need to do this:
   
   I have a server with 200 customized wordpress blogs and I’m going to give them
   out to people who register at my website(not wordpress based). So once you register,
   you’ll receive the invitation to one of those wordpress and be able to register.(
   say wordpress # 33, the next person will get wordpress # 34)… Kind of like what
   wordpress.com is doing?
 *  Thread Starter [Architect](https://wordpress.org/support/users/swotong/)
 * (@swotong)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/invite-new-users-using-script/#post-2704280)
 * If you are interested…My previous solution was to store passwords of those 200
   wordpress in a database along with their addresses, then I wrote a script that
   send passwords with url to people who register at my website.. It worked fine
   but saving 200 passwords along with their urls to database manually is so annoying…
 * So with the new method and script, people who registered @ my wesite will be 
   invited to register at say wordpress #35 then the next get to register at #36….
 * In a word, I think I need to know how to **write a script that use the secure
   invites plugin to send out invitation without having to do that manually **
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 11 months ago](https://wordpress.org/support/topic/invite-new-users-using-script/#post-2704499)
 * Are these 200 totally separate installs, or a Multisite with 200 sites?
 * Cause WordPress.com is using Multisite, and people just register and get a site
   that way. The site’s generated on the fly.
 *  Thread Starter [Architect](https://wordpress.org/support/users/swotong/)
 * (@swotong)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/invite-new-users-using-script/#post-2704713)
 * > Cause WordPress.com is using Multisite, and people just register and get a 
   > site that way. The site’s generated on the fly.
 * Hi, Ipstenu! Thanks for mentioning Multisite. I wasn’t using it but now I find
   it really convenient! However I encountered another problem regarding registered
   users uploading media. When they upload media(either photo or music), they successfully
   show up in my server, but users can’t view them at all…. Could you help me look
   at this problem first, or should I start new thread?
 * I think this has to do with subdomain because when I install MU with subfolder
   option, everything works perfectly.
 * **Some details:**
    My website domain is “bluewhalefamily.com”
 * For example **if **a user creates a new site called “icecream.bluewhalefamily.
   com”
    When she upload media, wordpress shows that the photo is stored here: [http://icecream.bluewhalefamily.com/files/2012/04/icecreamsphoto.jpg](http://icecream.bluewhalefamily.com/files/2012/04/icecreamsphoto.jpg)
 * But actually the photo is stored here in the server:
    [http://bluewhalefamily.com/wp-content/blogs.dir/9/files/2012/04/icecreamsphoto.jpg](http://bluewhalefamily.com/wp-content/blogs.dir/9/files/2012/04/icecreamsphoto.jpg)
 * So if I type in the second (real) url, I’m able to open that photo, and the first
   url gives me 404 error.
 * My guess is there is something wrong with my redirection setup.
    I believe I 
   did follow the instruction correctly when setting up Mu, still here is the .htaccess
   file:
 *     ```
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
   
       # uploaded files
       RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
   
       RewriteCond %{REQUEST_FILENAME} -f [OR]
       RewriteCond %{REQUEST_FILENAME} -d
       RewriteRule ^ - [L]
       RewriteRule . index.php [L]
       ```
   
 * I also tried to change folder permission of blogs.dir and wp-content from 755
   to 777 (I feel I shouldn’t do that, and I changed it back)
 * Really appreciate anyone’s help. Thank you!
 *  Thread Starter [Architect](https://wordpress.org/support/users/swotong/)
 * (@swotong)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/invite-new-users-using-script/#post-2704714)
 * And I’m using the latest WordPress 3.3.2 with Buddypress 1.55 also latest
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 11 months ago](https://wordpress.org/support/topic/invite-new-users-using-script/#post-2704721)
 * If you’re on Multisite, make sure AllowOverride is set to ALL on your server’s
   httpd.conf (ask your webhost if you don’t know what that means).
 *  Thread Starter [Architect](https://wordpress.org/support/users/swotong/)
 * (@swotong)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/invite-new-users-using-script/#post-2704752)
 * thx~！

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘invite new users using script’ is closed to new replies.

## Tags

 * [secure invites](https://wordpress.org/support/topic-tag/secure-invites/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 7 replies
 * 2 participants
 * Last reply from: [Architect](https://wordpress.org/support/users/swotong/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/invite-new-users-using-script/#post-2704752)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
