• Resolved Architect

    (@swotong)


    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 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

    (@swotong)

    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

    (@swotong)

    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)

    (@ipstenu)

    ?????? Advisor and Activist

    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

    (@swotong)

    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:
    https://icecream.bluewhalefamily.com/files/2012/04/icecreamsphoto.jpg

    But actually the photo is stored here in the server:
    https://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

    (@swotong)

    And I’m using the latest WordPress 3.3.2 with Buddypress 1.55 also latest

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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

    (@swotong)

    thx~!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘invite new users using script’ is closed to new replies.