Search Results for 'buddypress'
-
AuthorSearch Results
-
February 5, 2015 at 10:56 am #233702
In reply to: BuddyPress 2.2.0 Breaks Featured Posts
Mathieu Viet
ModeratorHi,
If “featured posts” are sticky posts, just tested on twentyfourteen with latest BuddyPress and i don’t see any troubles. Posts are listed above the other ones.
Mathieu Viet
ModeratorHi,
Sorry to read you’re having an issue after updating to latest version.
The problem is due to the BuddyBoss media plugin. It looks like it’s calling a BuddyPress function too early in the process. Unfortunately, it’s a premium plugin so it’s hard for me to find what’s going wrong. Could you contact the support team of this plugin to report the problem ?
If the support team needs any help, i’ll be glad to bring my hands on it.
February 5, 2015 at 10:42 am #233699In reply to: Admin Area Turned to Persistent Blank Page
Mathieu Viet
ModeratorHi @tranny
I’m sorry to read about the problem you’re having when activating BuddyPress. From what you’ve described it looks like a plugin or a theme is checking for a capacity very early in the process, well at least before the BuddyPress members component has been fully loaded.
BuddyPress hooks ‘plugins_loaded’ at a 10 priority and define its components a little while after. So your target is a plugin, a theme, or a specific code direclty loaded in global scope that is doing a
current_user_can()before the action ‘plugins_loaded’ has been fired.If you look at this page, you’ll see there are 3 actions fired before ‘plugins_loaded’ : https://codex.wordpress.org/Plugin_API/Action_Reference#Actions_Run_During_an_Admin_Page_Request
Searching the cause of the problem won’t be easy, if i were you i’d do a back up of your entire site and would do some tests on a local server making sure the local server environment contains a x-debug client so that it would display the different functions called before the error appears.
February 5, 2015 at 9:23 am #233696In reply to: BuddyPress 2.2.0 Breaks Featured Posts
Paul Wong-Gibbs
KeymasterHi @kkradel
Sorry to hear you’re having problems with 2.2. How has it broken Featured Posts — can you explain what you’re seeing, and also what you expect to see?
Did you update any other plugins, translations, or core files at the same that you updated BuddyPress?
February 5, 2015 at 7:02 am #233681In reply to: Modify the activity loop
deshmukh
ParticipantHere is an update. I tried doing the same thing but changed directory to mytheme/buddypress/activity/index-directory.php with disastrous consequenes. With the code you had mentioned, it leads to a blank page and with bp-activity-template.php suitably renamed and modified, it gives an error.
So, I guess, I will need to have the file in /mytheme/buddypress/activity and the name will need to be index-directory.php. But what goes in that file is still not known 🙂
February 5, 2015 at 6:49 am #233679In reply to: Modify the activity loop
deshmukh
Participant@henrywright, this is going to be one long conversation, I guess. And thanks for your patience.
OK. Went through the Codex page again. And, as I understood it, created mytheme/buddypress/activity/single/index.php with the code you had given earlier: ‘display_comments’ => ‘stream’. No effect.
Then I copied the whole bp-activity-template.php to the same location, renamed it as index.php and changed ‘display_comments’ => ‘stream’. Still no effect.
Obviously, I am doing something wrong. How do I get this right?
Also, note my earlier point. This change, when successful, only pulls the comments up — not the entire conversation on which the comment was made. But that was the effect I wanted. How do I get that achieved?
Lastly, I guess, I will need to make similar changes to other areas (display of group activity /members/username/activity/groups, favorites /members/username/activity/favorites — to be specific) or it is the same activity loop that generates those pages, too and changes at one place will reflect through all loops?
February 5, 2015 at 3:12 am #233605In reply to: How to create template
bringmesupport
ParticipantThe BuddyPress Codex explains how to do this here:
You were on the right track, but you are copying the wrong files from the BuddyPress core. If you want to override the BuddyPress Templates in your own theme, you would copy the files you wanted to override from wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress to /wp-content/themes/myTheme/buddypress, just keep the file structure intact in your theme.
For example, if you just wanted to modify the members loop, copy just the members-loop.php file from wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php and paste just that file to /wp-content/themes/myTheme/buddypress/members/members-loop.php in your theme. If the folders don’t already exist in your theme, just create them.
February 5, 2015 at 3:01 am #2336045high
ParticipantHi there,
(w/p = 4.1; buddypress = 2.1.1; s2member = 150203)
I see it’s been asked before, but the suggestions I’ve found have only lead to out-of-date plugins, and I don’t want to base my new site on a plugin that may well be completely unsupported within a few months.
my aim: I’d like to ensure that all new members are signed up automatically to at least one group, if not to all 3 groups, so they can immediately be part of a small community.
Is there a way I can add some code into either a BP file or my (child) theme files to do this? I realise that I would have to be careful with updates, so perhaps a child theme functions.php file or similar? (I know the basics of code and how to insert in different files, but have very little knowledge of php, hooks etc so would need help with the exact code for this.)
All help much appreciated.
February 5, 2015 at 1:06 am #233598In reply to: Modify the activity loop
Henry Wright
Moderator/wp-content/plugin/buddypress/bp-activity/activity-template.php is a core file and you are indeed right to think that any changes you make will be overwritten when you upgrade the plugin.
As I mentioned earlier, you should modify your activity template (sorry for not being clearer). The link I provided (to the BuddyPress Template Hierarchy) explains how you can create your own templates.
To explain what I meant about
bp_activity_add(), you’d write your own function which contains a call tobp_activity_add().bp_activity_add()will add an item to the activity stream for you. Hooks are a feature of WordPress, you can read more about them here. You’d hook your custom function to a particular action which will result inbp_activity_add()executing at exactly the time you need it to.Hooks take a bit of getting your head around at first, but once you master them you’ll see how powerful they can be.
PS – When I crack it, is there any way I can contribute to the codex so other newbies like me have access to the stuff? How?
Sure you can! See the Participate and Contribute article for info on how you can help improve BP documentation.
Hope all this info helps! Give me a shout if you need any further help
February 5, 2015 at 12:38 am #233597In reply to: Activate & Register page question
rexsilex88
ParticipantI’ve got similar issues. On 2.1 you have create for all 5. I’m on this new 2.2 RC2 release and whenever I set a page for activate or register it correctly stores it in wp_options table as bp-pages array with the right ID. But those pages remain blank and the dropdowns on the Buddypress->Settings->Page also revert to “NONE” even though its correct in the database.
February 4, 2015 at 11:28 pm #233594In reply to: Adding Copy to Create an Account page
@mercime
Participant@wanderingsoles Just to be clear, you have enabled registration on your site and removed the copy correct? Have you have assigned the Register and Activate pages in Settings > BuddyPress > Pages? Have you tried changing your theme to 2014 or 2015 to check if it’s a theme issue or not?
February 4, 2015 at 10:35 pm #233587r-a-y
KeymasterBuddyPress 2.2 should fix this problem.
Release is imminent so stay tuned!
February 4, 2015 at 8:20 pm #233575Bill
ParticipantJust a couple further thoughts about this, since you guys are re-thinking it:
If you really want people to get into the right sub-forum, why show a long list of topics in the first place? If they’re browsing, they’ll click an interesting-looking topic, and then end up posting their own question in whatever category they find themselves in (or append their question to an existing topic).
On the other hand, if they arrive at /support with the intention to post a query without browsing first, it isn’t immediately obvious that a category must be chosen first in order to do that.
An alternative:
buddypress.org/support perhaps shows a couple/few sticky posts, but the main content is a modified version of @modemlooper’s ‘When Asking for Support’. I’m guessing few people actually open that link before posting. For clarity, it might even be sub-divided into its troubleshooting advice, and the installation-environment probes.I’d follow (or even precede) that with concise instructions on initiating a query by first selecting the relevant category from the sidebar list.
If there is a desire to just have all posts sorted by most-recent, just link to such a page. The /support page as it stands now seems to be geared for browsing.
February 4, 2015 at 6:54 pm #233574In reply to: Adding Copy to Create an Account page
wanderingsoles
ParticipantIn other words, my register page does not actually show up at all… just BuddyPress Create an Account form.
February 4, 2015 at 4:07 pm #233561In reply to: Modify the activity loop
deshmukh
Participant@henrywright Thanks! Here is what I did:
edited /wp-content/plugin/buddypress/bp-activity/activity-template.php
Found the activity loop and changed $defaults = array(
‘display_comments’ => ‘stream’That puts all comments on the top but only the comments are pulled to the top. What I really wanted was the entire conversation is pulled to the top.
Also, I think what I have done is crude and somehow, not ‘proper’. For instance, when I update buddypress plugin, all my changes will be gone.
How do I make sure that the changes remain?
Also, I have gone through https://codex.buddypress.org/developer/function-examples/bp_activity_add/
But still am nebulous about:
You can add items to the activity stream using bp_activity_add(). You’d write a custom function and hook it to the relevant action which fires when a group message has been posted (see a)Can you elaborate?
Lastly, the codex page talks about adding new activity to database. I hope, it makes sure that one gets to see messages posted to only those groups one is authorized to see.
PS – When I crack it, is there any way I can contribute to the codex so other newbies like me have access to the stuff? How?
Thanks!
February 4, 2015 at 2:21 pm #233556In reply to: How to exclude hidden field from search
shanebp
ModeratorIt sounds like a bug.
Please create a ticket on trac.
Use the same user / password you use here.February 4, 2015 at 1:33 pm #233555In reply to: How to get user id of activity
Henry Wright
ModeratorFebruary 4, 2015 at 12:49 pm #233551In reply to: Modify the activity loop
Henry Wright
ModeratorI do not want to ‘add’ new activity. I just want that when one visits example.com/activity, it displays… …all updates in private/ hidden groups where the concerned person is a member (this is NOT displayed currently.) How do I do that?
You have to ‘add’ the new activity.
Regarding the second bullet point, you’d need to modify your activity loop which will be inside your activity template. Try something like this:
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&display_comments=stream' ) ) : ?> <?php while ( bp_activities() ) : bp_the_activity(); ?> <?php locate_template( array( 'activity/entry.php' ), true, false ); ?> <?php endwhile; ?> <?php endif; ?>For more info on the BuddyPress template system and where you find your activity template, please see this article.
February 4, 2015 at 12:34 pm #233548In reply to: Activity Stream Homepage Compatibility Issues
peter-hamilton
ParticipantYou should copy the entire buddypress folder from the bp-legacy folder to your root anyway, this will allow easy adjustment of those core templates, and you get easier access to those files to copy code for new page-templates you can add to your root folder.
Perhaps you might have to alter Brajesh Singh’s code to this, not sure.
<?php bp_get_template_part( 'buddypress/activity/index' ); ?>Another way around would be plugins that allow activity as shortcode to be placed on any page, but more plugins is not necessarily a good idea.
Good luck
Peter Hamilton
Onlijn.comFebruary 4, 2015 at 3:30 am #233540In reply to: How to create template
djsteveb
ParticipantI think you are playing with the old bp default theme files which are no longer being used(?)
see – https://codex.buddypress.org/themes/bp-default-theme-moving-forward-with-bp-1-9/
and perhaps -> https:// codex.buddypress .org/themes/
although I am pretty sure a bunch of the info on that buddypress .org / themes is talking about the old ways of doing things.. so check dates.. I think a bunch of that info is deprecated… however you may find what you are looking for in the codex..
maybe what you are looking for in relation to profiles is touched on here: https://codex.buddypress.org/themes/guides/displaying-extended-profile-fields-on-member-profiles/
February 4, 2015 at 1:12 am #233532In reply to: How to make section of profile private?
screampuff
ParticipantSorry, I should have done it before posting.
Yes the hook is you mentioned is in that template, I ran the user check and it was successful, however it also removed the main list of achievements.
Also I was looking here: https://github.com/paulgibbs/achievements/blob/master/src/includes/class-dpa-wpcli-achievements-users-command.php#L33
And it looks like this is where the list for a specified user is created, but I wasn’t able successfully run a user check on it, but I assume that’s because it’s not going through buddypress.
February 3, 2015 at 10:29 pm #233523In reply to: How to make section of profile private?
Henry Wright
ModeratorYou could be right. I think
bp_core_remove_nav_item()might do a little more than just visually removing an item from the member’s nav menu.If it helps, this is the method that adds the item to the nav menu.
February 3, 2015 at 10:20 pm #233522In reply to: How to make section of profile private?
screampuff
ParticipantNo luck with
if ( bp_is_user() && bp_is_current_component( 'achievements' ) && bp_is_current_action( 'all' ) ) return;My guess is that since I removed the tab with
bp_core_remove_nav_item('achievements');that it is treating it like Buddypress is disabled like you mentioned above.February 3, 2015 at 9:57 pm #233519In reply to: How to make section of profile private?
Henry Wright
ModeratorI experimented with the code but couldn’t get it to work
Looking into it now…
—
As an aside, whilst looking through the plugin’s code, I noticed that endpoints (example.com/author/username/achievements) are used if you ever have BuddyPress disabled. Just something to keep in mind.
February 3, 2015 at 9:15 pm #233516In reply to: in profile hide notifications and settings
fanmusic
ParticipantHi,
Actually no, thats not it, there is no option for that in buddypress, I need to hide the buttons notifications and settings (that are along with profile, messages groupes etc.)
it’s in the front office.thanks a lot
PS : someone posted this, I think it’s on the right track but it doesn’t work :/
[ edited – please use ‘code’ button when posting code ]
Try this in bp-custom.phpfunction fanmusic_remove_profile_nav_remove( $nav ) { $nav = ''; return $nav; } add_filter('bp_get_displayed_user_nav_notifications', 'fanmusic_remove_profile_nav_remove', 10, 1 ); add_filter('bp_get_displayed_user_nav_settings', 'fanmusic_remove_profile_nav_remove', 10, 1 ); -
AuthorSearch Results