Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 10,851 through 10,875 (of 32,679 total)
  • Author
    Search Results
  • fakename014
    Participant

    Hi,

    I have a custom theme for Buddypress. Currently the WP admin bar shows for admin users, but no others.
    I would like all users to be able to use the admin bar so they can access their activity, notifications, settings etc

    Is this normal for Buddypress to only show the admin bar to admins? or have I somehow done something to hide it from non-admins?

    It’s not a theme problem because I tried it with other themes and had the same problem.

    Can anyone help?

    Info:
    Wordpress 3.9.1
    Buddypress 2.0.1
    bp-custom.php –> 2 redirect functions for login and logout
    lots of plugins
    Local dev running on MAMP

    #184953
    steveparkinson
    Participant

    Novice here… this should be fun. (July 2014)

    I got someone to import users in to my sweetdate (2.6.1)/buddypress (2.5.4) site. The users are there in the WordPress users, but not in the Buddypress site. They don’t even show up in the Pending Activation. I can see them in the SQL Database.

    How can I migrate them in to the Buddypress members, searchable, database.

    Thanks in advance.

    Miatsu
    Participant

    Hello,

    I’m actually using WordPress 3.9.1 and BuddyPress 2.0.1.

    I would like to set a condition where : if current user is a member of the group X, then I display Y content. I would like to do this outside of the buddypress loop.

    How can we know if the current user is in a group and in which group he is?

    Thank you in advance !

    Miatsu

    Perrie
    Participant

    I have been receiving this message:

    The following active BuddyPress Components do not have associated WordPress Pages: Activate, Register. Repair

    I have posted on wordpress and they sent me to buddypress. I looked in the past forums but it seemed in the past this was fixed by the “wizard” which is not in use anymore. I am using bluehost and have done all my downloading through them with this being the only problem
    Any advice on how to fix this?

    Thanks!

    #184904
    r-a-y
    Keymaster

    Enable debugging:
    https://codex.wordpress.org/Debugging_in_WordPress

    And see if any error messages are logged or outputted.

    #184902
    r-a-y
    Keymaster

    I’m guessing you have an older plugin that you want to support with the newer theme compatibility standard.

    Since you’re referencing bp_core_load_template( 'activity/index' ) in your example, I’m guessing you are trying to add theme compat for a new slug in the activity directory (eg. example.com/activity/new-slug/)? If so, you’ll want to copy the following code, rename the class and change a few things, so it is applicable to your plugin:
    https://buddypress.trac.wordpress.org/browser/tags/2.0.1/bp-activity/bp-activity-screens.php#L301

    Then you would load up your new class with the bp_core_load_template() call.

    if ( class_exists( 'BP_Theme_Compat' ) ) {
         new BP_Activity_WHATEVER_YOUR_CLASS_IS_CALLED_Theme_Compat;
    }
    bp_core_load_template( 'activity/index' );
    #184877
    lorns
    Participant

    @mercime as mentioned in my original post I’m running locally using MAMP. I’ve done 3 clean installs first deleting then redownloading & installing both WordPress & BuddyPress.

    Totally stumped & frustrated.

    #184868
    Nomi
    Participant

    I have wasted too much time on this.. If you could help me that would be great.

    I am creating buddypress compatible theme. Everything works fine but these two buttons for groups are not displaying. It works on wordpress default theme. I added a string to check conditions and its fine and displaying string but these buttons are no where in html

    <?php bp_button( array( 'id' => 'group_membership_accept', 'component' => 'groups', 'wrapper_class' => 'accept', 'link_href' => bp_get_group_request_accept_link(), 'link_title' => __( 'Accept', 'buddypress' ), 'link_text' => __( 'Accept', 'buddypress' ) ) ); ?>
    
    					<?php bp_button( array( 'id' => 'group_membership_reject', 'component' => 'groups', 'wrapper_class' => 'reject', 'link_href' => bp_get_group_request_reject_link(), 'link_title' => __( 'Reject', 'buddypress' ), 'link_text' => __( 'Reject', 'buddypress' ) ) ); ?>
    
    #184863
    @mercime
    Participant
    #184861
    @mercime
    Participant

    that I’m using the BuddyPress default theme

    @lorns Change to the Twenty Fourteen theme.
    Strange that you could see and activate to the BP Default theme in a new installation http://bpdevel.wordpress.com/2013/11/13/the-future-of-the-bp-default-theme/

    But if I act as a new user, I cannot register using the BuddyPress register page.

    Please make sure that you’re logged out first before going to the register page. If you were logged out, do give steps or more information to replicate the issue.

    jovicar
    Participant

    Hi,

    I wonder, as I do for a user to register can pick the group you want to belong, in steps of registration.

    Thanks

    WordPress 3.9.1
    BuddyPress 1.5.0
    http://www.modelosmanagement.com/miembros

    #184857
    jeanjan69
    Participant

    Hi,

    I’m trying to display a list of users.

    If I access the file wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php in a browser, I get the error Fatal error: Call to undefined function do_action() in wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php on line 14

    If I copy-paste the code from this page http://codex.buddypress.org/developer/loops-reference/the-members-loop/ in a wordpress page, I get nothing displayed.

    Only the page “members” created by the buddypress install works.

    Please, what am I missing ?
    Thanks

    #184855
    Essam12
    Participant

    Hey there! I’m completely new to both WordPress and BuddyPress and was hoping I could get some help! I’m trying to adjust some of aspects of the posting system that comes with BuddyPress.

    I’m trying to allow users to only post to others’ profiles a maximum of once a week and show an error message saying they can only post once a week if they try to post more frequently. To be clear, users can post to as many walls as they want (as they can now) but can only post on any one wall only once a week. Posts from previous weeks should be shown further down the page, and should be accessible by clicking on “See older posts” (this is similar to Facebook). Secondly, if the owner of the wall comments on a post on their wall, their comment should be located immediately after the original poster’s comment and should be titled “response”.

    Is there any combination of plugins/code that I can use that can help me achieve this? Has anyone try something similar or played around with posting on BuddyPress?

    Thank you very much for your time.

    Miatsu
    Participant

    Hello,

    I’m actually using WordPress 3.9.1, BuddyPress 2.0.1 et bbPress 2.5.4 .

    For my website I have created differents forums for each user group. This forums will directly be displayed in the main menu as submenus.

    Is there a way to choose to display each forum submenu ONLY if the user is log in and a members of the group ?

    I have found some solution to filter menu by role, but in my case it will be the group that should be used to filter the menus elements.

    Thanks in advance !

    lorns
    Participant

    BuddyPress version: 2.0.1
    WordPress version: 3.9.1
    Running on localhost with MAMP & PHP version: 5.4.1

    Theme: BuddyPress default

    Issue: New user registration doesn’t do anything. Fill in form, hit submit & it reloads the registration form with the password fields cleared.

    No error messages. Nothing in the error logs. Nothing from WP_DEBUG. Nothing.

    I’ve been hunting through this forum & have seen this issue pop up time & time again without any solutions. I’ve made sure that:

    • Anyone Can Register IS checked,
    • Install directory is all lowercase,
    • that I’m using the BuddyPress default theme,
    • my permalinks are set to post name.

    I’ve left everything else at default. I have no other plugins installed.

    I can create users via the WordPress dashboard without any issues and they can use everything that BuddyPress has to offer. But if I act as a new user, I cannot register using the BuddyPress register page.

    This is now my 3rd re-install of BOTH WordPress & BuddyPress on a clean database and it’s still not working. Help. Anything I’ve not tried?

    mshafshak
    Participant

    i’m trying to get user info from facebook when a user tries to login through facebook on my website ,Wordpress website, I have been struggling to retrieve users’ birthday, email, first name, last name and interests and so on what is the code to get them. I’m newly to facebook apps so I don’t know what to do and what is the procedure

    All what i can retrieve is the email, name and create username according to the url user name

    some clear code would be useful Thank you

    This is my code location in my directory:
    wp-content/themes/themeName/framework/functions/facebook_login.php

    
    <?php
    
    function fb_head(){
      if( is_user_logged_in()) return;
      ?>
    
      <div id="fb-root"></div>
    	<script>
    		// Additional JS functions here
    		window.fbAsyncInit = function() {
    			FB.init({
    				appId      : '<?php echo sq_option('fb_app_id'); ?>', // App ID
    				version    : 'v2.0',
    				status     : true, // check login status
    				cookie     : true, // enable cookies to allow the server to access the session
    				xfbml      : true,  // parse XFBML
    				oauth      : true
    			});
    
    			// Additional init code here
    
    		};
    
    		// Load the SDK asynchronously
    		(function(d){
    			 var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
    			 if (d.getElementById(id)) {return;}
    			 js = d.createElement('script'); js.id = id; js.async = true;
    			 js.src = "//connect.facebook.net/en_US/sdk.js";
    			 ref.parentNode.insertBefore(js, ref);
    		 }(document));
    	</script>
        <?php
    }
    add_action( 'kleo_after_body', 'fb_head' );
    
    function fb_footer(){
    ?>
    	<script type="text/javascript">
    	var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>';
    	jQuery('.facebook_connect').click(function(){
    			var context = jQuery(this).closest("form");
    			if (jQuery(".tos_register", context).length > 0)
    			{
    				if (! jQuery(".tos_register", context).is(":checked"))
    				{
    					alert('<?php echo apply_filters('kleo_fb_tos_alert',__("You must agree with the terms and conditions.",'kleo_framework'));?>');
    					return false;
    				}
    			}		
    			
    		FB.login(function(FB_response){
    			if( FB_response.status === 'connected' ){
    				fb_intialize(FB_response);
    			}
    		},
    		{scope: 'public_profile,email'});
    	});
    
    	function fb_intialize(FB_response){
    		FB.api( '/me', 'GET', 
    						{'fields':'id,email,verified,name'},
    						function(FB_userdata){
    							jQuery.ajax({
    									type: 'POST',
    									url: ajaxurl,
    									data: {"action": "fb_intialize", "FB_userdata": FB_userdata, "FB_response": FB_response},
    									success: function(user){
    										if( user.error ){
    											alert( user.error );
    										}
    										else if( user.loggedin ){
    											if( user.type === 'login' )
    											{
    												window.location.reload();
    											}
    											else if( user.type === 'register' )
    											{
    												window.location = user.url;
    											}
    										}
    									}
    							});
    						}
    		);
    	};
    	</script>
    <?php
    }
    add_action( 'wp_footer', 'fb_footer' );
    
    if (!function_exists('fb_button')):
    function fb_button()
    {
    ?>
        <a href="#" class="facebook_connect radius button facebook"><i class="icon-facebook-sign"></i> &nbsp;<?php _e("LOG IN WITH Facebook", 'kleo_framework');?></a>
    <?php
    }
    endif;
    
    if (!function_exists('fb_register_button')):
    function fb_register_button()
    {
    ?>
        <a href="#" class="facebook_connect radius small button facebook"><i class="icon-facebook-sign"></i> &nbsp;<?php _e("Register using Facebook", 'kleo_framework');?></a>
    <?php
    }
    endif;
    
    if (!function_exists('fb_register_button_front')):
    function fb_register_button_front()
    {
    ?>
        <a href="#" class="facebook_connect radius button facebook"><i class="icon-facebook"></i></a>
    <?php
    }
    endif;
    
    add_action('fb_popup_button', 'fb_button' );
    
    if (sq_option('facebook_register', 0) == 1) {
        add_action('fb_popup_register_button', 'fb_register_button' );
        add_action('fb_popup_register_button_front', 'fb_register_button_front' );
    }
            
    function wp_ajax_fb_intialize(){
        @error_reporting( 0 ); // Don't break the JSON result
        header( 'Content-type: application/json' );
    
        if( !isset( $_REQUEST['FB_response'] ) || !isset( $_REQUEST['FB_userdata'] ))
        die( json_encode( array( 'error' => __('Authenication required.', 'kleo_framework') )));
    
        $FB_response = $_REQUEST['FB_response'];
        $FB_userdata = $_REQUEST['FB_userdata'];
        $FB_userid = $FB_userdata['id'];
    
        if( !$FB_userid )
        die( json_encode( array( 'error' => __('Please connect your facebook account.', 'kleo_framework') )));
    
        global $wpdb;
        //check if we already have matched our facebook account
        $user_ID = $wpdb->get_var( "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = '_fbid' AND meta_value = '$FB_userid'" );
        
    	
        //if facebook is not connected
        if( !$user_ID ){
    			$user_email = $FB_userdata['email'];
    			$user_ID = $wpdb->get_var( "SELECT ID FROM $wpdb->users WHERE user_email = '".$wpdb->escape($user_email)."'" );
    
    			$redirect = '';
    
    			//if we have a registered user with this Facebook email
    			if(!$user_ID )
    			{
    				if ( !get_option( 'users_can_register' )) {
    					die( json_encode( array( 'error' => __('Registration is not open at this time. Please come back later.', 'kleo_framework') )));
    				}
    				if (sq_option('facebook_register', 0) == 0) {
    					die( json_encode( array( 'error' => __('Registration using Facebook is not currently allowed. Please use our Register page', 'kleo_framework') )));
    				}
    				
    				extract( $FB_userdata );
    
    				$display_name = $name;
    
    				if( empty( $verified ) || !$verified )
    				die( json_encode( array( 'error' => __('Your facebook account is not verified. You have to verify your account before proceed login or registering on this site.', 'kleo_framework') )));
    
    				$user_email = $email;
    				if ( empty( $user_email ))
    				die( json_encode( array( 'error' => __('Please re-connect your facebook account as we couldn\'t find your email address.', 'kleo_framework') )));
    
    				if( empty( $name ))
    				die( json_encode( array( 'error' => 'empty_name', __('We didn\'t find your name. Please complete your facebook account before proceeding.', 'kleo_framework') )));
    
    				$user_login = sanitize_title_with_dashes( sanitize_user( $display_name, true ));
    
    				if ( username_exists( $user_login )) {
    					$user_login = $user_login. time();
    				}
    
    				$user_pass = wp_generate_password( 12, false );
    				$userdata = compact( 'user_login', 'user_email', 'user_pass', 'display_name' );
    				$userdata =  apply_filters('kleo_fb_register_data', $userdata);
    
    				$user_ID = wp_insert_user( $userdata );
    				if ( is_wp_error( $user_ID ))
    				die( json_encode( array( 'error' => $user_ID->get_error_message())));
    
    				//send email with password
    				wp_new_user_notification( $user_ID, wp_unslash( $user_pass ) );
    
    				//add Facebook image
    				update_user_meta($user_ID, 'kleo_fb_picture', 'https://graph.facebook.com/' . $id . '/picture');
    						
    				do_action('fb_register_action',$user_ID);
                
    				update_user_meta( $user_ID, '_fbid', (int) $id );
    				$logintype = 'register';
    				$redirect = apply_filters('kleo_fb_register_redirect',bp_core_get_user_domain( $user_ID ).'profile/edit/group/1/?fb=registered');
    			}
    			else
    			{
    				update_user_meta( $user_ID, '_fbid', (int) $FB_userdata['id'] );
    				//add Facebook image
    				update_user_meta($user_ID, 'kleo_fb_picture', 'https://graph.facebook.com/' . (int) $FB_userdata['id'] . '/picture');
    				$logintype = 'login';
    			}
    		}
        else
        {
    			$logintype = 'login';
        }
    
        wp_set_auth_cookie( $user_ID, false, false );
        die( json_encode( array( 'loggedin' => true, 'type' => $logintype, 'url' => $redirect )));
    }
    add_action( 'wp_ajax_nopriv_fb_intialize', 'wp_ajax_fb_intialize' );  
            
    //If registered via Facebook -> show message
    add_action( 'template_notices', 'kleo_fb_register_message' );
    if (!function_exists('kleo_fb_register_message')):
        function kleo_fb_register_message()
        {
            if (isset($_GET['fb']) && $_GET['fb'] == 'registered')
            {
                echo '<div class="clearfix"></div><br><div class="alert-box success" id="message" data-alert>';
                echo __('Thank you for registering. Please make sure to complete your profile fields below.', 'kleo_framework');
                echo '</div>';
            }
        }
    endif;
    
    //display Facebook avatar
    if(sq_option('facebook_avatar', 1) == 1) {
    	//show Facebook avatar in WP
    	add_filter('get_avatar', 'kleo_fb_show_avatar', 5, 5);
    	//show Facebook avatar in Buddypress
    	add_filter('bp_core_fetch_avatar', 'kleo_fb_bp_show_avatar', 3, 5);
    	//show Facebook avatar in Buddypress - url version
    	add_filter('bp_core_fetch_avatar_url','kleo_fb_bp_show_avatar_url', 3, 2);
    }
    function kleo_fb_show_avatar($avatar = '', $id_or_email, $size = 96, $default = '', $alt = false) {
      $id = 0;
      if (is_numeric($id_or_email)) {
        $id = $id_or_email;
      } else if (is_string($id_or_email)) {
        $u = get_user_by('email', $id_or_email);
        $id = $u->id;
      } else if (is_object($id_or_email)) {
        $id = $id_or_email->user_id;
      }
      if ($id == 0) return $avatar;
    	
    	//if we have an avatar uploaded and is not Gravatar return it
    	if(strpos($avatar, home_url()) !== FALSE && strpos($avatar, 'gravatar') === FALSE) return $avatar;
    	
    	//if we don't have a Facebook photo
      $pic = get_user_meta($id, 'kleo_fb_picture', true);
      if (!$pic || $pic == '') return $avatar;
    	
      $avatar = preg_replace('/src=("|\').*?("|\')/i', 'src=\'' . $pic . apply_filters('fb_show_avatar_params', '?width=580&height=580') . '\'', $avatar);
      return $avatar;
    }
    
    function kleo_fb_bp_show_avatar($avatar = '', $params, $id) {
        if(!is_numeric($id) || strpos($avatar, 'gravatar') === false) return $avatar;
    		
    		//if we have an avatar uploaded and is not Gravatar return it
    		if(strpos($avatar, home_url()) !== FALSE && strpos($avatar, 'gravatar') === FALSE) return $avatar;
    		
        $pic = get_user_meta($id, 'kleo_fb_picture', true);
        if (!$pic || $pic == '') return $avatar;
        $avatar = preg_replace('/src=("|\').*?("|\')/i', 'src=\'' . $pic. apply_filters('fb_show_avatar_params', '?width=580&height=580') . '\'', $avatar);
        return $avatar;
    }
    
    function kleo_fb_bp_show_avatar_url($gravatar, $params) {
    	
    	//if we have an avatar uploaded and is not Gravatar return it
    	if(strpos($gravatar, home_url()) !== FALSE && strpos($gravatar, 'gravatar') === FALSE) return $gravatar;
    	
      $pic = get_user_meta($params['item_id'], 'kleo_fb_picture', true);
      if (!$pic || $pic == '') return $gravatar;
    	return $pic. apply_filters('fb_show_avatar_params', '?width=580&height=580');
    }
    
    ?>
    
    notpoppy
    Participant

    @netweb

    if you look in the wp_groups_groupmeta table at your group ID 26 and that 127650 value does NOT match the bbPress forum ID you expect it should match.

    OK having checked the forum IDs in BBPress the value for this group should be 127650. When I check that in wp_groups_groupmeta I find the same value next to group 26, which is correct. I had a look through all the forum_ids in wp_groups_groupmeta and they all seem to be correct.

    Also did you try updating via the ‘Group Forums’ Edit Screen UI?

    Sorry I don’t know what the ‘Group Forums’ Edit Screen UI is. In the WordPress admin pages I have menus for Groups (/wp-admin/admin.php?page=bp-groups), Forums (/wp-admin/edit.php?post_type=forum), Tools>Forums (/wp-admin/tools.php?page=bbp-repair) and Settings>Forums (/wp-admin/options-general.php?page=bbpress), but I can’t see anything for ‘Group Forums’.

    However I do note that on the forums page although the ‘Edit’ button shows the correct forums_id values for each forum, the ‘View’ button shows an incorrect link for the problematic forum.

    @mercime
    Participant

    @giorgosnl Next time, please start a new topic as moderators could miss your post.

    But when I click on upload image it redirects to my profile and will change admins image??

    When I checked the issue you posted, the avatar was correctly changed in user’s profile but the update did redirect after completion to the Site Admin’s profile page. The issue was also posted at https://buddypress.trac.wordpress.org/ticket/5580 and fix is slated for BP 2.1.

    If your issue is not resolved with the patch after changing to one of WP Default themes and deactivating all plugins except BP to exclude conflicts, please feel free to create a new trac ticket using your WP username and password to log in.

    shanebp
    Moderator

    You’ll probably get a better answer using the support forum for that plugin.

    My guess would be that you are hooking too early and the remove_action calls fire before those add_actions exist.
    Maybe try a hook other than ‘plugins_loaded’.
    Have you tried ‘bp_include’.

    #184803
    shanebp
    Moderator

    Filters have to return something.
    You’re only returning if a condition is met.
    So no buttons will appear.

    And you aren’t passing the $arg, so you can’t return it.

    Try:

    function hideAddFriend($button){
    	$caps = get_user_meta(bp_get_member_user_id(), 'wp_capabilities', true);
    	$roles = array_keys((array)$caps);
    	// Hide friendship buttons
    	if(in_array("inactive", $roles)){
    		return '';
    	}
            return $button;	
    }
    add_filter( 'bp_get_add_friend_button', 'hideAddFriend');

    also – are you sure that your get_user_meta approach to retrieving ‘inactive’ is working?

    gmingle
    Participant

    website: http://www.gamermingle.com
    all most updated versions I believe.

    1. We have a maintenance post above login area on our main page that shows up to unregistered members but no clue on how to get rid of it.

    2. Spam bots have found a way around our Captcha, could it possibly be that the original wordpress login is still functioning and using that to get around our buddypress registration that is protected?

    3. The post button is missing from where we post activity/updates on our profiles and any additional plugins for activity wont show up or work as well as us not being able to post activity.

    Thanks for any help.

    #184789
    Theunknown1
    Participant

    Hey 😉

    Version:
    Buddypress – Newest
    Wordpress – Newest

    i run two Blogs with the same Structure, its not a Multisite System because that wasn’t the best solution for my case.

    Blog 1 is in Geman
    Blog 2 is in English

    The Userdata and Cookies are Syncronisized by a Orphan plugin.

    My question is,- is there a way to syncro the userdata like the Status Update and Avatar within two blogs?

    xsiguy69
    Participant

    When navigating the buddypress features i.e. groups, friend requests, etc, I get this random popup. When I click ok it instantly reappears. This can happen up to 5 times before it goes away. See image here: https://www.dropbox.com/s/7pkwspdr93pmxmf/Screen%20Shot%202014-07-03%20at%2017.54.13.png

    Any ideas what the problem is?

    I am using the latest wordpress and buddypress.

    Site is a intranet.eastlancsccg.nhs.uk

    Kind regards

    Mark

    #184770
    Abidemi
    Participant

    The way I achieve this is by using wordpress blank avatar and css.
    In wordpress dashboard Settings -> Discussion, change default avatar to Blank.
    In your css file add this (after uploading the image you want to use ->

    .avatar {background:url(image/custom_avatar.png) 0 0px no-repeat!important;background-size:100%, 100%!important;}

    #184768
    RubenWereldsmuller
    Participant

    Hi BuddyPress team,

    I want to link to BuddyPress user accounts from a different piece of software, which can link to just use just one URL.

    My best guess is to make a redirecting link to the accounts on the WordPress website, and use that link. I’ve never used php before though!

    Many thanks,

    Ruben

Viewing 25 results - 10,851 through 10,875 (of 32,679 total)
Skip to toolbar