Ok, I believe I am on a bp screen. Here is my full code. This is the “functions.php” in my child theme. It displays 3 custom tabs and in the last tab is where y code struggle is. I think @ChrisClayton is right, I just need to have global $bp; inside the function. I just don’t know how I could code that. I appreciate the help guys, this has literally kept me up 5 hours of last night!
with buddypress 1.5.5, there are two options once buddypress is installed. the left option to install group forums and the option on the right to install sitewide(global) forums. i first installed the group forums. i then returned to the dashboard to install the sitewide forums via the second option that buddypress provided. however, the solution you provided fixed my problem and i appreciate your help and quick response!
I’m using bp mag and bp mag classic as my main theme. brajesh recently updated his themes and everything works fine. however if i activate bp mag classic i have a problem in this else if statement. the code is this
if(bp_is_home()){
do_action(“bpmag_member_options_nav”);
}
else if(bp_is_member ())
bp_get_displayed_user_nav ();
else
bp_get_options_nav ();
i have an issue with this:
else if(bp_is_member ())
bp_get_displayed_user_nav ();
when I go to another member of my site it skips this and immediately goes to
else
bp_get_options_nav ();
is there a bug in this code or something else.
here is an image of what i’m talking about
http://i1060.photobucket.com/albums/t451/Bastani/bpmagclassicbug-1.jpg
buddypress 1.5.5 wordpress 3.3.2. latests versions of bp mag and bp classic
thanks in advance. hope someone can help me with this.
p.s. yes i asked Brajesh also on his forum but just want to know if its a problem with this code or if it is more complicated.
@ChrisClayton I’m not so hot with php.. What exactly would my global code be in functions?
guys i already posted the job to find a freelancer… honestly this is way above my level and I don’t have time to work on this 
i am not a programmer by the way, i am an accountant! having learned to create wordpress sites and install plugins, I have come far.
@yanodnoralov – You do have `global $bp;` inside the function, right? (Just checking, sometimes it’s the simplest things that get overlooked)
@Hugo Thanks for the response. Reading this article and a few others, (http://stackoverflow.com/questions/4907350/php-help-with-using-variable-inside-code) I have to close out the tag after author=
I searched WP Codex in and out… How would I call or filter my query by the buddy press “displayed_user” variable?
Thanks so much!
Wouldn’t cost you that much although depends on the beautification that your required, however seeing as mercime will fix things for free, please consider a small donation to a worthwhile charity 
== I received a note that said “It looks like you already said that.” ==
I’ve seen this happen when you post large blocks of code with at certain times. What I do is to post code at pastebin.com and post the generated URI here along with my text and it’s all good.
@neodjandre Open up your theme’s header.php file, copy all, paste in pastebin.com, click submit and post the generated URI here. Then do the same for your theme’s index.php, page.php, sidebar.php and footer.php files.
When I replied to my own topic, I received a note that said “It looks like you already said that.” I didn’t, and nothing was updated.
== i then tried to install the global forums ==
Please clarify, are you referring to the Sitewide Forums aka bbPress plugin 2.+ or are you referring to the Global Forums plugin by BuddyDev.com? In either case to gain back access to your wp-admin, rename the bbpress or global-forums folders via FTP/FileManage/cpanel to something like wp-content/plugins/bbpress-xxx or wp-content/plugins/global-forums-xxx
Set which blog ID BuddyPress will run on if not on main site – add following to your bp-custom.php file:
`define ( ‘BP_ROOT_BLOG’, $blog_id );`
where you replace $blog_id with the blog ID number of subdomain/subdirectory site of your multisite installation – https://codex.buddypress.org/extending-buddypress/changing-internal-configuration-settings/
As for themes – you can use a WordPress theme then install the BP Template Pack plugin and go through the BP Compatiblity process. Check if your WP theme has been “template-packed” in the list near bottom of this page https://codex.buddypress.org/theme-development/wordpress-to-buddypress-theme/
Do you have Sitewide and Group Forums installed or just Sitewide Forums only?
hello all,
my problem is that i’ve already installed the group forums for my buddypress install. i then tried to install the global forums, thinking it would be okay, however, while the front end of the site still works; the backend does not. i cannot get to the dashboard or the network admin dashboard. could anyone advise please?
guys, this is beyond my skills…
I can pay £100 GBP to fix these issues and make some small CSS changes to beautify things.
If you are interested please email me at andreas (at) eupal.eu
thanks for trying to help,
Andreas
Hello,
I use buddypress with wpml
I noticed two things which i cannot figure out.
In English it is working.
In the dutch language some things not.
When i want to login using the login button of the dark bar in the top of the site it is redirecting me to : /wp-login.php?redirect_to=http%3A%2F%2Fwww.imagine2b.com%2Fimagine%2Fnl
when i do the same procedure on the dutch language part it is redirecting to :
/nl/wp-login.php?redirect_to=http%3A%2F%2Fwww.imagine2b.com%2Fimagine%2Fnl
But wp-login is not in the nl directory. HOw can i solve this?
Second question::
The same thing is happening with creating a group. When i create a group and want to upload an groups avatar then its giving me an 404 error.
Its also directing me to a directory NL but it shouldnt.
nl/groups/create/step/group-avatar
it should be:
/groups/create/step/group-avatar
can you give me an advice
ou still have those duplicate ID’s they are not really acceptable in fact they may well cause issues as ID’s must be unique to a page – it’s not a flexible rule.
Look at those two pages ‘group directory index’ and ‘single group display’ you are missing a fundamental class that gets added to the body tag ‘.right_sidebar’ without that class present your sidebar does not have the required ruleset applied.
You will need to work out how your theme ‘framework’? applies that class for a given view and ensure it’s applied in respect of your groups single view pages (and any others )
Hi @mercime,
I fixed that but when you click on the group link things get messy.
http://community.eupal.eu/groups/politics/
any ideas there?
In a custom user tab I’m trying to display that users posts. (displayed user, not logged in user).
I found this code on a forum but it’s not working for me. It should pull the ‘displayed users’ posts only, instead it shows all posts. How Can I make it pull only posts by the “displayed user”?
`query_posts( ‘author=’ . $bp->displayed_user->id );
// the Loop
while (have_posts()) : the_post();
the_content( ‘Read the full post »’ );
endwhile;
`
What am I doing wrong?
Thanks a ton!
@djwinner Yes, you should hit up the theme author. You paid for a theme that’s supposed to be compatible with BP 1.5.5 per documentation, you deserve a theme which have all parts working.
@neodjandre at first glance, it looks like the layout you have for the groups directory page you linked to above is the default layout you get right after BP compatibility … except that the member’s profile page has the sidebar below the content. The only hitch with that layout is that you have duplicate div#content in the HTML (one from your theme and the other from the BP template file) but that’s livable. Or did you already tweak the layout of the group directory page?
I recommend against disabling account activation, but I believe you can do so like this. Put this in your bp-custom.php:
http://pastebin.com/z3ec4Y5F
https://codex.buddypress.org/extending-buddypress/bp-custom-php/