-
Roger Coathup posted on the forum topic dynamically create new sets of profile fields in the group How-To and Troubleshooting: 15 years, 3 months ago
@arxpoetica – we haven’t implemented any code yet, as we may now be moving all profile field handling out of BuddyPress on this client project.
If we do end up cutting BP code this, I’ll remember to post a snippet.
-
Roger Coathup posted on the forum topic customizing buddypress profile page default tab and item-nav order in the group How-To and Troubleshooting: 15 years, 3 months ago
@hnla, @nuprn1 The constant is supposed to set the default tab that is active when you visit a profile. In my case, although I’ve made activity the 3rd tab, it is still the default active one when I visit the profile. Defining BP_DEFAULT_COMPONENT in wp_config.php is now working for me – provided I use my new slug […]
-
Roger Coathup posted on the forum topic customizing buddypress profile page default tab and item-nav order in the group How-To and Troubleshooting: 15 years, 3 months ago
@nuprn1 @hnla – Ok, I’ve found the problem, or perhaps the bug in BP (I suspect this belongs in the trac)… OR, perhaps this is correct behaviour?? We’d renamed the XPROFILE_SLUG: define(‘BP_XPROFILE_SLUG’, ‘account’); If I remove this definition, the routine to setup the nav works fine. Or, if I use $bp->bp_nav = 20; instead of $bp->bp_nav = […]
-
Roger Coathup posted on the forum topic customizing buddypress profile page default tab and item-nav order in the group How-To and Troubleshooting: 15 years, 3 months ago
The profile tab is breaking it for me. If I remove that tab from my function, I no longer get the nonsense code generated. Note: I still get a profile tab inserted (I assume from the bp-core), even though it is no longer in my function (unfortunately, it is in the wrong place). p.s. yes, […]
-
Roger Coathup posted on the forum topic customizing buddypress profile page default tab and item-nav order in the group How-To and Troubleshooting: 15 years, 3 months ago
p.s. @hnla yes, the default component constant also failed to load the profile for me. So, I’ve removed that
-
Roger Coathup posted on the forum topic customizing buddypress profile page default tab and item-nav order in the group How-To and Troubleshooting: 15 years, 3 months ago
Ok… I cut and pasted the code, and that had introduced some control characters that messed everything up. However, the routine to change the tab order is not working for me… I went for the following: function ka_change_profile_tab_order() { global $bp; $bp->bp_nav = 10; $bp->bp_nav = 20; $bp->bp_nav = 30; $bp->bp_nav = 50; $bp->bp_nav =…
-
Roger Coathup posted on the forum topic customizing buddypress profile page default tab and item-nav order in the group How-To and Troubleshooting: 15 years, 3 months ago
I added these functions as described, but neither had any effect in my theme. Is there something else missing?
-
Roger Coathup posted on the forum topic dynamically create new sets of profile fields in the group How-To and Troubleshooting: 15 years, 3 months ago
@boonebgorges – Great that you think it can be done with the existing tables (I was considering adding some additional tables keyed on the user profile id). The hook into xprofile at the right place is what I was looking for. We are going to filter out profile fields where the user hasn’t input a value […]
-
Roger Coathup posted on the forum topic dynamically create new sets of profile fields in the group How-To and Troubleshooting: 15 years, 3 months ago
bump! Anyone else tried to do this… it seems a reasonably fundamental thing to want to do with profile fields?
-
Roger Coathup posted on the forum topic Expanding the codex in the group buddypress.org Ninjas: 15 years, 3 months ago
@boonebgorges – have we got any further forward on how we add new pages to the Codex, or on stubs / desired structure? We worked with a little piece of code today (that’s also come up in other threads)… Taking different actions in the activity loop based on the activity type, and then accessing appropriate data […]
-
Roger Coathup posted on the forum topic activity stream post ID? in the group How-To and Troubleshooting: 15 years, 3 months ago
p.s. @hoodiemark – in answer to your second question. I don’t think a filter is a good way to solve this one… We wanted to avoid displaying post content for blog posts in the activity stream. The filter options only seemed to let us control how the activity for a blog post was created in the […]
-
Roger Coathup posted on the forum topic activity stream post ID? in the group How-To and Troubleshooting: 15 years, 3 months ago
@hoodiemark – don’t know if you fixed this one, but the call you need is: if (bp_get_activity_type() == ‘new_blog_post’) : bp_activity_secondary_item_id(); endif; The post_id is the secondary_item_id, so no need to go trying to traverse deeper into the data structure. You have two calls you can use: bp_activity_secondary_item_id() This echoes the…[Read more]
-
Roger Coathup posted on the forum topic remove paragraph markup from around status updates in the activity stream in the group How-To and Troubleshooting: 15 years, 3 months ago
Thanks guys (both solutions work) –
I’m always forgetting to hook calls to the init action in bp-custom.php. I won’t again!
-
Roger Coathup started the forum topic remove paragraph markup from around status updates in the activity stream in the group How-To and Troubleshooting: 15 years, 3 months ago
I’m trying to remove the paragraph () markup that gets inserted around status updates when they are displayed in the activity stream.
I’ve tried adding the following to my bp-custom.php:
remove_filter( ‘bp_get_activity_content_body’, ‘wpautop’ );
remove_filter( ‘bp_get_activity_content’, ‘wpautop’ );But, it has no effect.
Anyone have a fix?
-
Roger Coathup posted on the forum topic WordPress theme vs BuddyPress theme in the group Creating & Extending: 15 years, 3 months ago
Hi, we always create a child theme derived from the BuddyPress default theme (we are on our 5th commercial BP project at the moment). We customise heavily, change an awful lot of the CSS, and tear our hair out at the masses of unnecessary divs and classes. But, on the other hand it does give […]
-
Roger Coathup started the forum topic dynamically create new sets of profile fields in the group How-To and Troubleshooting: 15 years, 3 months ago
We want to be able to dynamically create new profile fields: e.g. we have a set of profile fields for employment: employer name, dates employed, etc. When the user enters one set of employment fields, we want to create another set, so they can enter a second employer, and a third employer and so on. […]
-
Roger Coathup posted on the forum topic customizing buddypress profile page default tab and item-nav order in the group How-To and Troubleshooting: 15 years, 3 months ago
Thanks for posting… that’s an excellent quick lookup for something I have on a project todo list
-
Roger Coathup posted on the forum topic How to translit buddypress another languije? in the group How-To and Troubleshooting: 15 years, 3 months ago
Check this Group – it has lots of threads on localization / translation:
-
Roger Coathup posted on the forum topic how do you make the activity slug display instead of home when you first go to a website in the group How-To and Troubleshooting: 15 years, 3 months ago
go to settings > reading in your admin backend.
Choose: Front page displays a static page and select Activity Stream
Cheers,
Roger -
Roger Coathup posted on the forum topic Updates Only in Activity Stream in the group How-To and Troubleshooting: 15 years, 3 months ago
🙂 I’m no fan of hiding things with CSS – the code is still ‘cluttering’ up the html – best to remove it in the html/php source file.
Thanks for the lead on the suggestions from @boone using custom filters in the functions.php file.
- Load More
@rogercoathup
Active 5 years, 7 months ago