Search Results for 'registration'
-
AuthorSearch Results
-
April 14, 2010 at 11:13 am #73474
mgpix
ParticipantOk, I eventually found a workaround.
The below code will update firstname and lastname fields in the BP member profile upon user registration :
add_action('user_register', 'my_user_register');
function my_user_register($user_id)
{
if ( function_exists( 'xprofile_set_field_data' ) ) {
$firstname = get_usermeta( $user_id, 'first_name' );
$lastname = get_usermeta( $user_id, 'last_name' );
xprofile_set_field_data( 'firstname', $user_id, $firstname );
xprofile_set_field_data( 'lastname', $user_id, $lastname );
}
}
April 14, 2010 at 10:03 am #73471In reply to: How to control spam registration?
dadaas
MemberCan someone give solution that users that wish to sign up dont use buddypress signup page, instead they use regular wordpress signup which is much much safer.
Then all you need to do is install SABRE and spammers are gone. This is urgent request because i dont wish to have spoammers on my sites, same goes for everyone else, i m getting hit by 20 spammers per hour.
BTW nothing mentioned in this topic works!!!!
April 14, 2010 at 7:10 am #73465Meerblickzimmer
ParticipantI tryed a ticket but its cloesd now (https://trac.buddypress.org/ticket/2246) Any solution for this problem. Looks like i´m not allone with this bug. If i deactivate the buddypress-default theme, it works fine, registration is possible. But not with the buddypress-theme.
Any solutions out there?
Thanks a lot!
M
April 14, 2010 at 2:34 am #73449Gene53
ParticipantOops, spoke too soon, if I edit anything in group 1 (where Username is hidden), I get “Please make sure you fill in all required fields in this profile field group before saving” even though everything has been filled.
Oh well, back to the drawing board. Maybe the code wasn’t inserted in the right place and/or I have to add HTML but I haven’t a clue as to what I should add.
April 14, 2010 at 1:49 am #73445Gene53
Participant@jivany Wow, thanks, I simply added:
<?php if ( 'Username' == bp_get_the_profile_field_name() ) : ?>
<?php else : ?>under:
<?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
inserted a endif where you indicated, didn’t do any HTML formatting and the Username field is now hidden.
Thanks again!
Gene
April 14, 2010 at 12:28 am #73436jivany
ParticipantWell, yes, you should be able to make the username field non-editable. I would assume the username field is a “textbox” type. In edit.php, you should be able to just filter out the username field and not create a form “textbox” HTML element. So, in member/single/profile/edit.php around line 21, add in a check something like:
<?php if ( 'username' == bp_get_the_profile_field_name() ) : ?>
// Just display the Username with bp_the_profile_field_name() and add HTML to style how you want.
<?php else : ?>
// Do the existing <label... code on line 23 and 24
<?php endif; ?>Now, a creative user might still be able to circumvent your little hack and submit their change directly to the form. I see a nonce being used though in the form so that might not be too much of a concern after all.
April 13, 2010 at 9:09 pm #73384Anton
ParticipantExcellent topic!
I had it a bit differently when I started my first wpmu bp site. I was active on one of my country’s leading social networks when it was starting to fall apart. People were leaving everyday because the system was built on old software and no one seemed to care about support, etc. I then decided to create my own social network (similar to the popular one) and created my bp network taking 20 of the top networkers on the other site with me. The network has grown quite bigger than the first 20 members but I must admit it’s a slow process as others first wants to see what is in it for them.
To get back to the topic. Be active on the network and show your starting members how to use the network and all the benefits of your network. Also be sure to write “help” files as you won’t be around to answer everyones questions all the time. I’ve added a “feedback” floating bar button on the network where members can submit feedback /queries regarding the network to me.
I would like to add the Twitter and Facebook connection settings to the network but it doesn’t make sense as this network is country specific and on the registration page there’s a couple of fields that must be completed.
April 13, 2010 at 8:20 pm #73362In reply to: BuddyPress Geo plugin
brianbuffon
Member@katendarcy: Could you elaborate just a little bit on your previous post to @jamesyeah? I am having the same problem with not being able to select a location field. I’ve already set up a registration form with fields for city state and zip code, and included the lat and long fields specified in the plugin install directions.
Thanks!
April 13, 2010 at 7:11 pm #73344Gene53
ParticipantThanks guys, I’ll drop the idea being that it’s way too complicated for what it’s worth.
My reason for having the mandatory name field only (which I renamed Username) in group 1 is that the site I’m working on is username only and thanks to Brajesh Singh’s modifications in edit.php, group 1 can’t be edited by the users.
So, my only alternative is to restore the original edit.php file, move the group 2 fields to group 1 so they may be filled out during registration but I wonder if there would be a simple way to hide or “gray out” the name field in edit.php so the user can’t change it.
April 13, 2010 at 4:55 pm #73324David Bisset
ParticipantGeneral Site Tips:
1. Try private testing with a focus group (not your designers or developers).
2. Don’t add too many features, determine the level of request and see if they fit with the spirit of the site.
3. Don’t be afraid to make the site live. Just get the site out there and let users provide you feedback. I know clients that test, refine, etc. and it never makes it out the door.
Social Network Tips:
1. Facebook, Twitter, and social networking integration is important. Please love to login with other accounts.
2. Create a way for users or even visitors to easily locate interesting people straight from the homepage.
3. Make sure search is simple, easy to use, and as powerful as possible. Finding connections should be a no-brainer.
4. Social networks grow the best when people can invite other non-users into the network.
5. Social networks also grow quickly when members can share links, media, etc. with those within and outside the network.
6. Give incentives for people to come back to the network. Awarding users for actions (like Foursquare) is an interesting way to do this, although there are plenty of other examples that can fit your particular network.
7. Avoid long registration forms at all costs.
April 13, 2010 at 1:39 pm #73297In reply to: User Registration Problems
piphut
Participanthmmm I’ve had several people tell me now that when they used lowercase letters for their username it went through fine. Anyone know where and what code to insert to automatically make a username lowercase?
I don’t mind kicking an error if that is easier.
April 13, 2010 at 11:38 am #73281Paul Wong-Gibbs
KeymasterSo, yes, by default, the register page only shows group 1 (the “base” group). You only retrieve one group via the profile_group_id= parameter in the bp_has_profile() call.
So, by default, this happens:
What I’m trying to accomplish is to hide groups 3 and 4 on the registration page not to overwhelm the user with a bunch of fields to fill out during sign-up, those fields can be filled out once the user has activated her/his account via “edit profile”.
There have been other threads on the forum regarding showing more than one profile group on the registration page; I found several, but take a look at https://buddypress.org/forums/topic/all-fields-for-registration. It’s probably going to be really difficult to implement unless you have a decent understanding of PHP.
April 13, 2010 at 11:18 am #73280jivany
ParticipantNope, I don’t think so. I was thinking you could remove the ‘profile_group_id=1’ arg from bp_has_profile but that doesn’t seem to allow the registration page to show more groups. I guess it appears that the only “required” fields for registration are the required ones in the Base group.
Might be worth opening a ticket on this one to see if that is the expect behaviour. Alternatively, ping R-a-y or DJPaul and see if they know.
April 13, 2010 at 6:15 am #73252In reply to: User Registration Problems
Paul Wong-Gibbs
KeymasterHmm. No, I don’t think that ought to break anything (capitals in email). I know you can’t really test, but if it was capital letters in the username or email address, you’d have the same problem on a regular WordPress install.
April 13, 2010 at 3:50 am #73244In reply to: User Registration Problems
piphut
Participantbump. I have a hunch that part of the problem is when people try to use capital letters in their username or email.
Any ideas?
April 13, 2010 at 2:24 am #73233Gene53
ParticipantNope, only getting group 1. I wonder if:
<?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
can be modified to fetch group 2 also.
LOL, this is driving me nuts…
April 13, 2010 at 2:09 am #73229jivany
ParticipantNo worries. The code I gave should display everything except group 3 & 4. Sorry, I think I said it backwards in the previous post.
That said, even without the code, I’m only getting group 1 showing up on the registration page so I’m not really sure what’s going on in register.php now.
April 13, 2010 at 2:04 am #73228Gene53
ParticipantDarn, you’re right, I restored an original version of register.php and only group 1 shows. I’ll go and try your code to see if I can get group 2 to load.
Sorry about that…
April 13, 2010 at 1:24 am #73217jivany
ParticipantOK, now I’m scratching my head.
When I create a second group, even if I tag the fields in the second group as “required”, they don’t show up on the register page (the bp-default version). The second group only shows up on the user’s profile page where they can edit the fields. They are tagged as “required” but nothing seems to force the user to fill them out.
I’m confused now as to what you’re seeing and/or trying to do.
April 13, 2010 at 1:14 am #73216jfcarter
ParticipantAfter registration. These are not required fields.
April 13, 2010 at 12:39 am #73210Gene53
ParticipantOops,sorry, I think there was a misunderstanding, bp-register loads all groups by default, what I’m trying to accomplish is to hide (or not load) groups 3 and 4 so the user can fill those optional field groups once they’ve activated their accounts..
April 12, 2010 at 10:54 pm #73202jivany
ParticipantOK. I’m thinking you can do something like this. Find this part of the file in register.php:
<?php /***** Extra Profile Details ******/ ?>
<?php if ( bp_is_active( 'xprofile' ) ) : ?>
<div class="register-section" id="profile-details-section">
<h4><?php _e( 'Profile Details', 'buddypress' ) ?></h4>
<?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
<?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>At this point, add in a line like:
if( (bp_the_profile_group != "3") || (bp_the_profile_group != "4") ) :
Then go down to this part of the file:
<?php endwhile; ?>
<input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids() ?>" />
<?php endwhile; endif; endif; ?>
</div><!-- #profile-details-section -->Before the first endwhile line, insert this:
<?php endif; ?>
I *think* that should spit out groups 3 & 4 (assuming you have groups 3 & 4 defined in your profile groups). You might need to add in group “1” also to get the Base. The only part I’m not sure about right now is if the number need to be in double quotes or just bare. So it might be:
if( (bp_the_profile_group != 3) || (bp_the_profile_group != 4) ) :
I think.
April 12, 2010 at 9:59 pm #73193Gene53
Participant@jivany, I’ve been playing around with this all afternoon but to no avail (learning PHP as I go along), either group no. 2 shows up but group 1 (name) doesn’t, or group 1 and only 1 field out of 6 from group 2 or neither groups 1 and 2.
I give up, LOL
Thanks,
Gene
April 12, 2010 at 4:59 pm #73011In reply to: User Registration Problems
piphut
ParticipantAnd it never sends the email – it never gets past that registration form.
April 12, 2010 at 4:59 pm #73111In reply to: User Registration Problems
piphut
ParticipantAnd it never sends the email – it never gets past that registration form.
-
AuthorSearch Results