Advertisement
caludk

muii

Nov 26th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. <?php
  2. // hacks and mods will go here fjerner editor i profiltekst boks
  3.  
  4.  
  5. add_filter ('bp_xprofile_is_richtext_enabled_for_field', '__return_false');
  6.  
  7.  
  8. //Tilføjer profilinfo i profiloversigt
  9.  
  10. add_action('bp_directory_members_item', 'bphelp_dpioml');
  11. function bphelp_dpioml(){
  12. $bphelp_my_profile_field_1='Fra';
  13. $bphelp_my_profile_field_2='Uddannelse';
  14. $bphelp_my_profile_field_3='Branche';
  15. $bphelp_my_profile_field_4='Børn';
  16. $bphelp_my_profile_field_5='Kropsbygning';
  17. if( is_user_logged_in() && bp_is_members_component() ) { ?>
  18. <div class="bph_xprofile_fields" style=" margin-left: 25%;">
  19. <?php echo $bphelp_my_profile_field_1 ?>:&nbsp;<?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_1 ); ?><br />
  20. <?php echo $bphelp_my_profile_field_2 ?>:&nbsp;<?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_2 ); ?><br />
  21. <?php echo $bphelp_my_profile_field_3 ?>:&nbsp;<?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_3 ); ?><br />
  22. <?php echo $bphelp_my_profile_field_4 ?>:&nbsp;<?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_4 ); ?><br />
  23. <?php echo $bphelp_my_profile_field_5 ?>:&nbsp;<?php echo bp_member_profile_data( 'field='.$bphelp_my_profile_field_5 ); ?><br />
  24. </div><?php
  25. }
  26. }
  27.  
  28. if ( ! defined( 'BP_AVATAR_THUMB_WIDTH' ) )
  29. define( 'BP_AVATAR_THUMB_WIDTH', 150 ); //change this with your desired thumb width
  30.  
  31. if ( ! defined( 'BP_AVATAR_THUMB_HEIGHT' ) )
  32. define( 'BP_AVATAR_THUMB_HEIGHT', 150 ); //change this with your desired thumb height
  33.  
  34. if ( ! defined( 'BP_AVATAR_FULL_WIDTH' ) )
  35. define( 'BP_AVATAR_FULL_WIDTH', 260 ); //change this with your desired full size,weel I changed it to 260 :)
  36.  
  37. if ( ! defined( 'BP_AVATAR_FULL_HEIGHT' ) )
  38. define( 'BP_AVATAR_FULL_HEIGHT', 260 ); //change this to default height for full avatar
  39.  
  40. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement