Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'display users posts'

Viewing 25 results - 51 through 75 (of 287 total)
  • Author
    Search Results
  • Pulse North
    Participant

    Hi,

    I recently put together a site that uses Buddypress as a social area for users similar to Facebook. However, when a user posts within a group the post disappears upon refreshing the page, all that displays is “Sorry, there was no activity found. Please try a different filter.” I think this may be a theme conflict as when I revert the theme to TwentyFifteen it shows the posts, but am unsure how to resolve this, can anyone assist?

    #253303
    chrisducks
    Participant

    I am looking for a little bit of advice on which setup to install for a multisite network.

    I wish to create a community that users have access to the main website/wordpress to view blogs, posts, information, a forum, and contribute/comment on there but then each user thats signed up also has their own wordpress site on the network which acts as their ‘profile’ but also has some sort of booking / payment system for their own offered services aswell as displaying their own blog and content.

    I see three levels of users

    1 – User / Client – can login to the site have access to the main website and contribute there and book services and engage with staff through ‘Staff’ profile wordpress sites.

    2- Staff – can login to the site and have access to the main website, contribute there and maintain their own wordpress site and accept bookings for their services.

    3 – Admin – Control the main website and support staff and clients.

    Which of the following should I use?

    Network-wide
    A. BuddyPress root blog in Main Site
    B. BuddyPress root blog in Secondary Site

    One site of the Network
    C. BuddyPress Activated in Main Site only
    D. BuddyPress Activated in Secondary Site only
    Posts, comments, or activities of the users in sites other than where you activated BuddyPress won’t be recorded in the Activity Streams when you install BuddyPress in only one site of the network.

    Special Setups
    E. BP_ENABLE_MULTIBLOG – network activated
    F. BuddyPress Multisite – network activated

    Any advice would be great.

    Chris

    tech55541
    Participant

    Hello,
    I have just noticed when a username is mentioned on the BBPress, borrowed from BuddyPress, it uses the person’s username as the output. Is there anyway to change the output in posts/replies to the users display name? Example below.

    @username
    Displays on forum: @username
    Should display as the user preferred display name set in settings as
    Bob Green.

    Thanks for your help.

    #251837
    kory27
    Participant

    Hi,

    It was actually my permalinks settings.

    I changed that and it works, kind of. I’m quickly learning that nothing with Buddypress is as it seems and the support forum you need to budget days to get an answer to things that seem like obvious functionality. i.e. how to limit roles displayed on Member Directory pages and how to set the default role upon setup.

    If anyone has the same issue or wants to help, you can find related posts here:

    How to change role displayed on Member page Buddypress 2.5

    How to change default member role in Buddypress 2.5

    I’m quickly losing faith in the Buddypress community. It completely seems overwhelmed and not interested in what users want, but moreover, what they want to do. I’ve seen this sentiment echoed by others as well. Don’t get me wrong, I appreciate the project, but at the point I’ve never gotten a reply to an issue in less than 3 days. Just seems the opposite of community when no one gets back to you on direct questions with specific functionality.

    I will post in the other areas when I get solutions.

    Thanks.

    #251450
    simbaclaws
    Participant

    Hey everyone,
    I’m trying to adjust the admin bar for logged out users so that there is no register and login button and that the anonymous user profile shows up with register, logout, password etc.

    I’ve been searching for a while now and haven’t been able to find out how to do it.
    I’ve tried doing it through my functions.php by using $wp_admin_bar->remove_menu and $wp_admin_bar->add_menu. I’ve even put a script in to check what the node ID’s were of my menu’s in order to be able to remove or add them.

    I’ve seen previous posts where people said that this had something to do with either your theme or your plugins, so I disabled all plugins except buddypress and enabled twenty fifteen theme to see if it changed anything. Which it did not.
    I’m using wordpress 4.4.2 with buddypress 2.5.1 on my localhost machine.

    I’ve also looked at the following page:

    Modifying the Toolbar

    But it seems like this is a deprecated-guide?
    Does anyone know of the current way to make this work?
    I basically want the same wp-admin-bar-my-account to work for logged out users. Which is displayed as node ID: my-account.

    I have already set my site to allow users to register and I have also made sure that logged out users are capable of seeing the bar in my buddypress settings. Which works because I can see the bar with a login and register button on it but not with the my-account profile on it. And I can also use the registration form for new users.

    Does anyone have any ideas on how I can make this work?

    Achidi
    Participant

    Hi there,

    Is there a plugin or a piece of code that will allow the users to only see posts of whom they’re following, and posts of Admin only in the front page display?

    Thanks
    David

    #251169
    alpha2
    Participant

    Hello everybody

    I have a fitness website and each user choose a gender during registration

    Now I want to display a dropdown box on each category for users to choose to display posts of this category by gender.

    Thank you for informations
    Cheers

    #248133
    Max Zhubr
    Participant

    Hi there, All!

    How can I make a subnav with a static link in profile?
    I’ve got an Events+ plugin installed, and I’m trying to add a subnav link to the profile tab called “Events” with a static link, that should redirect to page /events/.

    Here is the code of the BP connected part of plugin:

    <?php
    /*
    Plugin Name: BuddyPress: My Events
    Description: Adds an Events tab to your user profiles.
    Plugin URI: http://premium.wpmudev.org/project/events-and-booking
    Version: 1.0
    AddonType: BuddyPress
    Author: WPMU DEV
    */
    
    /*
    Detail: Displays lists of user RSVPs on your users member pages.
    */
    
    class Eab_BuddyPress_MyEvents {
    
    	private $_data;
    
    	private function __construct () {
    		$this->_data = Eab_Options::get_instance();
    	}
    
    	public static function serve () {
    		$me = new Eab_BuddyPress_MyEvents;
    		$me->_add_hooks();
    	}
    
    	private function _add_hooks () {
    		add_action('admin_notices', array($this, 'show_nags'));
    		add_action('eab-settings-after_plugin_settings', array($this, 'show_settings'));
    		add_filter('eab-settings-before_save', array($this, 'save_settings'));
    
    		add_action('bp_init', array($this, 'add_bp_profile_entry'));
    	}
    
    	function show_nags () {
    		if (!defined('BP_VERSION')) {
    			echo '<div class="error"><p>' .
    				__("You'll need BuddyPress installed and activated for My Events add-on to work", Eab_EventsHub::TEXT_DOMAIN) .
    			'</p></div>';
    		}
    	}
    
    	private function _check_permissions () {
    		$post_type = get_post_type_object(Eab_EventModel::POST_TYPE);
    		return current_user_can($post_type->cap->edit_posts);
    	}
    
    	function add_bp_profile_entry () {
    		global $bp;
    		bp_core_new_nav_item(array(
    			'name' => __('Events', Eab_EventsHub::TEXT_DOMAIN),
    			'slug' => 'my-events',
    			'show_for_displayed_user' => true,
    			'default_subnav_slug' => ($this->_check_permissions() ? 'organized' : 'attending'),
    			'screen_function' => '__return_false',
    		));
    		if ($this->_check_permissions()) {
    			bp_core_new_subnav_item(array(
    				'name' => __('Organized', Eab_EventsHub::TEXT_DOMAIN),
    				'slug' => 'organized',
    				'parent_url' => $bp->displayed_user->domain . 'my-events' . '/',
    				'parent_slug' => 'my-events',
    				'screen_function' => array($this, 'bind_bp_organized_page'),
    			));
    		}
    		bp_core_new_subnav_item(array(
    			'name' => __('Attending', Eab_EventsHub::TEXT_DOMAIN),
    			'slug' => 'attending',
    			'parent_url' => $bp->displayed_user->domain . 'my-events' . '/',
    			'parent_slug' => 'my-events',
    			'screen_function' => array($this, 'bind_bp_attending_page'),
    		));
    		bp_core_new_subnav_item(array(
    			'name' => __('Maybe', Eab_EventsHub::TEXT_DOMAIN),
    			'slug' => 'mabe',
    			'parent_url' => $bp->displayed_user->domain . 'my-events' . '/',
    			'parent_slug' => 'my-events',
    			'screen_function' => array($this, 'bind_bp_maybe_page'),
    		));
    		bp_core_new_subnav_item(array(
    			'name' => __('Not Attending', Eab_EventsHub::TEXT_DOMAIN),
    			'slug' => 'not-attending',
    			'parent_url' => $bp->displayed_user->domain . 'my-events' . '/',
    			'parent_slug' => 'my-events',
    			'screen_function' => array($this, 'bind_bp_not_attending_page'),
    		));
    		do_action('eab-events-my_events-set_up_navigation');
    	}
    
    	function bind_bp_organized_page () {
    		add_action('bp_template_title', array($this, 'show_organized_title'));
    		add_action('bp_template_content', array($this, 'show_organized_body'));
    		add_action('bp_head', array($this, 'enqueue_dependencies'));
    		bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
    	}
    	function bind_bp_attending_page () {
    		add_action('bp_template_title', array($this, 'show_attending_title'));
    		add_action('bp_template_content', array($this, 'show_attending_body'));
    		add_action('bp_head', array($this, 'enqueue_dependencies'));
    		bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
    	}
    	function bind_bp_maybe_page () {
    		add_action('bp_template_title', array($this, 'show_maybe_title'));
    		add_action('bp_template_content', array($this, 'show_maybe_body'));
    		add_action('bp_head', array($this, 'enqueue_dependencies'));
    		bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
    	}
    	function bind_bp_not_attending_page () {
    		add_action('bp_template_title', array($this, 'show_not_attending_title'));
    		add_action('bp_template_content', array($this, 'show_not_attending_body'));
    		add_action('bp_head', array($this, 'enqueue_dependencies'));
    		bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
    	}
    
    	function enqueue_dependencies () {
    		global $bp;
    		if ('my-events' != $bp->current_component) return false;
    		wp_enqueue_style('eab-bp-my_events', plugins_url('events-and-bookings/css/eab-buddypress-my_events.css'));
    	}
    
    	function show_organized_title () {
    		echo __('Organized Events', Eab_EventsHub::TEXT_DOMAIN);
    	}
    	function show_attending_title () {
    		echo __('Attending Events', Eab_EventsHub::TEXT_DOMAIN);
    	}
    	function show_maybe_title () {
    		echo __('Maybe attending Events', Eab_EventsHub::TEXT_DOMAIN);
    	}
    	function show_not_attending_title () {
    		echo __('Not attending Events', Eab_EventsHub::TEXT_DOMAIN);
    	}
    
    	function show_organized_body () {
    		global $bp;
    		echo '<div id="eab-bp-my_events-wrapper">';
    		echo '<div class="eab-bp-my_events eab-bp-organized">' .
    			Eab_Template::get_user_organized_events($bp->displayed_user->id) .
    		'</div>';
    		echo '</div>';
    	}
    	function show_attending_body () {
    		global $bp;
    		$premium = $this->_data->get_option('bp-my_events-premium_events');
    		if (!empty($premium)) {
    			if ('nag' == $premium) add_filter('eab-event-user_events-before_meta', array($this, 'premium_event_rsvp'), 10, 3);
    			if ('hide' == $premium) add_filter('eab-event-user_events-exclude_event', array($this, 'exclude_premium_event_rsvp'), 10, 2);
    		}
    		echo '<div id="eab-bp-my_events-wrapper">';
    		echo '<div class="eab-bp-my_events eab-bp-rsvp_yes">' .
    			Eab_Template::get_user_events(Eab_EventModel::BOOKING_YES, $bp->displayed_user->id) .
    		'</div>';
    		echo '</div>';
    	}
    	function show_maybe_body () {
    		global $bp;
    		echo '<div id="eab-bp-my_events-wrapper">';
    		echo '<div class="eab-bp-my_events eab-bp-rsvp_maybe">' .
    			Eab_Template::get_user_events(Eab_EventModel::BOOKING_MAYBE, $bp->displayed_user->id) .
    		'</div>';
    		echo '</div>';
    	}
    	function show_not_attending_body () {
    		global $bp;
    		echo '<div id="eab-bp-my_events-wrapper">';
    		echo '<div class="eab-bp-my_events eab-bp-rsvp_no">' .
    			Eab_Template::get_user_events(Eab_EventModel::BOOKING_NO, $bp->displayed_user->id) .
    		'</div>';
    		echo '</div>';
    	}
    
    	function premium_event_rsvp ($content, $event, $status) {
    		if (!$event->is_premium()) return $content;
    
    		global $bp;
    		$user_id = $bp->displayed_user->id;
    		if (Eab_EventModel::BOOKING_YES != $status) return $content;
    		if ($event->user_paid($user_id)) return $content;
    
    		$content .= '<div class="eab-premium_event-unpaid_notice"><b>' . __('Event not paid', Eab_EventsHub::TEXT_DOMAIN) . '</b></div>';
    
    		return $content;
    	}
    
    	function exclude_premium_event_rsvp ($exclude, $event) {
    		if ($exclude) return $exclude;
    
    		global $bp;
    		$user_id = $bp->displayed_user->id;
    
    		if (!$event->is_premium()) return false;
    		return !$event->user_paid($user_id);
    	}
    
    	function show_settings () {
    		$tips = new WpmuDev_HelpTooltips();
    		$tips->set_icon_url(plugins_url('events-and-bookings/img/information.png'));
    		$premium = $this->_data->get_option('bp-my_events-premium_events');
    		$options = array(
    			'' => __('Do nothing special', Eab_EventsHub::TEXT_DOMAIN),
    			'hide' => __('Hide', Eab_EventsHub::TEXT_DOMAIN),
    			'nag' => __('Show nag notice', Eab_EventsHub::TEXT_DOMAIN),
    		);
    ?>
    <div id="eab-settings-my_events" class="eab-metabox postbox">
    	<h3 class="eab-hndle"><?php _e('My Events settings', Eab_EventsHub::TEXT_DOMAIN); ?></h3>
    	<div class="eab-inside">
    		<div class="eab-settings-settings_item" style="line-height:1.8em">
    	    	<label for="eab_event-bp-my_events-premium_events"><?php _e('Non-paid premium events with positive RSPVs', Eab_EventsHub::TEXT_DOMAIN); ?>:</label>
    	    	<?php foreach ($options as $value => $label) { ?>
    	    		<br />
    				<input type="radio" id="eab_event-bp-my_events-premium_events-<?php echo esc_attr($value); ?>" name="event_default[bp-my_events-premium_events]" value="<?php echo esc_attr($value); ?>" <?php checked($value, $premium); ?> />
    	    		<label for="eab_event-bp-my_events-premium_events-<?php echo esc_attr($value); ?>"><?php echo esc_html($label) ?></label>
    	    	<?php } ?>
    			<span><?php echo $tips->add_tip(__('How to deal with non-paid premium events on user events list display.', Eab_EventsHub::TEXT_DOMAIN)); ?></span>
    	    </div>
    	</div>
    </div>
    <?php
    	}
    
    	function save_settings ($options) {
    		$options['bp-my_events-premium_events'] = $_POST['event_default']['bp-my_events-premium_events'];
    		return $options;
    	}
    }
    
    Eab_BuddyPress_MyEvents::serve();
    
    class Eab_MyEvents_Shortcodes extends Eab_Codec {
    
    	protected $_shortcodes = array(
    		'my_events' => 'eab_my_events',
    	);
    
    	public static function serve () {
    		$me = new Eab_MyEvents_Shortcodes;
    		$me->_register();
    	}
    
    	function process_my_events_shortcode ($args=array(), $content=false) {
    		$args = $this->_preparse_arguments($args, array(
    		// Query arguments
    			'user' => false, // User ID or keyword
    		// Appearance arguments
    			'class' => 'eab-my_events',
    			'show_titles' => 'yes',
    			'sections' => 'organized,yes,maybe,no',
    		));
    
    		if (is_numeric($args['user'])) {
    			$args['user'] = $this->_arg_to_int($args['user']);
    		} else {
    			if ('current' == trim($args['user'])) {
    				$user = wp_get_current_user();
    				$args['user'] = $user->ID;
    			} else {
    				$args['user'] = false;
    			}
    		}
    		if (empty($args['user'])) return $content;
    
    		$args['sections'] = $this->_arg_to_str_list($args['sections']);
    		$args['show_titles'] = $this->_arg_to_bool($args['show_titles']);
    
    		$output = '';
    
    		// Check if the user can organize events
    		$post_type = get_post_type_object(Eab_EventModel::POST_TYPE);
    		if (in_array('organized', $args['sections']) && user_can($args['user'], $post_type->cap->edit_posts)) {
    			$output .= '<div class="' . $args['class'] . ' eab-bp-organized">' .
    				($args['show_titles'] ? '<h4>' . __('Organized Events', Eab_EventsHub::TEXT_DOMAIN) . '</h4>' : '') .
    				Eab_Template::get_user_organized_events($args['user']) .
    			'</div>';
    		}
    
    		if (in_array('yes', $args['sections'])) {
    			$output .= '<div class="' . $args['class'] . ' eab-bp-rsvp_yes">' .
    				($args['show_titles'] ? '<h4>' . __('Attending Events', Eab_EventsHub::TEXT_DOMAIN) . '</h4>' : '') .
    				Eab_Template::get_user_events(Eab_EventModel::BOOKING_YES, $args['user']) .
    			'</div>';
    		}
    
    		if (in_array('maybe', $args['sections'])) {
    			$output .= '<div class="' . $args['class'] . ' eab-bp-rsvp_maybe">' .
    				($args['show_titles'] ? '<h4>' . __('Maybe attending Events', Eab_EventsHub::TEXT_DOMAIN) . '</h4>' : '') .
    				Eab_Template::get_user_events(Eab_EventModel::BOOKING_MAYBE, $args['user']) .
    			'</div>';
    		}
    
    		if (in_array('no', $args['sections'])) {
    			$output .= '<div class="' . $args['class'] . ' eab-bp-rsvp_no">' .
    				($args['show_titles'] ? '<h4>' . __('Not attending Events', Eab_EventsHub::TEXT_DOMAIN) . '</h4>' : '') .
    				Eab_Template::get_user_events(Eab_EventModel::BOOKING_NO, $args['user']) .
    			'</div>';
    		}
    
    		$output = $output ? $output : $content;
    
    		return $output;
    	}
    
    	public function add_my_events_shortcode_help ($help) {
    		$help[] = array(
    			'title' => __('My Events archives', Eab_EventsHub::TEXT_DOMAIN),
    			'tag' => 'eab_my_events',
    			'arguments' => array(
    				'user' => array('help' => __('User ID or keyword "current".', Eab_EventsHub::TEXT_DOMAIN), 'type' => 'string:or_integer'),
    				'class' => array('help' => __('Apply this CSS class', Eab_EventsHub::TEXT_DOMAIN), 'type' => 'string'),
    				'show_titles' => array('help' => __('Show section titles', Eab_EventsHub::TEXT_DOMAIN), 'type' => 'boolean'),
    				'sections' => array('help' => __('Show these sections. Possible values: "organized", "yes", "maybe", "no".', Eab_EventsHub::TEXT_DOMAIN), 'type' => 'string:list'),
    			),
    		);
    		return $help;
    	}
    }
    
    Eab_MyEvents_Shortcodes::serve();

    Thanks in advance!

    mcpeanut
    Participant

    Sorry I didn’t have enough space to be descriptive in the title…it meant to read, effects all users of Buddypress because it happens on every install.

    Ok guys let me explain, about 1 year and 2 months ago I made a post about strange behaviour with the Buddypress comments not collapsing and displaying the SHOW ALL link if a post has more than 5 comments when you have clicked on the LOAD MORE tab at the bottom of the page.

    I have tested this now on 5 SERVERS! with every version of Buddypress for over 2 years with same result. I cannot believe people are not noticing this when testing their builds 🙂

    Please bare with me as its such a simple thing to spot once you know what you are looking for yet so hard to explain to you guys so you understand what I am going on about. So let me do it in steps so that you understand what I have been going on about all this time.

    Ok, we all know that when someone posts an activity and people comment on it that Buddypress by default only shows 5 comments then gives you a link to click to show all the other comments. (lets just say 15 comments has been added to an activity as an example) By default Buddypress will show the latest 5 comments then add a link saying ‘SHOW ALL 15 COMMENTS’ that a user can click to see the remaining 10 comments that are out of view, this is designed to conserve space in the sitewide activity, YES? you with me so far?

    NOW THE PROBLEM! Yes this works great and works for everyone UNTIL you scroll down the sitewide activity and click on the the load more tab. any activitys that have received more than 5 comments will no longer show the SHOW ALL 15 COMMENTS (15 used as an example again). Instead all the comments will be visible and showing instead of being hidden from view taking up loads of the activity stream space which kind of defeats the purpose of having this feature in the first place, people tend to scroll down and click the load more tab if they have not logged in for a while to see previous updates they may of missed.

    Another example: if someone is browsing down the sitewide activity using the load more button to see what they have missed and one of the activitys has received lets say 200 comments on a busy website then all the 200 comments will be visible instead of having the default 5 comments visible with a show all 200 comments link. Now can you see the problem? 🙂 and can someone please take note of this and check it out, it is such an easy thing to see and recreate and i am totally still baffled as to why other are failing to spot this.

    Easiest way to see it first hand is install any theme a fresh Buddypress install with only Buddypress active, go to sitewide activity and post loads of updates until they activate the load more button, then post one last update and comment on it over 10 times, you will see after reloading the page it has 5 comments visible and a link saying show all 10 comments which is correct.

    Now scroll down to the bottom of the sitewide activity and click the load more tab and pick the bottom activity you can see and post 10 test comments on it, then reload the page so it takes you back to the top of sitewide activity, now scroll back down to the bottom of sitewide activity and click the load more button again and take note of the activity you just added 10 comments too, guess what? they are all visible with no link to show all 10 comments because they are already shown.

    Ok, did that explain everything? phew! 🙂

    #247376
    Maddish
    Participant

    Did this solution really work for you?
    I’m surprised because in my case it did not.
    As in this thread other users say, on one hand the browser remember the last selected tab, and on the other, the loop displayed in the stream is still the activity-all.

    I found another solution based on cookies.

    There is a cookie named ‘bp-activity-scope’ that is used to query the activity stream posts and that must be set to ‘groups’ in order to display only the posts that belongs to groups.

    This is the script that worked for me, in which ‘My Groups’ is the default tab:

    var jq = jQuery;
    jq(document).ready( function() {
    
    	filter = jq('#activity-filter-select select').val();
    		jq.removeCookie('bp-activity-scope', {
    		path: '/'
    		});
    //change 'groups' with the cookie for the tab you want to be the default one
    // favorites , friends, etc
    	jq.cookie( 'bp-activity-scope', 'groups');
    	scope = jq.cookie('bp-activity-scope');
    	bp_activity_request(scope, filter);
    
    } );

    I wrote a post in which I explain step by step how to implement it, and also how to avoid that the activity-all tab is switched to selected when the user focus on the wwhat’s new textarea:

    http://inauditas.com/change-default-activity-stream-tab-buddypress/

    #246963
    George Notaras
    Participant

    Hi all,

    I develop a metadata plugin for WordPress and was thinking about adding support for BuddyPress profiles, which basically boils down to:

    1. generating Profile metadata objects for the member pages and,
    2. use the member page URL as the post author’s URL in the metadata on WP blog posts.

    However, I’m a little puzzled with some concepts which have to do with how I should retrieve the user information in the following cases:

    1. BP Extended Profiles component deactivated.

    In this case, the member page displays information from the WP user profile.

    2. BP Extended Profiles component enabled.

    In this case, the member page displays information *only* from the BP Extended Profile.

    Questions:

    Is there a common API that can be used in both cases to retrieve user info? Are the BP users different users or, when used as a plugin, WP users and BP users are the same?

    Can the ‘Profile Sync’ setting complicate the retrieval of the user information?

    Thanks in advance,
    George

    #246705
    scoobs2000
    Participant

    Hi
    in short everything you have asked can be done.

    But I’m a little bias as I honestly believe regarding technology there is nothing that can’t be achieved it just comes down to how much time and budget you have to invest… 🙂

    Below is a bit of a ramble…. But might provide insight. after you organize your coffee and come back.

    I have nearly completed a project that sounds similar in nature (few weeks from launch in final beta testing), however it was a highly customised solution (private membership site) .
    With nearly 70 plugins, 100’s hours coding integration code (lots of trial and error) between the plugins and also compatibility tests with multiples of plugins to ensure no issues, because of slow load times the project requires deploying from CDN,fast servers and customised caching solutions.
    most of work load appeasr to be bbpress – so an near out of the box solution, you prob don’t need to go that far.

    But not to scare you. Here are some pointers that might answer your questions, based on my understanding of the OP.

    In my case I spent many months researching solutions with many platforms (open source / paid / managed premium) – buddy press was selected simply because is built on WordPress that’s already has the core abilities you need, you just need to “hook in to’em” and take advantage of this concept – you can keep working on bettering and adding separate components / features as time goes by, great for client, works out a bit cheaper in the startup phase and great for developer – land ya self a permanent support / ongoing development contract……

    Is it possible to update profile content/meta? : In general yes, buddy press allows this out of the box

    Either the user or the admin can update, you can have admin only fields (the user doesn’t access them – but the admin can)
    if you use a membership plugin eg, s2member – you can extend this idea much further eg, only require email on signup, then all other fields are accessible from profile and can set fields on a per membership level,

    In your case, you might have different profile fields for students, teachers, Parents and only require a couple of basic fields to be completed on signup and all other fields can still be “required” when they reach their profile page.
    For profile field management I recommend the s2membership pro plugin (free version available) http://s2member.com/

    My project has a “todo list” for each and every member – however I’m still to this day unable to find a plugin that interacts with a completed wp/bbp/buddypress site. So I had to code one. The todo list was designed / engineered in a way that interacts with “wordpress” in general, by storing a completely unique data feed much like the activity feed with time stamps and can be programmed to be linked to any site link, media download, page view, forum post, reply any activity on the site can be logged and applied to the feed which the to-do-list interacts with and auto completing (crossing of the item) each item also has dependencies, so you rattle off a list of activities before the task is crossed off and each to-do-list also has dependencies so it is not seen by a user until certain tasks are completed, eg, purchase a course from the store, or complete a previous to-do-list.

    In short: Yes it can be done, however I’m not aware of any 3rd party plugin that does this successfully.

    In my case I have the to-do-list shown in the sidebar so as a member goes through the tasks the list is also available to them no matter what page they are on. But possible to publish it in the profile page if required.

    Regarding email notices, I recommend looking into the woo commerce sensei http://www.woothemes.com/products/sensei/ plugin for your courses that way you have management of email notices, in fact prob most of the things you require will be available via sensei – note this is a premium paid plugin with yearly ongoing licence costs.
    Without a free trial version to try before you buy.

    But maybe gravity forms developer licence might be fine in your case as it has, gateway plugins, qiz and survey plugins – it would be possible to build certain simple courses on the gravity framework including delivery of custom emails – if building a form based system than certainly worth a look into – but would require a developers licence to get all the plugins you would prob require.

    In fact what I do is use gravity forms email chimp plugin to send the members email address to an email list (automation campaign) in mail chimp (paid account) that auto sends a welcome emails that I have customize to suit the activity they have completed, this way I can send pretty html + marketing emails + scheduled follow up emails and take the work load off WordPress other than a quick API connect on demand.

    Regarding: is it possible to have multiple logins or users access the same account/profile?
    In simple: Yes, but it all comes to context of the profile, will each member be able to see other members profiles or will parents be able to edit a child profile etc.

    Although my project does not require the need for 2 or more members to edit a single profile, I do have multiple levels of context (horizontal and vertical memberships) all with their own set of rules who profiles they can see and what buddypress features are available to them – some members don’t have activity feeds or messages, But I needed to ensure that members that do have access to these features can’t access the features of cross membership and so on.

    This is 100% custom code (no plugin) but while coding this up I recall thinking I’m 100% confident it is possible to add another level of check “if current user can edit displayed user” and go from there, all you would need is a profile field / meta that links multiple accounts together –
    Eg, a parent account has a profiled field “child user name” – they just enter the child username / user ID – and now we would add the profile check if a parent is viewing the child’s profile.

    Regarding paying a deposit, and payment, this is my findings.

    There was no single one membership / payment plugin that integrated perfectly into what I wished to achieve – I have tested many. please note I’m suggesting there are no plugins that do this stuff just none that achieved the outcomes I needed for my project.

    – Tips: – start the project design based on the payment systems / gateway (the complete project and direction of development is 100% dependent on this) because the simple reason every feature you implement needs to check “is a paid member and what level (cap / role) ” – including free membership with paid features “is not a paid member” but has paid for… this includes recurring and non-recurring subscriptions with consideration of what you intend to do if a subscription expires.

    Eg, a recurring subscription will either just auto subscribe and pay for the next time frame (or fail)
    A non-reoccurring subscription will auto expire after a given time frame (or X cycles)

    The difference between to the two –
    Is generally on a recurring subscription when it expires it also linked to a member account to “do something” eg downgrade membership

    A non-recurring subscription is generally used for a onetime payment you have access forever feature- eg, a course and resources, you pay once on a deposit, subscription over several weeks when the subscription expires the member still has access to the course as long as they remain at minimum a free member on the site. (anyhow that’s how I have implemented things)

    These two concepts are completely different in the way they interact with the member as well at many levels although on the surface appear to be almost the same, add in a deposit feature you are also opening another level of context to play with, mostly limiting the available options regarding the payment gateway service you will need to use or more so which services have this feature on offer.

    As mentioned – my suggestion is start with the gateway solutions first and reverse the design back to the front end. – this is the big lesson I took away with this project (4 rewrites in total) as it was always a block relating to the gateway limitations (and laws relating to online subscriptions in my country).

    My project:
    Woo commerce (free) for shopping cart system including purchase of courses, subscription to site and deposit/ subscription to courses, plus all other products, deliverable products, workshops, webinars, one on one sessions, resource downloads from pdf to videos. Anything you can think off can be sold through woo

    Woo commerce quick cart – plugin (paid)– now I can add a buy now button on any page for any product including subscriptions – the membership info page has a standard 3 column price comparison chart with nothing more than a “sign up now” button – clicking the button auto adds the subscription to cart and opens the checkout popup with one click and without leaving the page (no need to send to store)

    Sensei (paid)– for courses and fits well into woo commerce system (but requires a couple more plugins and custom integration code if implementing paid / subscription based courses )

    Groups plugin (free) to easily manage roles and caps (as I have to teach client staff how to do this and manage the site) WordPress has this capability built in if your a coding ninja (I’m not)

    Groups Woo commerce (paid plugin) to link groups to a purchase – apply a role / cap or groups of, to a user based on the purchase.

    Then some custom code is required – to perform a check and if a user has a particular role or cap than apply the s2membership level – this check is done at the store level so if a member cancels or defaults on a payment – the membership level is auto adjusted depending on what role or cap is supplied to the user from the groups woo commerce automation. groups plugin manages non-recurring subscriptions so a expired subscription does not remove the users caps and roles (but a default on payment does)

    S2member pro – for membership level management including profile fields management and most importantly complete site access management – I can apply access to each and every competent of the site this includes , forums, topics, replies, posts, pages, media, courses, and content within pages eg, home page displays different content based on the membership level / logged in or general public. s2member pro is also used to override default bbpress / buddy visibility settings eg, hidden forums only available to certain member levels – but requires custom code to apply or traverse access levels on submitting topics / replies to ensure widgets and other snippets don’t display private areas to members that don’t have access. (it allows you to write custom queries with zero concern or consideration to access levels)

    For subscriptions (paid)– I use woo commerce Subscriptions plugin – this manages on its own site access based on paid recurring subscriptions (or in simple turns on or off user account based on payment) – pay x amount monthly to access certain site features, courses and resources, forums, pages, blog articles etc.

    However – woo commerce subscriptions does not manage deposit / time based subscriptions (non-recurring subscriptions) eg, pay a deposit for a course and gain instant access then pay off on a subscription for x amount of weeks / months –
    I was not able to find any plugin (free or paid) that does this, so I had to write a plugin currently under experimental concept stage.

    Other tips: often it’s better to find compatible, well supported and pay for premium plugins that have overlapping features and disengage these features you don’t want to achieve your goals and do as little integration code as possible, but anything you do needs to be well planned and though out as to not to touch core code in any platform, framework or plugin.
    At the end of the day you want the ability to upgrade all systems as time go by.

    Eg, s2member plugin has its build in membership system that is “required to be active” for the plugin to work. – all I did was setup a single paid (never to be used membership) on a paypal sandbox store this includes setting up all the s2membership registration pages etc – then put a simple redirect in the .htaccess on any of these pages. Now to purchase membership you must go to the store (woo commerce) and purchase a subscription via woo – s2member has now has nothing to do with membership registration / payment systems.

    And of course I have “force account creation” turned on at the store – you cannot make a purchase without signup at a minimum free site membership.
    by disengaging the buddy, bbp, Wp, and all other means of registering (by redirect) but only leaving the woo commerce customer account registration available – The pop up registration form I use for free members is just a woocommerce customer account registration form (with no products attached) with a fallback to the s2membership cut down reg form (in case ajax / jquery etc not working on client side)

    And now all purchases, subscriptions, shop account, courses etc are now available from the buddy press profile page also via a “woo to buddypress” plugin (or in my case built into the theme)

    May sound complicated but as mentioned I would really suggest starting with payment solutions and nut out this part of the project first as this will most likely force development direction,

    one of my project goals was a solution that can cater for anything…. so,

    Regarding variable deposit / costs amounts based on user input – if using similar approach as I did – you would just setup woo commerce discount codes per variable outcome / result and would just reveal the correct coupon code to the user on the checkout page. they just cut and paste this code into the discount field and click apply.

    or setup up multi products – one product per price base. – have the user input their details first and the result would be – apply a groups cap / role then only offer the courses products in the store with the associated price base based on user caps / role –

    woo discount coupons can be setup on multiple bases – eg, deposit amount / on going subscription amount or total amount or per product or per cart total etc.

    for me was plenty of research into this including concept builds of other community platforms and as above is only a bit of a sample of features used relating to the OP.
    I was under very strict key point goals and achievements requiring very specific outcomes many of these affected development direction how / why I implemented the above.

    There may be better simpler ways to suit your specific project, but thought it might be worth a mention for some direction. or at least insight into some of the plugins I use / ideas and concepts.

    my usual disclaimer – if there is something in there for you, that’s great! if not that’s fine too!

    enjoy!

    alpha2
    Participant

    Hello everybody

    For each post users created, i have a special taxonomy i apply. Each element in this taxonomy have an image as attachment, so when i attach one tax in the back office to a post, it display a “medal” to the post in the front office.

    I want to display this “medal” tax in the activity stream of the user and on the global activity (all activities of the website)

    This the code i use to display the custom tax:

    <?php foreach (get_the_terms(get_the_ID(), 'niveau') as $cat) : ?><a class="medaldetail" href="<?php echo get_term_link($cat->term_id, 'niveau'); ?>"><img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /></a><?php endforeach; ?>

    Which buddypress template i must override to be able to display this?

    Thank you very much!

    #244571
    alpha2
    Participant

    Yes it is. But rather than using a plugin (for this project i am nearly at 53 active plugins…too much) maybe its better to use a function.
    i use this thread to ask you another question, some users (registered before i applied this plugin) named their account with a period: john.doe . Actually it’s not a big deal because buddypress (or wordpress natively) transform this dot into hyphen in each link.

    On one specific page template, I have special function i created with the help of a dev to display all users by a custom taxonomy (ranks)

    Only mater is that every hyperlink that link to account like john.doe are display like this http://www.website.com/members/john.doe and not http://www.website.com/members/john-doe

    I search into the code and found this:

    <div><?php $user = get_user_by('id', $gold ); ?><a href="<?php echo site_url();?>/members/<?php echo $user->user_login;?>/buddyblog/"><?php echo bp_core_fetch_avatar( array( 'item_id' => $gold, 'type' => 'full' ) ); ?></a><a href="<?php echo site_url();?>/members/<?php echo $user->user_login;?>/buddyblog/"><?php echo $user->user_login; ?></a>Performances: <?php echo count_user_posts( $gold ); ?></div>

    I must change how is display the username.

    Thank you for your time and your help!

    #241512
    djsteveb
    Participant

    @d_enajetic – I am playing with a few plugins that deal with a similar issue with animated gifs. A few say they will take a gif and make a thumbnail that you click to play… instead of having a dozen animated gifs playing in the activity stream and sidebar from users posts – hoping one of these will work.

    Luckily I have not had the same issue with videos yet (currently most of my users just add videos to activity stream directly, not in a blog post which would double display – glad to be thinking of that as a possible issue now)

    In your situation, I wonder if you create a screenshot thumbnail and put a “play icon” on it – then put that at the top of your post… would that show up in the activity stream instead of the video embed? I’d try making that the featured image as well to see if that static image showed up in my sidebar display (instead of the actual video itself)

    I would put the screen shot thumbnail image at the top of the post, and then add an H2 tag below something like <h2 id=”playjuneseminar> – then make the screenshot / thumbnail linked to the anchor tag – so that if people clicked the image in the activity stream, or on the actual post itself, it would scroll down to the video.

    I’d consider adding a lazy load / play type thing to the video so it does not auto play unless it’s in focus or something.

    Not sure if this is what you are going for, or if it would even work, but it’s what I would try first.

    Of course it would be cool to see a plugin that combined the “if activity stream item and detect video in post, create a thumbnail, show thumbnail instead of embedded video, link to that section of post, kind of thing.

    like a mashup of the wp video posts plugin, with one of these gif stop/create single frame-click-to-play instead of auto, with an added “if image is from a post link to post”

    random thoughts from my limited bp / wp experiences.

    #241496
    killabien
    Participant

    Okay, so while I’ve made some progress thanks to you two, I’m still missing something. I thought it was working tomorrow but the code wasn’t logical(I had to use author__not_in to display posts from all Spanish users but it didn’t work with other countries).

    So first of all, this code gives me only the users from a given country:
    <?php $Members = array((bp_has_members( my_custom_ids( 'country', 'Spain' ) )) ); ?>

    I’ve used the example Here and it displays only those two users I have with Spain. When I change to France it displays only one user, which is correct. So this one is good to go.
    I’m having trouble with the rest though.

    <?php 
     $query = new WP_Query( array( 'author__in' =>array($Members)));
     if ($query->have_posts()) :
    	// Start the Loop.
        query_posts($query);
       
    	while ($query->have_posts() ) : $query->the_post();
       
    
    		/*
    		 * Include the post format-specific template for the content. If you want to
    		 * use this in a child theme, then include a file called called content-___.php
    		 * (where ___ is the post format) and that will be used instead.
    		 */
             get_template_part( 'page-parts/post-content-small' ); 
             get_template_part( 'page-parts/posts-social-share' ); 
             
            ?>
    
            
    
            <?php if ( sq_option( 'page_comments', 0 ) == 1 ): ?>
    
                <!-- Begin Comments -->
                <?php comments_template( '', true ); ?>
                <!-- End Comments -->
    
            <?php endif; ?>
    
        <?php
     endwhile;
    
     endif;
    ?>
    

    Is what I’ve been trying to do. Putting (bp_has_members( my_custom_ids( 'country', 'Spain' ) )) into an array like this:
    $query = new WP_Query( array( 'author__in' =>array(bp_has_members( my_custom_ids( 'country', 'Spain' ) ))));
    Didn’t give me the results I wanted. What am I doing wrong? Once when I put author__not_in it worked but only with Spain and no other country. Now it’s not working even with Spain.
    Any suggestions? What should I do? Please help.

    Regards

    David

    #241382
    killabien
    Participant

    Okay, I’ve been trying this a bit and I still don’t get it.

    I used 'who'=>'authors' to get all the authors’ posts displayed on a page. What I still can’t get is how to extract the data from wp_bp_xprofile_data. I tried putting that in an array

    $country = array (
    'key'=>'country',
    'value'=>'Spain');

    And then putting it like this
    $query = new WP_Query( array( 'author__in' => $country ) );

    But still nothing. Ive found also this piece of code:

    $user_query = new WP_User_Query( array( 'meta_key' => 'country', 'meta_value' => 'Israel' ) );

    Which is almost the same thing I want to do just that I want to filter posts by such users. Here they’re using meta_key and meta_value again and I’ve got no idea how to do the same with wp_bp_xprofile_data.

    Am I getting close or am I still far from achieving what I want?

    Thank you for your help

    #241361
    killabien
    Participant

    Hello,

    I have created a custom field called ‘country’ which is displayed on the profile page. What I want to do is to query posts by countries from which users come from. So for example, if you click on France you will see the posts by French users only. I created a user whose data says he’s from Spain and he has two posts. I want to use wp_bp_xprofile_data or any other database. I’ve searched on the internet but so far couldn’t get what I wanted. So far I’ve been trying something with this:

    
    get_header(); ?>
    
    <?php get_template_part('page-parts/general-title-section'); ?>
    
    <?php get_template_part('page-parts/general-before-wrap'); ?>
    
    <?php 
    
    // args
    $args = array(
    	'numberposts'	=> -1,
    	'post_type'	=> 'post',
    	'meta_key'      => 'country',
    	'meta_value'	=> 'Spain'
    );
    
    // query
    $the_query = new WP_Query( $args );
    
    ?>
    <?php if( $the_query->have_posts() ): ?>
    	<ul>
    	<?php while( $the_query->have_posts() ) : $the_query->the_post(); ?>
    		<li>
    			<a>">
    				<img />" />
    				<?php the_title(); ?>
    			</a>
    		</li>
    	<?php endwhile; ?>
    	</ul>
    <?php endif; ?>
    
    <?php wp_reset_query();	 // Restore global post data stomped by the_post(). ?>
    
            
    <?php get_template_part('page-parts/general-after-wrap'); ?>
    
    <?php get_footer(); ?>

    (get_template_part are related to the theme I’m using).

    I’ve tried changing ‘country’ in the array to ‘value’ but nothing changed. I’ve been trying various methods for almost 2 weeks now and I’m at my wits ends. Could someone know what might be wrong or have any suggestion?

    Thank you for your help

    Dono12
    Participant

    The New Feature in Buddypress Starred button redirects users to their post page button. I’ve added a button to users buddypress activity page which is titled Post that takes users to a page with a list of their Posts made to WordPress. With the new update when you click on the Starred button the user is redirected to the the list of posts. I created the Post button using this custom function I found Online.

    /* ——————————Start BP Post in profile code for function——————– */
    function importSomething(){
    return include_once ‘bp-custom.php’;
    }
    add_action( ‘bp_setup_nav’, ‘buddyboss_child_bp_nav_adder’ );
    add_action( ‘bp_template_content’, ‘profile_buddyboss_child_loop’ );
    bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) );

    function buddyboss_child_bp_nav_adder() {
    global $bp;
    $post_count = count_user_posts_by_type( $bp->displayed_user->id );
    bp_core_new_nav_item(
    array(
    ‘name’ => sprintf( __( ‘Posts <span>%d</span>’, ‘my-poems’ ), $post_count ),
    ‘slug’ => ‘Articles’,
    ‘position’ => 250,
    ‘show_for_displayed_user’ => true,
    ‘screen_function’ => ‘buddyboss_child_list’,
    ‘item_css_id’ => ‘articles’,
    ‘default_subnav_slug’ => ‘public’
    ));
    }
    function buddyboss_child_list() {
    add_action( ‘bp_template_content’, ‘profile_buddyboss_child_loop’ );
    bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) );
    }
    /*——- This is end of the code for above function ———*/
    function profile_buddyboss_child_loop() {
    $myposts = get_posts( array(
    ‘posts_per_page’ => -1,
    ‘author’ => bp_displayed_user_id(),
    ‘post_type’ => ‘post’
    ));
    if( ! empty($myposts) ) {
    foreach($myposts as $post) {
    setup_postdata( $post );
    if (has_post_thumbnail( $post->ID ) ):
    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘sidebar-smallthumbnew’ );
    else :
    $image[0] = “…/wp-content/themes/Starkers-Child-2/images/vidimage.jpg”;
    endif;
    echo ‘<li class=”sidebar mostpop post-‘ . $post->ID . ‘”><div id=”postimage”>ID) . ‘”></div><div id=”postinfo”>ID) . ‘”>’ . get_the_title($post->ID) . ‘</div>‘;
    }
    echo ‘‘;
    wp_reset_postdata();
    } else { ?>
    <div class=”info” id=”message”>
    <p><?php bp_displayed_user_fullname(); ?> has No posts.</p>
    </div>
    <?php }
    }
    /* This is end of the code for above function */
    remove_filter(‘bp_setup_nav’,”);
    function count_user_posts_by_type( $userid, $post_type = ‘post’ ) {
    global $wpdb;
    $where = get_posts_by_author_sql( $post_type, true, $userid, true);
    $count = $wpdb->get_var( “SELECT COUNT(*) FROM $wpdb->posts $where” );
    return apply_filters( ‘get_usernumposts’, $count, $userid );
    }
    /* ——————————This is end of the code for post in profile above function——————– */

    I dont want to get rid of the latest starred button feature, so How can I go about correcting this redirect error.

    Also the new mobile take picture update doesn’t work on the mobile version of my site. I’m using WP-Smart mobile plugin to generate a mobile theme. I also have a copy of Buddypress in both my Child Theme and my active WP smart mobile theme.

    How can I go about fixing these issues if possible.

    Also, great exceptional work on these new updates.

    Thank you

    Vignesh M
    Participant

    i found and solve the issue on my ownway.. This is the code for display posts count for individual users(members).. Hope it works….

    <?php
    $user_id = bp_get_member_user_id();
    $query = new WP_Query( ‘author=’ . $user_id );

    if ( $query->have_posts() ) {
    while ( $query->have_posts() ) {
    $query->the_post();
    //display title
    /*the_title();*/
    //display content
    /*the_title();*/

    }
    }
    echo ‘Number of posts published by user: ‘ . count_user_posts($user_id);
    //reset for next member
    wp_reset_postdata();
    ?>

    #237212
    yadigit
    Participant

    Hi guys. I hope someone can help me out here. I got this to work for the most part but im still having problems with reloading the page.
    I created a new profile sub nav.
    Ex

    
    function my_bp_nav_adder()
    {
    bp_core_new_nav_item(
       array(
         'name' => __('Wall Posts', 'buddypress'),
         'slug' => 'hidden-truths',
         'parent_url' => $bp->loggedin_user->domain . $bp->groups->slug . '/',
         'position' => 10,
         'show_for_displayed_user' => true,
         'screen_function' => 'my_hidden_truths',
         'item_css_id' => 'all-conversations',
         'default_subnav_slug' => true,		
       ));
      print_r($wp_filter); 
    }
    
    function my_hidden_truths() {
     add_action( 'bp_template_title', 'truth_wall_header_title' );
     add_action( 'bp_template_content', 'truth_wall_content' );
     bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/bpwall/index' ) );
    }
    
    function truth_wall_header_title() {
    #stuff
    }
    
    function truth_wall_content() {
    #stuff
    } add_action( 'bp_setup_nav', 'my_bp_nav_adder' );

    It works. But not 100%
    This is what im aiming to do.
    Eg..
    $varibel = $_POST['somedata'];
    (POST[‘somedata’] will be data drawn from the database. a number to be exact.)

    
         'name' => __('Wall Posts', 'buddypress'),
         'slug' => 'hidden-truths',
         'parent_url' => $bp->loggedin_user->domain . $bp->groups->slug . '/post/$varible',
         'position' => 10,
         'show_for_displayed_user' => true,
         'screen_function' => 'my_hidden_truths',
         'item_css_id' => 'all-conversations',
         'default_subnav_slug' => false,		
       ));
    

    I got it to work, but I when I refresh the page. I get a 404. I understand that the data is not sticking and once you refresh the page, the data gets released..

    Is there anyway to use data from the database and enter it in the slug?

    Kinda like what it’s like for the members url. It’s not hard coded and it’s data drawn from the database.
    /../members/admin/
    /../members/users1/
    /../members/users2/
    Regardless of what user you go to, the same data (for the most part) is loaded, but if you change the url from users1 to admin, The data for admin is loaded.

    I do apologize if this isn’t enough information.
    Thank you!

    #236692
    djsteveb
    Participant

    @giorgosnl – I am confused what you are asking to do.

    You could have one blog where new users are all added to that blog as authors, or editors.. and that would be just one blog where multiple people can post..

    or you could give each user a new blog (aka “site”) – and that would have a different blog at:
    yourdotcom/kevins-site
    yourdotcom/mandys-site

    you could easily make it so all new user blogs had the same header and theme etc.. and use a plugin to display “sitewide blog posts” onto one page.. so you could have a page that showed each member’s blog posts (or snippets from each) and click to read the whole post, which would take them to the individuals blog..

    or one main blog where each person is given access as a contributor, editor, admin.. whatever and they all post on just one main blog..

    both are similar, both are easy with wp+bp… one takes the extra step of making wp multi-site… and a plugin to pull in sitewide blog posts onto a single page…

    #235124
    kyxsune
    Participant

    So sorry to bother you all with this issue, I cant seem to figure out.

    Profile images are not showing up when one visits a users page, however the show up in widgets and in forum posts.

    Inspecting the element gives a 400(bad request), this is due to the way the resizing is foramtted:
    ‘resize=-30%2C-30’ when inserting into the image location. This can be seen by following this link

    Without the resize argument the image does in fact display correctly, Its annoying but I don’t know how to address this issue.

    Any advice or instructions would be greatly appreciated, and thank you for your time.

    Theme: Arcade Basic
    Wordpress Version: 4.1.1
    Buddypress Version: 2.2.1

    evitorino
    Participant

    My wordpress is 4.1 and Buddypress 2.1.1

    Hello Community,

    I am having a problem with a custom member page pagination, when clicking link to pagination page 2, pagination takes us to page 2 and adds the string “?upage=2” to the site URL.

    After that, clicking page 1 or back symbol on pagination links does nothing, only refreshes page.

    Problematic page: http://wp1.kodeserver.net/coach/
    I have set the page above in Twentyfifteen theme as to exclude any third party theme related errors.

    If we use the default member page “http://wp1.kodeserver.net/members/&#8221; then pagination works ok.

    I believe the error might be caused by the member filter i made or maybe i messed up the template.

    Hope you can help.

    Below is the code i am using:

    functions that i use to filter member loop by member types on the site:

    function bp_exclude_users_but_player() {
    $excluded_users_but_player = implode(',',get_users('role=coach&fields=ID'));
    $excluded_users_but_player = $excluded_users_but_player.','.implode(',',get_users('role=seniorcoach&fields=ID'));
    $excluded_users_but_player = $excluded_users_but_player.','.implode(',',get_users('role=subscriber&fields=ID'));
    $excluded_users_but_player = $excluded_users_but_player.','.implode(',',get_users('role=editor&fields=ID'));
    $excluded_users_but_player = $excluded_users_but_player.','.implode(',',get_users('role=administrator&fields=ID'));
    return $excluded_users_but_player;
    }

    function bp_exclude_users_but_coach() {
    $excluded_users_but_coach = implode(',',get_users('role=player&fields=ID'));
    //$excluded_users_but_coach = $excluded_users_but_coach.','.implode(',',get_users('role=seniorcoach&fields=ID'));
    $excluded_users_but_coach = $excluded_users_but_coach.','.implode(',',get_users('role=subscriber&fields=ID'));
    $excluded_users_but_coach = $excluded_users_but_coach.','.implode(',',get_users('role=editor&fields=ID'));
    $excluded_users_but_coach = $excluded_users_but_coach.','.implode(',',get_users('role=administrator&fields=ID'));
    return $excluded_users_but_coach;
    }

    function bp_exclude_users_but_senior_coach() {
    $excluded_users_but_senior_coach = implode(',',get_users('role=player&fields=ID'));
    $excluded_users_but_senior_coach = $excluded_users_but_senior_coach.','.implode(',',get_users('role=coach&fields=ID'));
    $excluded_users_but_senior_coach = $excluded_users_but_senior_coach.','.implode(',',get_users('role=subscriber&fields=ID'));
    $excluded_users_but_senior_coach = $excluded_users_but_senior_coach.','.implode(',',get_users('role=editor&fields=ID'));
    $excluded_users_but_senior_coach = $excluded_users_but_senior_coach.','.implode(',',get_users('role=administrator&fields=ID'));
    return $excluded_users_but_senior_coach;
    }

    function bp_exclude_cc_backend_users() {
    $excluded_cc_backend_users = implode(',',get_users('role=subscriber&fields=ID'));
    $excluded_cc_backend_users = $excluded_cc_backend_users.','.implode(',',get_users('role=editor&fields=ID'));
    $excluded_cc_backend_users = $excluded_cc_backend_users.','.implode(',',get_users('role=administrator&fields=ID'));
    return $excluded_cc_backend_users;
    }

    Member Loop that calls member “Coach” filter:
    <?php if ( bp_has_members( bp_ajax_querystring( 'members').'&exclude='.bp_exclude_users_but_coach().'&per_page=24' ) ) : ?>

    And this is the problematic page template code (The one that filters by role type (coach))

    <?php
    /**
    * The template for displaying all pages
    *
    * This is the template that displays all pages by default.
    * Please note that this is the WordPress construct of pages and that
    * other 'pages' on your WordPress site will use a different template.
    *
    * @package WordPress
    * @subpackage Kleo
    * @since Kleo 1.0
    */

    get_header(); ?>

    <?php get_template_part('page-parts/general-title-section'); ?>

    <?php get_template_part('page-parts/general-before-wrap'); ?>

    <?php
    if ( have_posts() ) :
    // Start the Loop.
    while ( have_posts() ) : the_post();
    /*
    * Include the post format-specific template for the content. If you want to
    * use this in a child theme, then include a file called called content-___.php
    * (where ___ is the post format) and that will be used instead.
    */
    get_template_part( 'content', 'page' );
    endwhile;
    endif;
    ?>

    <?php do_action( 'bp_before_directory_members_page' ); ?>
    <section class="container-wrap main-color">
    <div class="section-container container">

    <div id="buddypress">

    <?php do_action( 'bp_before_directory_members' ); ?>

    <?php do_action( 'bp_before_directory_members_content' ); ?>

    <!--<div id="members-dir-search" class="dir-search" role="search">
    <?php //bp_directory_members_search_form(); ?>
    </div>--><!-- #members-dir-search -->

    <?php do_action( 'bp_before_directory_members_tabs' ); ?>

    <form action="" method="post" id="members-directory-form" class="dir-form">

    <div id="subnav" class="item-list-tabs" role="navigation">

      <!--<li class="selected" id="members-all">"><?php //printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_member_count() ); ?>--> <!--Contatore membri totali-->

      <?php //if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
      <!--<li id="members-personal">"><?php //printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?>-->
      <?php //endif; ?>

      <?php //do_action( 'bp_members_directory_member_types' ); ?>

      <?php //do_action( 'bp_members_directory_member_sub_types' ); ?>

      <!--<li id="members-order-select" class="last filter">
      <label for="members-order-by"><?php //_e( 'Order By:', 'buddypress' ); ?></label>
      <select id="members-order-by">
      <option value="active"><?php //_e( 'Last Active', 'buddypress' ); ?></option>
      <option value="newest"><?php //_e( 'Newest Registered', 'buddypress' ); ?></option>

      <?php //if ( bp_is_active( 'xprofile' ) ) : ?>
      <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
      <?php //endif; ?>

      <?php //do_action( 'bp_members_directory_order_options' ); ?>
      </select>
      -->

    </div><!-- .item-list-tabs -->

    <div id="members-dir-list" class="members dir-list">

    <?php

    /**
    * BuddyPress - Members Loop
    *
    * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
    *
    * @package BuddyPress
    * @subpackage bp-legacy
    */

    ?>

    <?php if ( bp_has_members( bp_ajax_querystring( 'members').'&exclude='.bp_exclude_users_but_coach().'&per_page=24' ) ) : ?>

    <div id="pag-top" class="pagination">
    <div class="pag-count" id="member-dir-count-top">
    <?php bp_members_pagination_count(); ?>
    </div>
    <div class="pagination-links" id="member-dir-pag-top">
    <?php bp_members_pagination_links(); ?>
    </div>
    </div>

    <?php do_action( 'bp_before_directory_members_list' ); ?>

    <ul id="members-list" class="item-list row kleo-isotope masonry">

    <?php while ( bp_members() ) : bp_the_member(); ?>

    <?php $user_info = get_userdata(bp_get_member_user_id()); ?>
    <?php
    $user_roles = $user_info->roles;
    $user_role = array_shift($user_roles);

    // echo 'User ID: ' . $user_info->ID . "\n";
    // echo bp_core_get_user_displayname( $user_info->ID ) ;
    // echo $user_info->ID ;
    ?>

    <li class="kleo-masonry-item type-<?php echo $user_role; ?>">

    ID ; ?>' value='show/hide'> <!-- link che apre info's nascoste -->

    <div class="member-inner-list animated animate-when-almost-visible bottom-to-top">

    <div class="item-avatar rounded">
    <!--
    ">
    --> <?php bp_member_avatar( 'type=full&height=150&width=150' ); ?>
    <!--
    -->
    <?php //do_action('bp_member_online_status', bp_get_member_user_id()); ?>
    </div>
    <!-- "> -->
    <div class="item">
    <div class="item-title"><span class="loop-nome"><?php bp_member_name(); ?></span><span class="loop-cognome"><?php bp_member_profile_data( 'field=Cognome' ); ?></span></div>

    <!-- <?php if ( bp_get_member_latest_update() ) : ?>
    <span class="update"> <?php bp_member_latest_update(); ?></span>
    <?php endif; ?>
    -->
    <?php do_action( 'bp_directory_members_item' ); ?>

    <?php
    /***
    * If you want to show specific profile fields here you can,
    * but it'll add an extra query for each member in the loop
    * (only one regardless of the number of fields you show):
    *
    * bp_member_profile_data( 'field=the field name' );
    */
    ?>

    </div>

    </div><!--end member-inner-list-->
    <!-- link che apre informazioni nascoste -->
    <div id="contenuto-nascosto-<?php echo $user_info->ID ; ?>" class="hidden-infos">
    <div class="nascondi-infos">
    ID ; ?>' value='show/hide'>
    <i class="icon-cancel"></i>

    </div>
    <div class="unhidden-infos unhidden-infos-first ">
    <div class="item-avatar-small">
    ">
    <?php bp_member_avatar( 'type=full&height=50&width=50' ); ?>

    <?php do_action('bp_member_online_status', bp_get_member_user_id()); ?>
    </div>
    </div>
    <div class="unhidden-infos">
    <div class="item-title">
    ">
    <span class="loop-nome"><?php bp_member_name(); ?></span>

    ">
    <span class="loop-cognome"><?php bp_member_profile_data( 'field=Cognome' ); ?></span>

    </div>
    </div>
    <div class="unhidden-infos">
    <span class="nomeazienda-titolo custom-title">Azienda:</span>
    <span class="nomeazienda custom-infos"><?php bp_member_profile_data( 'field=Azienda' ); ?></span>
    </div>
    <div class="unhidden-infos">
    <span class="pos-lavorativa-title custom-title">Funzione:</span>
    <span class="pos-lavorativa custom-infos"><?php bp_member_profile_data( 'field=Funzione' ); ?></span>
    </div>
    <div class="unhidden-infos">
    <span class="settore-title custom-title">Settore:</span>
    <span class="settore custom-infos"><?php bp_member_profile_data( 'field=Settore' ); ?></span>
    </div>
    <div class="unhidden-infos">
    <span class="laurea-title custom-title">Laurea:</span>
    <span class="laurea custom-infos"><?php bp_member_profile_data( 'field=Laurea' ); ?></span>
    </div>

    <div class="action">

    <div class="generic-button" id="send-private-message">
    " title="Clicca per profilo completo" class="send-message">Profilo Completo
    </div>

    <?php //do_action( 'bp_directory_members_actions' ); ?>

    </div>
    </div>

    <script type="text/javascript">
    jQuery(document).ready(function(){
    jQuery('#nascondi-mostra-<?php echo $user_info->ID ; ?>').live('click', function(event) {
    jQuery('#contenuto-nascosto-<?php echo $user_info->ID ; ?>').toggle('show');
    });
    });
    </script>

    <?php endwhile; ?>

    <?php do_action( 'bp_after_directory_members_list' ); ?>

    <?php bp_member_hidden_fields(); ?>

    <?php else: ?>

    <div id="message" class="info">
    <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
    </div>

    <?php endif; ?>

    <?php do_action( 'bp_after_members_loop' ); ?>

    </div><!-- #members-dir-list -->

    <?php do_action( 'bp_directory_members_content' ); ?>

    <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ); ?>

    <?php do_action( 'bp_after_directory_members_content' ); ?>

    </form><!-- #members-directory-form -->

    <?php do_action( 'bp_after_directory_members' ); ?>

    </div><!-- #buddypress -->

    </div>
    </section>

    <?php do_action( 'bp_after_directory_members_page' ); ?>

    <?php get_template_part('page-parts/general-after-wrap'); ?>

    <?php get_footer(); ?>

    #232754
    Kishores
    Participant

    Hello,

    I am developing a Buddypress ext for Wp Job Manager: https://wordpress.org/plugins/wp-job-manager/
    Buddypress Job Manager :http://buddypress-job-manager.opentuteplus.com/

    I need feedback upon it. It by default adds all shortcode as buddypress navigation. There is no restriction for users. For all users links are displaying. I need your help regarding the User Access level. How should it defined?

    Also in Activity feed, how it should behave !!. I’m thinking to add jobs posts to activity feed too.

    So How to add job posting and it’s comments to buddy press activity feed, and customization of it

    Please give your valuable suggestion. 🙂

    Thanks
    Kishore

Viewing 25 results - 51 through 75 (of 287 total)
Skip to toolbar