Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Solution to “buddyblock” alternative

@rglennnall

Participant

thanks so much for this, modemlooper – what i get from it is fantastic, but due to some custom tabs i’ve added in bp-profile it’s throwing a couple of errors before it gets to the output:

Warning: Illegal string offset ‘slug’ in /…/public_html/safeusername/wp-content/plugins/bp-custom.php on line 464

Warning: Illegal string offset ‘slug’ in /…/public_html/safeusername/wp-content/plugins/bp-custom.php on line 464

Warning: Illegal string offset ‘slug’ in /…/public_html/safeusername/wp-content/plugins/bp-custom.php on line 479

464:
if( $slug['slug'] == 'settings' || $slug['slug'] == 'messages') {
			unset( $comps[$comp] );
		}

479: 		foreach( $comps as $comp => $slug  ) {
			$compy = $slug['slug'];

from what i can surmise this should be listing my pages for each option in the Profile below, but the output only reads “only show page to friends” and ONE “only show m page to friends.” I can see that the “bp-<?php echo $compy ?>-privacy” isn’t returning a value for some reason.

The thing is, it’s not returning the values from the existing BP pages, like “Profile” (“only show Profile page to friends”) even when I take out the custom tabs code…


truthfully, what i was hoping for was something exactly like this that would return the current members with checkboxes so that a member can block a member. If you could show me how you’d get bp_members , i can create the output in a dropdown or something…

I’d sure appreciate that.

Skip to toolbar