Search Results for 'profile fields'
-
Search Results
-
Hi everybody (I’m french my english is awful, be prepared),
I tried all the Google Maps plugins for BP, BC Maps seems to be perfect for my needs but with 0 documentation I don’t know wich fields I have to add on members profile…
BP User Profile Map: works fine but it’s only to put a map on each members profile, there’s no global map with all the members on one map only.
BuddyPress Maps: doesn’t works
BP Members Avatar map: could be perfect but works only with LAT and LON and I need the plugin works with cities names
My needs :
A map with all the members on it. To put themself on the map members will have to fill a field called “Location” with their cities name or adress
An idea ?Thanks by advance
Topic: Role-based Profile Fields
Hi guys,
I’ve installed a blanc 3.4 WordPress.
When I logon with a normal user (made by myself) I get a menu with their user profile. I there want them to be able to setup a single page with business info. (I would like to creat all fields for this business by myself) the page will be displayed; domain.com/nameusermadeup/
This way they can build a page with their company info. Name address, city, etc.. Also some pictures to be uploaded and a google map location.
How can I achieve this with buddypress?, letting users setup a single page with their business.
Later on, I would like to add a review system and rating system so other users can review the company.. Maybe give the possibility of 2 member sign ups.. Business owners & normal users?
Please help me out,
Thanks Paul
Hello guys,
How do I add certain profile fields in a Buddypress member profile header?
Thx in advance,
Kookidooki
Topic: BP Members Loop in a Widget
Hi everyone. I just installed BuddyPress 1.5.6 on WordPress 3.4.
I am trying to create a social site for baseball players. The only hump that I have not been able to figure out is if I can create multiple profiles.
My dilemma is that though everyone would have the same fields (name, college, age, place of birth, etc.), they would have ‘specialized fields’ as well.
For example, if I’m a pitcher, my fields would be different from everyone else. If I bat, I’d have different fields as well. If I’m a manager, I would have different fields as well.
Here are some samples from ESPN, Batting Stats are different from Fielding Stats, and Pitching Stats
Batting Stats – http://espn.go.com/mlb/stats/batting/_/year/2012/seasontype/2
Pitching Stats – http://espn.go.com/mlb/stats/pitching/_/year/2012/seasontype/2
Fielding Stats – http://espn.go.com/mlb/stats/fielding/_/year/2012/seasontype/2I am also looking for a plugin(?) where a user can input their own stats.
Any help would be greatly appreciated.
Hello everyone
I’m trying to add custom validation to a custom xprofile field. But it seems like I can’t access the fields’ values. The code below is added to my functions.php, but doesn’t seem to work.
The $field-variable is always NULL, though it is set as a parameter in the bp-xprofile-classes.php file on line 865.
This is the code on line 865 is
`return apply_filters_ref_array( ‘xprofile_data_is_valid_field’, array( (bool)$retval, &$this ) ); `And this is the code that doesn’t seem to work in my functions.php
`add_filter( ‘xprofile_data_is_valid_field’, ‘pbd_admin_is_valid_field’ );function pbd_admin_is_valid_field($retval, $field)
{
var_dump($field);
} `Any help is welcome, many thanks in advance!
Hi guys,
i’ve installed liveTV bundle ( http://wordpress.org/extend/plugins/livetv-bundle/ ), but this plugin show the profile fields only in the normal profile panel not in buddypress. so my question is, how can i change it to my buddypress profiles? The developer of this plugin, told me that i should ask a buddypress expert.Sorry about my bad english, but i really need your help.
Heres the code if you need it: (liveTV/page-admin/page-admin-livestreams.php)
Code://Now hook to create extra profil fields
add_action( ‘edit_user_profile’, ‘livetv_show_extra_profile_fields’ );
//When the current on the current profil has capabilties to edit -> display
add_action( ‘edit_user_profile_update’, ‘livetv_save_extra_profile_fields’ );
//When the current on the current profil has capabilties to edit -> updateadd_action( ‘show_user_profile’, ‘livetv_show_extra_profile_fields’ );
//When the current on the current profil has capabilties to show -> display
add_action( ‘personal_options_update’, ‘livetv_save_extra_profile_fields’ );
//When the current on the current profil is the current and edit -> updateif(!is_admin)
{
//Frontend plugins compatibility
add_action(‘profile_personal_options’, ‘livetv_show_extra_profile_fields’);
//When the current on the current profil is the current and show -> display
}//Now construct new profil fields access, based on option of the plugin (default wordpress roles or new roles)
function livetv_show_extra_profile_fields( $user )
{
$userID = $user->ID;$access = get_option(‘livetv_activate_creation_role’);
//If based on new roles
if($access == ‘on’)
{
$editable_roles = get_roles();foreach ($editable_roles as $key => $value)
{
$temp = preg_match("#^live_#", $key);if($temp == true)
{
if (current_user_can(”.$key.”))
{
$live_profil = ‘1’;
}
else
{
$live_profil = ‘0’;
}
}
}
}//If based on wordpress role
if($access == ‘off’)
{
$defautRole = get_option(‘livetv_defaut_role_wordpress’);if (current_user_can(”.$defautRole.”))
{
$live_profil = ‘1’;
}
else
{
$live_profil = ‘0’;
}
}//Administrator have already access to all profils
if (current_user_can(‘administrator’))
{
$live_profil = ‘1’;
}//Result to displaying profil fields
if($live_profil == ‘1’){if(is_admin()){$tableclass = ‘widefat options’;}else{$tableclass = ‘form-table’;} ?>
<table class="<?php echo $tableclass; ?>" style="width: 600px">
<h3>
<?php _e(‘Stream hinzufügen’); ?>
</h3><th colspan="2" class="dashboard-widget-title"><?php _e(‘Channel hinzufügen’, ‘livetv’); ?></th>
<?php
$types = explode(‘_’, get_option(‘livetv_types_order’));
foreach($types as $key => $type)
{ ?>
<tr valign="top">
<td scope="row"><label>
<?php _e(‘Dein Channel auf’, ‘livetv’); echo ‘ ‘. $type; ?>
</label></td>
<td class="livetv-admin-td"><input type="text" style="width:125px;" maxlength="55" name="live_<?php echo $type; ?>" id="live_<?php echo $type; ?>" class="regular-text" />
<span class="livetv_help" title="<?php _e(‘Füge einen Channelnamen oder eine Channel ID hinzu.’, ‘livetv’); ?><?php echo ‘ ‘ . $type. ‘.tv ‘; ?><?php _e(‘oder lasse es frei.’, ‘livetv’); ?>"></span><br /></td>
</tr>
<?php } ?>
</table>
<?php
foreach($types as $key => $type)
{
$countlive = get_user_meta($userID, ‘count_live_’.$type.”, true);
if($countlive) { ?>
<br />
<table class="widefat options" style="width: 600px"><th colspan="2" class="dashboard-widget-title"><?php _e(‘Deine aktiven Channel auf ‘, ‘livetv’); echo $type; ?>
<span class="mini-<?php echo $type; ?>"></span></th>
<tr valign="top">
<td scope="row"><label><?php _e(‘Entferne einen deiner Channel’, ‘livetv’) ?></label></td>
<td class="livetv-admin-td"><select name="delete_one_<?php echo ”.$type.” ?>" id="delete_one_<?php echo ”.$type.” ?>">
<option value=""><?php echo ” ?></option>
<?php
global $wpdb;
$thumbs = $wpdb->get_results( "SELECT meta_key, meta_value FROM $wpdb->usermeta WHERE meta_key LIKE ‘live_".$userID."_".$type."_%’" );
foreach($thumbs as $keythumb => $valuethumb)
{
?>
<option value="<?php echo ”.$valuethumb->meta_key.”; ?>"><?php echo $valuethumb->meta_value; ?></option>
<?php } ?>
</select>
<span class="livetv_help" title="<?php _e(‘Wähle löschen und klicke auf Registrieren um den Channel zu löschen’, ‘livetv’); ?>"></span><br /></td>
</tr>
<?php foreach($thumbs as $keythumb => $valuethumb)
{
?>
<tr valign="top">
<td scope="row"><label><?php echo ‘ID ‘ ?>
<input type="text" style="width:50px;" maxlength="55" disabled="disabled" value="<?php echo $keythumb + 1; ?>" />
</label></td>
<td class="livetv-admin-td"><input type="text" style="width:125px;" maxlength="55" disabled="disabled" name="<?php echo $valuethumb->meta_value; ?>" value="<?php echo $valuethumb->meta_value; ?>" id="<?php echo ”.$valuethumb->meta_key.” ?>" />
<span class="livetv_help" title="<?php _e(‘Dieser Channel wird auf unserer Stream Seite angezeigt.’, ‘livetv’); ?>"></span></td>
</tr>
<?php } ?>
</table>
<?php }}}}//Profil field update function
function livetv_save_extra_profile_fields( $user_id )
{
if ( current_user_can( ‘edit_user’, $user_id ) )
{if(isset($_POST[‘delete_one_own3d’]) && !empty($_POST[‘delete_one_own3d’]))
{
$temp = stripslashes($_POST[‘delete_one_own3d’]);if($temp)
{
delete_user_meta( $user_id, ”.$temp.”);
}
}if(isset($_POST[‘delete_one_justin’]) && !empty($_POST[‘delete_one_justin’]))
{
$temp = stripslashes($_POST[‘delete_one_justin’]);if($temp)
{
delete_user_meta( $user_id, ”.$temp.”);
}
}if(isset($_POST[‘delete_one_twitch’]) && !empty($_POST[‘delete_one_twitch’]))
{
$temp = stripslashes($_POST[‘delete_one_twitch’]);if($temp)
{
delete_user_meta( $user_id, ”.$temp.”);
}
}if(isset($_POST[‘live_own3d’]) && $_POST[‘live_own3d’] != ”)
{$countlive = get_user_meta($user_id, ‘count_live_own3d’, true);
if(!$countlive){
$countlive = ‘0’;
}$count = $countlive + ‘1’;
update_user_meta( $user_id, ‘count_live_own3d’, ”.$count.”);
update_user_meta( $user_id, ‘live_’.$user_id.’_own3d_’.$count.”, $_POST[‘live_own3d’] );
}if(isset($_POST[‘live_justin’]) && $_POST[‘live_justin’] != ”)
{$countlive = get_user_meta($user_id, ‘count_live_justin’, true);
if(!$countlive){
$countlive = ‘0’;
}$count = $countlive + ‘1’;
update_user_meta( $user_id, ‘count_live_justin’, ”.$count.”);
update_user_meta( $user_id, ‘live_’.$user_id.’_justin_’.$count.”, $_POST[‘live_justin’] );
}if(isset($_POST[‘live_twitch’]) && $_POST[‘live_twitch’] != ”)
{$countlive = get_user_meta($user_id, ‘count_live_twitch’, true);
if(!$countlive){
$countlive = ‘0’;
}$count = $countlive + ‘1’;
update_user_meta( $user_id, ‘count_live_twitch’, ”.$count.”);
update_user_meta( $user_id, ‘live_’.$user_id.’_twitch_’.$count.”, $_POST[‘live_twitch’] );
}
}
}
?>Greetz
…