Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ralf Hortt

    (@horttcore)

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

    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

    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

    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!

    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="https://api.hostip.info/flag.php?ip=' . $userip . '" / >' ?>
                            </td>
                            <td valign="top">
    							<?php
                                $response = wp_remote_get( 'https://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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Confirm User Registration] BuddyPress?’ is closed to new replies.