Hi @mthant,
sorry for your menu trouble, but it seems to me, after visiting your site, that you omitted some important settings steps. So let’s try to set up properly your site menu before adding BP related conditionnals.
1) Each active BP component should have his unique page.
2) Site should have pretty permalinks activated (whatever option but default)
For example step 1 indicate that your register page is at /site/register-2. This could be correct, but tells that you created a page called register first, than removed it, and finally recreated a second “register” page. This explains why you have “-2” in the URL and probably a page in the trash. You have to clear it definetly. And you have to ensure that the slug is /register/. Go to dashboard > Pages > Quick edit and correct it.
As BP is active, you should also have a page called by default “members”. His default url should be http://7fc.d70.myftpupload.com/members/.
I assume you renamed it to “directory”. Problemen is that “directory” doesn’t show the member directory, or no message telling visitors they have to log in to see this page…
And as you use a lot of different directories, it is confusing, even for you when you try to build a menu.
But you’re using Salutation, which is a premium theme and i can’t help you further to set it up correctly.
But you could activate a Twenty theme for the time you need to create and test how WP menus are created and displayed. And perhaps read through Salutation documentation too. 😉
Here’s BP guide about the BP menu you can add aside the site main menu.
And here, the access to any menu related codex articles.
I’ve seen similar issues when a menu was no saved for the site, then all the main items end up being shown as top level. I don’t think in this case that is the case but it does seem to be an issue with the menus, not BuddyPress
When I install/activate buddypress all the ajax JSON response I receive starts with an opening php tag “<?php”.
If you are a newbie you might like to check out my website – http//:buddyuser.com, it’s aimed at getting newbies up to speed.
Regarding your issue with menus, is this not a more general WordPress/Theme issue? What happens when you replace those BuddyPress Options with other options, do you still get the same behaviour?
thank you for sharing @peterspliid, but it would also be usefull for the devs that you add your fix to this ticket: https://buddypress.trac.wordpress.org/ticket/7349
so at least it will be taken in consideration.
You’re wrong and it is not a BP question.
If you’re not comfortable with coding, i would at your place use a working plugin instead of trying to customize something i don’t completely understand.
There is a similar one called Compliments (and up to date). Will be easier (perhaps) to adapt or even use as is for your needs ? 😉
If I can go BuddyPress pages, I can make those changes.
No, not exactly ! BP pages are not ordinary wp pages.
Do you use a child theme ? If so, read Salutation doc first, then check the child theme and sse if it is updated for BP 2.7 new template
As Salutation is a premium theme, we can’t help you much more with this (small) issue. Afaik you have to ask on the theme support.
I don’t have any problems with other pages though. If I can go BuddyPress pages, I can make those changes.
I’m using an older gifts plugin with buddypress to allow users to send gifts to each other. I’m currently trying to make it so if you’re logged in, you can see all the gifts you’ve been gifted, while if I go to someone’s page, I will only see the gifts I gifted them.
I’ve pasted my code below. Logically to me this makes sense; each <li> is a different gift from a user. I am trying to make it so if the returned result has the same id as the current user, display that <li>. I am beginning to think I am on the wrong file (before anyone says not to edit plugin files, this plugin has deprecated 2 years already).
Any idea?
<?php
global $wpdb;
global $bp;
$cur_user = $bp->loggedin_user->id;
$profile_user = $bp->displayed_user->id;
$result = $wpdb->get_results("SELECT * FROM wp_bp_activity WHERE item_id=" . $profile_user . " AND component='gifts'");
?>
<ul id="activity-stream" class="activity-list item-list" style="list-style-type: none;">
<?php //loop through ID's
foreach ($result as $results) { ?>
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<?php if ( $results->user_id == $cur_user ) { ?>
<li class="<?php bp_activity_css_class(); ?> message" id="activity-<?php bp_activity_id(); ?>">...</li>
<?php } //end if
endwhile;
} //end foreach
?>
</ul>
Sounds like a theme thing, I’m not an expert in theme things yet but my first port of call would be my theme developer to see if there were settings you could change to change that page. There’s probably at worst case a bit of custom CSS that you can add to your theme. Whilst BuddyPress may be calling that content it’s the theme that is delivering it and obviously a page still configured with the old settings.
Hi,
I’m having the same issue as Torgrim describes in this post:
https://buddypress.org/support/topic/all-comments-being-displayed-on-user-profile-page/
I have same problem!
Need comments on some (other) pages/posts (but only those I set this for on a page/post basis). Have turned off comments in Settings > Discussion.
If I comment on a page/post, the comments somehow show up in my BuddyPress pages (Profile, Activity view, etc.)
This problem only occurs for the BuddyPress pages. When I go to a regulat post or page, only the comments (if allowed) for that page is showing.
Very frustrating…
My BuddyPress pages says “Comments are closed”. But still show comments from other posts/pages.
The topic however does not state a solution for this.
Can anyone help me with this issue?
Thanks in advance.
Kind regards
BuddyDev have a plugin that allows you to change the username – http://buddyuser.com/plugin-review-buddypress-username-changer
Hello
I am using BuddyPress with Salutation theme from Parallelus. After I install I found that BuddyPress pages change the theme to original theme layout instead of the layout design that I modified. How can I change BuddyPress pages to make them look like rest of the pages?
Thanks,
Myo
You might want to take a look at my website. It’s for people just starting out with BuddyPress, it might give you some ideas.
http://buddyuser.com
There’s a plugin to force the user to select an Avatar before they user your site – http://buddyuser.com/plugin-review-buddypress-force-profile-photo
Some of your questions you need to ask your theme creator, though if it’s not a BuddyPress theme they may not be much help.
I pressed publish button and it showed ‘unknown destination 404’ … sort of
so I pressed the button again.
And there are two posts.
Is the same going to happen in buddypress plugin also?
I am worried.
I installed buddypress.
Its okay.
BUT what the hell!!!
Under each buddypress page i find ‘next’ and ‘previous’ link which taking me to next/previous page i have published in my Dashboard->Pages.
‘next’ and ‘previous’ link comes from my theme ‘modern’ by webman design.
It shows in case of blogs or posts. When reading one blog below there are two other links … ‘next’ and ‘previous’ link… leading to next and previous blog. Thats absolutely ok.
But why is the same link showing under buddypress pages?
Please help immediately.
I am to launch my site in next 4 days.
-thanks and regards
Hi @sixthgalaxy,
you can use bp_get_template_part function.
Depending what you’re building, consider also this function.
@andrewteg,
there is a little link on your example to another codex page who give’s you the main reason for using a wrapper.
It is not required, but strongly recommended. Depending what, where and how your code should run, they are diffrent other ways to ensure that BP is active.
the classic php if_class_exist()
or more a la BP specific
if ( function_exists('bp_is_active') ) {
// do something here...
}
Hi @excel1,
such URL is odd and shouldn’t appear on a correctly install setup:
example.com/index.php/beispielbeitrag/
In brief, your install WP at the site root which is: exemple.com
BP is a wp plugin and by the way, will also be at the root.
And as wp is also a blog, that blog is also at example.com (on a page defined in wp’s Read settings).
This means that you can create a page for the blog and name it “besipielbeitrag” and asign this page to posts in WP settings. And make it private or whatever.
BP members or groups will be at exemple.com/members/ or example.com/groups/ and the users at example.com/members/USERNAME/
index.php is one of the files in a theme, but has nothing to do with BP pages or a dedicated blog page.
Also, if emxampel.com and example.com are 2 URL for the same site, or if you installed wp in emxampel.com and BP in example.com, BP won’t work.
I would recomend you to read attentively the install guide from the begin.
I’m following along with https://codex.buddypress.org/plugindev/how-to-edit-group-meta-tutorial/ to add some group meta and it works great.
I’m wondering if the second code block “wrapper function if BP is activated” is still the preferred way and if it’s required. I haven’t seen that in other plugins with robust hooks and filters recently like Woo (where it just uses Woo based hooks and filters) so I wasn’t sure if the wrapper here was required, suggested, or completely optional at this point in BP development.
Thanks!
Andrew
Hello BP-Supporters,
I set up a Blog on a private link: http://emxampel.com
I changed my Blog url / place to: http://example.com
All worked without one:
Buddpress worked on http://example.com/beispielbeitrag/
But my URl changes i need to change perma link:
http://example.com/index.php/beispielbeitrag/
all worked but buddypress dont took these URL on the groups and members.