WordPress.org

Ready to get started?Download WordPress

Forums

Confirm User Registration
[resolved] BuddyPress? (6 posts)

  1. heatherhuhman
    Member
    Posted 2 years ago #

    Before I try installing this, I was wondering if it was compatible with the latest version of BuddyPress. Thanks!

    http://wordpress.org/extend/plugins/confirm-user-registration/

  2. Ralf Hortt
    Member
    Plugin Author

    Posted 2 years ago #

    I have never tried if it is compatible with BuddyPress. You could test it and give me Feedback if it worked :-)

  3. latinosamorir
    Member
    Posted 1 year ago #

    I just tested it with Buddypress and it works great!

    Thank you Ralf for such a wonderful plugin. Do you have a blog in english? Tried reading your blog but it's all in german. I'd love to learn what else you code.

    Donation box?

    Thank you.
    Giovanni

  4. latinosamorir
    Member
    Posted 1 year ago #

    Also, I wanted to display buddypress xprofile fields that people submitted in the "Pending registration" tab, any idea how to do that?

    Thank you,
    Giovanni

  5. nix255
    Member
    Posted 1 year ago #

    I'd be interested in @latinosamorir's last post as well. I need to check that the membership number a user provides at registration is a real membership and ties in with the name from a physical membership list, so being able to display a field would be soooo useful!

  6. latinosamorir
    Member
    Posted 1 year ago #

    Hi nix255.

    I ended up using bp-registration-options.php and added this code:

    [ Moderator note: Instead of using blockquoute, wrap code in the backtick character or use the code button. It makes the code readable. ]

    // BP Profile Info
    				$query = "SELECT value FROM ".$wpdb->prefix."bp_xprofile_data WHERE user_id = ".$user_id." AND field_id = ";
    
    				//Location
    				$locquery = $query. "'3'";
    				$temp_location = $wpdb->get_var($locquery);
    				$bp_location = bp_unserialize_profile_field( $temp_location );
    
    					//Ethnicity
    					$ethnicity = $query. "'21'";
    					$bp_ethnicity = $wpdb->get_var($ethnicity);		
    
    					//Country of Birth
    					$country = $query. "'34'";
    					$bp_country = $wpdb->get_var($country);
    
    					//Education Level
    					$eduquery = $query. "'278'";
    					$bp_education = $wpdb->get_var($eduquery);
    
    					//Industry
    					$industry = $query. "'291'";
    					$bp_industry = $wpdb->get_var($industry);
    
    					//Job title
    					$jobtitle = $query. "'290'";
    					$bp_jobtitle = $wpdb->get_var($jobtitle);
    
    					//Company
    					$company = $query. "'289'";
    					$bp_company = $wpdb->get_var($company);								
    
    					//University
    					$university = $query. "'288'";
    					$bp_university = $wpdb->get_var($university);
    
    					//Major
    					$major = $query. "'425'";
    					$bp_major = $wpdb->get_var($major);
    
    					//Graduate School
    					$grad = $query. "'424'";
    					$bp_grad = $wpdb->get_var($grad);
    
    					//Field of Study
    					$fieldstudy = $query. "'426'";
    					$bp_fieldstudy = $wpdb->get_var($fieldstudy);					
    
    					//Salary Level
    					$salquery = $query. "'319'";
    					$bp_salary = $wpdb->get_var($salquery);
    
    					//Marital Status
    					$mstatus = $query. "'417'";
    					$bp_mstatus = $wpdb->get_var($mstatus);
    
    					//Birthday	[NEEDS WORKS] <<<<<<<<<***************************************
    					$bdayquery = $query. "'326'";
    					$tempbday = $wpdb->get_var($bdayquery);
    					$bp_bday = date('m/d/Y',$tempbday);
    
    					$dateBday = date('Y-m-d',$tempbday);
    					list($year,$month,$day) = explode("-",$dateBday);
    					$year_diff  = date("Y") - $year;
    					$month_diff = date("m") - $month;
    					$day_diff   = date("d") - $day;
    					if ($month_diff < 0) $year_diff--;
    					elseif (($month_diff==0) && ($day_diff < 0)) $year_diff--;
    
    					$bp_age = $year_diff;
    ?>
    
    				<tr style="background:<?php echo $bgc;?> !important;">
    
                        <td valign="top"><?php //echo $user_id; ?><input type="checkbox" id="bp_member_check" name="bp_member_check[]" value="<?php echo $user_id; ?>"  /></td>
    
                        <td valign="top"><a>"><?php echo $userpic?></a></td>
    
                        <td valign="top"><strong><a>"><?php echo $username?></a></strong></td>
    
                        <?php if ($groups!=""){ ?>
    
       <!--                 <td valign="top">
    
    <?php 
    
    						$db_result = $wpdb->get_results( "select a.id,a.name from ".$iprefix."bp_groups a, ".$iprefix."bp_groups_members b where a.id=b.group_id and b.user_id=$user_id and a.id in (".$groups.") and a.status in ('semi','private') and b.is_confirmed=0" );
    
    						if ( count( $db_result ) > 0 ) {
    
    							foreach( $db_result as $the_db_result ) {
    
    								$group_id = $the_db_result->id;
    
    								$group_name = $the_db_result->name;							
    
    ?>
    
                        			[<input checked="checked" type="radio" name="usergroup_<?php echo $user_id; ?>_<?php echo $group_id; ?>" value="approve" />Approve<input type="radio" name="usergroup_<?php echo $user_id; ?>_<?php echo $group_id; ?>" value="deny" />Deny<input type="radio" name="usergroup_<?php echo $user_id; ?>_<?php echo $group_id; ?>" value="ban" />Ban] <strong><?php echo $group_name; ?></strong>
    
    <?php							
    
    							}
    
    						} else {
    
    							echo "N/A";
    
    						}
    
    ?>
    
                        </td> -->
    
                        <?php } ?>
    
                        <td align="top">
    					<?php
    					$bp_out = "Location: " . $bp_location . "; " . $bp_ethnicity . "; " . $bp_country . ";";
    					$bp_out .= $bp_education . "; " . $bp_major . "; " . $bp_university . ";";
    					$bp_out .= $bp_grad . "; " . $bp_fieldstudy . ";";
    					$bp_out .= $bp_industry . "" . $bp_company . "/" . $bp_jobtitle . "";
    					$bp_out .= $bp_mstatus . "; " . $bp_salary . "; " . $bp_age . "";
    
    					echo $bp_out;
    
    					?>
    
    					</td>
    
    					<td valign="top"><a>"><?php echo $useremail;?></a></td>
    
                        <td valign="top"><?php echo $userregistered;?></td>
    
                        <td valign="top">
    						<table>
                            <tr>
                            <td valign="top">
    						<?php echo '<img src="http://api.hostip.info/flag.php?ip=' . $userip . '" / >' ?>
                            </td>
                            <td valign="top">
    							<?php
                                $response = wp_remote_get( 'http://api.hostip.info/get_html.php?ip=' . $userip );
                                if(!is_wp_error( $response ) ) {
                                     $data = $response['body'];
    								 $data = str_replace("City:","City:",$data);
    								 $data = str_replace("IP:","IP:",$data);
    								 echo $data;
                                }
                                ?>
                            </td>
                            </tr>
                            </table>
                        </td>
    
    				</tr>
    
    		<?php } ?>
    
                </table>
    
                <input type="submit" name="Moderate" value="Approve" />
    
                <input type="submit" name="Moderate" value="Deny" onclick="return confirm('Are you sure you want to deny and delete the checked memeber(s)?');" />
    
                <input type="submit" name="Moderate" value="Ban" onclick="return confirm('Are you sure you want to ban and delete the checked memeber(s)?');" />
    
                *If you Ban a member they will not receive an email.
    
             <?php }else{
    
    		 	echo "No new members to approve.";
    
    		 }
    
        } ?>
    
        </form>

    Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags