Auto generating blank member profiles
Thank you for the quick response. Will it generate random profile URLs as well, though?
It adds some predefined user accounts, forum topics, activity updates etc. You can pick what you want. Why do you need fake accounts?
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
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’ => ’firstname.lastname@example.org’
1 => array(
‘login’ => ‘chynna’,
‘pass’ => ‘1234567890’,
‘display_name’ => ‘Chynna Phillips’,
’email’ => ’email@example.com’
2 => array(
‘login’ => ‘kiki’,
‘pass’ => ‘1234567890’,
‘display_name’ => ‘Kiki Cuyler’,
’email’ => ’firstname.lastname@example.org’
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.
No, and that sounds very dangerous and unstable.
We’re going to have something like 300 of these products to begin with. Any PHP magic I can run there?
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.
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.
You do not need to create the email accounts with the default data plugin. They can be fake:
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.
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?
Yeah, all Facebook/twitter logins create fake emails.
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.
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?
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…
Oh! I just realised that you’re the one who made the BP mobile theme I’m using!!! Damn, you’re an expert. My BP mobile homepage is currently blank, how do I fix this? (other pages are working properly)
I figured out the CSV Import. I also installed BuddyPress Follow, how do I add a follow button to the profile?
Create a page in admin titled bp-mobile and add stuff as you would when creating a page
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
Love your theme man. Your advice worked perfectly.
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.
- The topic ‘Auto generating blank member profiles’ is closed to new replies.