-
Roger Coathup posted on the forum topic How to Remove and Add Items in "bp_get_displayed_user_nav" in the group How-To and Troubleshooting: 14 years, 6 months ago
The other thread, with code for the number of messages / notifications, and link across is: https://buddypress.org/community/groups/installing-buddypress/forum/topic/hi-hi-everyone-how-can-i-get-the-message-url-or-the-number-of-messages-and-settings-url/
-
Roger Coathup posted on the forum topic Template tag for activity_username in the group How-To and Troubleshooting: 14 years, 6 months ago
Yes, it’s missing from the API. If you want it as a single function call, you can always write your own: my_activity_user_nicename() and put it in your bp-custom.php
And, submit it to the trac as an API enhancement!
-
Roger Coathup posted on the forum topic Activity stream replies in the group Creating & Extending: 14 years, 6 months ago
@antonrsa off the top of my head, isn’t that just a theming issue… Modding your loop? Or does the core template tag spit out all the replies en masse?
-
Roger Coathup posted on the forum topic How to allow ONLY image posts? in the group How-To and Troubleshooting: 14 years, 6 months ago
@adelack Bp-album+ (I think it’s called bp media now) was going to be my other suggestion… It’s definitely a good starting point for your image upload challenges. Good luck with your site.
-
Roger Coathup posted on the forum topic Group loop in the group How-To and Troubleshooting: 14 years, 6 months ago
Yes, I suspect the group template only has the current group initialised when you are on a single group page. So, only has one group to loop over. The same as being on a single post page vs. a category page in standard WordPress. We had a similar issue with the activity loop. Try passing […]
-
Roger Coathup posted an update 14 years, 6 months ago
@pollyplummer Hi Sarah – if you are looking for a WPMU article idea – give me a shout later this month. We’ve got a stack of new BuddyPress client sites coming up for launch – we could talk about developing BuddyPress for overseas clients, one of the sites in detail, or just chew the fat on how to grow a BuddyPress team.
-
Roger Coathup posted on the forum topic How to Exclude a Group From the Groups Loop in the group How-To and Troubleshooting: 14 years, 6 months ago
@ch8rt – rather than write that long nested if structure, put your group names into an array, and then check if the bp_get_group_name is in that array, using the PHP in_array() function: http://php.net/manual/en/function.in-array.php
@pollyplummer – Yes, an exclude parameter would be very useful – it came up in another forum thread recently as well
-
Roger Coathup posted on the forum topic Template tag for activity_username in the group How-To and Troubleshooting: 14 years, 6 months ago
Pass the ID into bp_core_get_username
-
Roger Coathup posted on the forum topic How to allow ONLY image posts? in the group How-To and Troubleshooting: 14 years, 6 months ago
@adelack – I would follow the recommendation from @lightcapturer and try the oEmbed plugin – which will let you pull images from urls If you want actual image upload features, that would be much harder work – you could look at how the avatar upload code works for profiles and try to find some ideas from […]
-
Roger Coathup posted on the forum topic How to Remove and Add Items in "bp_get_displayed_user_nav" in the group How-To and Troubleshooting: 14 years, 6 months ago
You could look at adding a filter on: bp_get_displayed_user_nav_ . $user_nav_item to remove the blog menu.
Or, take a look at these functions in bp-core.php:
function bp_core_new_nav_item( $args = ” )
function bp_core_remove_nav_item( $parent_id ) -
Roger Coathup posted on the forum topic Changing ”display_comments” Value in profile/activity/friends/ to ”stream” in the group How-To and Troubleshooting: 14 years, 6 months ago
I’m not 100% sure what you are trying to achieve. Do you want to add an extra filtering option on the activity list? This will involve some UI work as well as a call to bp_has_activities() template tag. I think you might be getting confused between the bp_has_activities() template tag, and the bp_has_activities hook / […]
-
Roger Coathup posted on the forum topic Customize built-in group widget? in the group How-To and Troubleshooting: 14 years, 6 months ago
follow up: I took a look at the BuddyPress widget pack… that gives you widgets for member (popular, etc.) not for groups. To set the tab order in the tabbed widgets plugin, it looks like you can just do it from the widget’s admin panel… changing the tab from the dropdown. Unfortunately, the widget broke […]
-
Roger Coathup posted on the forum topic Customize built-in group widget? in the group How-To and Troubleshooting: 14 years, 6 months ago
In general, you need to look in the wp-content/plugins folder to find the code for your widgets.
The code for the built-in groups widget is in wp-content/plugins/buddypress/bp-groups/bp-groups-widgets.php
-
Roger Coathup posted on the forum topic looking for co-authors of http://www.ratingstars.org in the group Gallery: 14 years, 6 months ago
You should post this request in the jobs board not in the gallery https://buddypress.org/community/groups/bp-jobs-board/
-
Roger Coathup posted on the forum topic Age and Gender in the group How-To and Troubleshooting: 14 years, 6 months ago
@tubruk if you are having a problem using Adam at Hyperspatial’s functions for age (they look fine to me), then please leave a comment for him on his blog The code you have for gender needs to be used inside a loop that’s iterating over fields, and have the correct profile fields and values set up […]
-
Roger Coathup posted on the forum topic Multiple activity loops on same page in the group How-To and Troubleshooting: 14 years, 6 months ago
-
Roger Coathup posted on the forum topic Multiple activity loops on same page in the group How-To and Troubleshooting: 14 years, 6 months ago
@nuprn1 – yes, they were running sequentially, but the second one was just returning the same activities as the first. As @djpaul suggests, I’ll make sure it’s getting a fuller set of parameters passed in its bp_has_activities() initiation, to keep it showing all activities. Hopefully, this should fix the PHP call. It’s late here – I’ll leave […]
-
Roger Coathup posted on the forum topic Multiple activity loops on same page in the group How-To and Troubleshooting: 14 years, 6 months ago
@djpaul – I put some edits in my comment above – it looks like our posts crossed.
My two streams are independent (i.e. not nested)… I’ll try setting them both up with a full set of parameters specified, and see if that allows them to show different content.
Cheers, Roger
-
Roger Coathup posted on the forum topic Multiple activity loops on same page in the group How-To and Troubleshooting: 14 years, 6 months ago
@djpaul, @nuprn1 – I ran into a stack of problems with this approach: 1. A call to make a new BP_Activity_Template requires a full set of parameters (it doesn’t default them). 2. All the bp_ functions, e.g. bp_has_activities() work on a single global activities template ($activities_template) 3. The methods (functions) you can call directly on the…[Read more]
-
Roger Coathup posted on the forum topic Multiple activity loops on same page in the group How-To and Troubleshooting: 14 years, 6 months ago
@djpaul, @nuprn1 : I was thinking both the AJAX and the PHP switching tabs (e.g. between Personal, Friends, etc. on the Profile .. Activity page). I have a mini activity sidebar widget that’s permanently around showing all site activity. When a user is on a profile activity page, there is also the main activity stream. Essentially, I […]
- Load More
@rogercoathup
Active 4 years, 11 months ago