Skip to:
Content
Pages
Categories
Search
Top
Bottom

Auto generating blank member profiles


  • animeshtripathi
    Member

    @animeshtripathi

    Hi all,

    Is there any plugin I can use to autogenerate blank member profiles with a default password and a randomized URL? I’m using the latest versions of WordPress and Buddypress.

    Best,

    Animesh

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

  • modemlooper
    Moderator

    @modemlooper

    Use BuddyPress Default Data plugin


    animeshtripathi
    Member

    @animeshtripathi

    Thank you for the quick response. Will it generate random profile URLs as well, though?


    modemlooper
    Moderator

    @modemlooper

    It adds some predefined user accounts, forum topics, activity updates etc. You can pick what you want. Why do you need fake accounts?


    animeshtripathi
    Member

    @animeshtripathi

    I don’t exactly need fake accounts, but the idea is this:

    We have products which each have a unique ID (imagine something like 001,002,002). We want the user to go to their blank profile and fill in the information themself when they visit oursite.com/001. So we want to integrate the unique IDs with their BuddyPress profiles. Hence the blank profiles and random URLs


    modemlooper
    Moderator

    @modemlooper

    If its not a lot of “products” then you can still use the default data plugin

    The user info is in a file users.php in the plugins data folder.

    `$users_data = array(
    0 => array(
    ‘login’ => ‘antawn’,
    ‘pass’ => ‘1234567890’,
    ‘display_name’ => ‘Antawn Jamison’,
    ’email’ => ’email1@aol.com’
    ),
    1 => array(
    ‘login’ => ‘chynna’,
    ‘pass’ => ‘1234567890’,
    ‘display_name’ => ‘Chynna Phillips’,
    ’email’ => ’email2@aol.com’
    ),
    2 => array(
    ‘login’ => ‘kiki’,
    ‘pass’ => ‘1234567890’,
    ‘display_name’ => ‘Kiki Cuyler’,
    ’email’ => ’email3@aol.com’
    ),
    `

    You can see how it would be easy to change and add more to this array. You would edit this info before activating plugin. Then just choose the add users option in the plugin set up.

    @modemlooper on this subject. Is there anyway of generating a blank user profile when somebody mentions a @profile account containing the mentions ?


    modemlooper
    Moderator

    @modemlooper

    No, and that sounds very dangerous and unstable.


    animeshtripathi
    Member

    @animeshtripathi

    We’re going to have something like 300 of these products to begin with. Any PHP magic I can run there?


    modemlooper
    Moderator

    @modemlooper

    Thats not that many and would take about 30 min to write out the array if you cut and paste 300 items. I think it would take longer to write a function to do it for you.


    Jonathan
    Member

    @hostprofile

    @animeshtripathi

    You may also want to look into a plugin that will allow you to use the same e-mail address all accounts, unless you really want to create either 1). 300 E-Mail Accounts or 2). 300 Forwards.

    You can check the plugin below out. It should suite your needs.

    https://wordpress.org/extend/plugins/allow-multiple-accounts/faq/


    modemlooper
    Moderator

    @modemlooper

    You do not need to create the email accounts with the default data plugin. They can be fake:

    change-email1@url.com


    Jonathan
    Member

    @hostprofile

    Of course, just looking at things from the hosting side of things.

    If you create 300+ accounts for use as ‘products’ and any of them are even slightly active, notifications will be generated which will in turn send e-mail to the fake e-mail address. Unless the web host in question has it set to blackhole all failed e-mail attempts, there’s going to be quite a backlog in the mail queue.

    Using the plugin to allow multiple e-mail addresses for a specific @domain.ext would allow the user to use the same e-mail for all accounts and simply receive the mail instead of loading up the mail queue. If the mail queue is setup to simply drop the mail after one attempt, it may not be that big of a deal, but most are not and continue to try for 24-48 hours.


    animeshtripathi
    Member

    @animeshtripathi

    Thank you for the help, guys. I’m thinking about the same email addresses part, but obviously the people would be able to change these email IDs upon login, right? I hope you get the idea, the username would be randomized, so it would be mysite.com/members/QRP342 . Also, is there anyway I could remove the ‘members’ part from the URL and make it just mysite.com/QRP342?


    modemlooper
    Moderator

    @modemlooper


    animeshtripathi
    Member

    @animeshtripathi

    Thanks a ton for all your help man. I’m a college student working on a startup idea, we’re looking for VC funding, and had to get this prototype ready for the demo. Don’t lock this thread yet, though, I might have some other doubts, being the BuddyPress noob I am.


    animeshtripathi
    Member

    @animeshtripathi

    Hi,

    Thank you yet again for all your suggestions. They worked extremely well.

    I also wanted to add an ‘Edit Profile’ button to the profile page for the member who is logged in… How do i go about doing that?


    animeshtripathi
    Member

    @animeshtripathi

    I’m thinking, instead of the default data plugin, couldn’t I use something like https://buddypress.org/community/groups/csv-user-import/ or a better bulk user importer? I have the random strings in a list, so I will be able to create an Excel/CSV more efficiently than writing the arrays for the Default Data Plugin…


    animeshtripathi
    Member

    @animeshtripathi

    Oh! I just realised that you’re the one who made the BP mobile theme I’m using!!! :O Damn, you’re an expert. My BP mobile homepage is currently blank, how do I fix this? (other pages are working properly)


    animeshtripathi
    Member

    @animeshtripathi

    I figured out the CSV Import. I also installed BuddyPress Follow, how do I add a follow button to the profile?


    modemlooper
    Moderator

    @modemlooper

    Create a page in admin titled bp-mobile and add stuff as you would when creating a page


    animeshtripathi
    Member

    @animeshtripathi

    Okay, thank you. I’ll do that. I have some more questions:

    1)I wanted to add an ‘Edit Profile’ button to the profile page for the member who is logged in. How do I go about doing that?
    2)Installed BuddyPress Follow, how can I add a follow button to the profile?
    3)Why doesn’t the WordPress password nag work for Buddypress? Is there an alternative


    animeshtripathi
    Member

    @animeshtripathi

    Love your theme man. Your advice worked perfectly.


    modemlooper
    Moderator

    @modemlooper

    1) users can edit their own profile link is below the profile tab
    2) post this topic in the followers plugin forum
    3) when you create a user it bypasses the WordPress activation sequence. You will need to create a custom solution. An easy way is to use the BuddyPress notification system and send a site wide message telling all users to change their password.


    animeshtripathi
    Member

    @animeshtripathi

    Yeah, I know that users can edit their own profiles, but I want a more visible profile button for the people who login to their blank (generated) profiles… What should I change/add in members-single.php to get that?

Viewing 24 replies - 1 through 24 (of 24 total)
  • The topic ‘Auto generating blank member profiles’ is closed to new replies.
Skip to toolbar