The MU forums have moved to WordPress.org

Using a Wildcard for Blog Sign-ups (6 posts)

  1. trivum
    Member
    Posted 18 years ago #

    I would like to allow anyone with a .edu address to sign up for a blog, but ONLY those with a .edu address. For the domain sign-up option at first I tried putting in just .edu to see if that would work, and then I tried a wildcard *.edu. Neither did the trick.

    Is there any way to do this without listing every possible .edu domain?

    Thanks for any suggestions.

  2. trivum
    Member
    Posted 18 years ago #

    I've been thinking some more about this, and I wonder if there is a way to hack the code so that it only pays attention to the domain extension (i.e. the .edu part) and not the entire domain.

    Any suggestions for this?

    Thanks.

  3. lunabyte
    Member
    Posted 18 years ago #

    Hook into the registration process, and do a check on the email address posted for .edu, and if returns false, kick it back with an error.

  4. trivum
    Member
    Posted 18 years ago #

    Thanks for the response, lunabyte.

    I hate to ask, but I will anyway. I don't really know anything about writing code. Does anyone have suggestions for what I might do specificially? - i.e. where I would "hook into the registration process" and what code I would need to insert?

    It's one of my new year's resolutions to learn some basic php/mysql so I might be able to do these things on my own, but at the moment ....

  5. andrea_r
    Moderator
    Posted 18 years ago #

  6. trivum
    Member
    Posted 18 years ago #

    Thanks for the link.

About this Topic