Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // hacks and mods will go here fjerner editor i profiltekst boks
- add_filter ('bp_xprofile_is_richtext_enabled_for_field', '__return_false');
- //Tilføjer profilinfo i profiloversigt
- add_action('bp_directory_members_item', 'bphelp_dpioml');
- function bphelp_dpioml(){
- $bphelp_my_profile_field_1='Fra';
- $bphelp_my_profile_field_2='Uddannelse';
- $bphelp_my_profile_field_3='Branche';
- $bphelp_my_profile_field_4='Børn';
- $bphelp_my_profile_field_5='Kropsbygning';
- if( is_user_logged_in() && bp_is_members_component() ) { ?>
- <div class="bph_xprofile_fields" style=" margin-left: 25%;">
- <?php echo $bphelp_my_profile_field_1 ?>: <?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_1 ); ?><br />
- <?php echo $bphelp_my_profile_field_2 ?>: <?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_2 ); ?><br />
- <?php echo $bphelp_my_profile_field_3 ?>: <?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_3 ); ?><br />
- <?php echo $bphelp_my_profile_field_4 ?>: <?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_4 ); ?><br />
- <?php echo $bphelp_my_profile_field_5 ?>: <?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_5 ); ?><br />
- </div><?php
- }
- }
- if ( ! defined( 'BP_AVATAR_THUMB_WIDTH' ) )
- define( 'BP_AVATAR_THUMB_WIDTH', 150 ); //change this with your desired thumb width
- if ( ! defined( 'BP_AVATAR_THUMB_HEIGHT' ) )
- define( 'BP_AVATAR_THUMB_HEIGHT', 150 ); //change this with your desired thumb height
- if ( ! defined( 'BP_AVATAR_FULL_WIDTH' ) )
- define( 'BP_AVATAR_FULL_WIDTH', 260 ); //change this with your desired full size,weel I changed it to 260 :)
- if ( ! defined( 'BP_AVATAR_FULL_HEIGHT' ) )
- define( 'BP_AVATAR_FULL_HEIGHT', 260 ); //change this to default height for full avatar
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement