Forum Replies Created
-
In reply to: Filtering Activity Stream
@shawn38. @djpaul @hnla @nuprn1 @pollyplummer
Did you make reference in the plugin to where you took your code from?
It’s really bad practice to take other developer’s code and not credit them.
In reply to: Filtering Activity StreamYou can also look at the original plugin that Shawn has copied his code from: http://wpmu.org/create-a-better-community-experience-with-the-new-buddypress-friends-only-activity-stream-plugin/
There are also some earlier posts on here about how to achieve this.
@sooskriszta – we should have an announcement shortly on a new photo solution for BP – that as you recognise should and does leverage the built in WP capability
In reply to: Remove Automatic Links in Profile@davidkooo – which theme are you using? I noticed one ‘off the shelf’ theme was adding additional profile field links – in which case you’d have to strip them in your templates as well.
In reply to: BuddyPress ecommerce pluginsThe plugin is good in that integrates the account / previous order information into your BP profile.
The ‘problem’ is that it also integrates the cart and checkout screens into your profile — which we think is bad. To maximise the chances a shopper will complete their purchase, you want those screens clean and uncluttered and the process as smooth as possible. Jumping to a different layout with profile info at the top, and the checkout / basket pushed down the screen isn’t good.
In reply to: BuddyPress ecommerce pluginsWoo is the best I’ve come across so far.
We started a shop extension to a BP site on Jigo, but quickly switched to Woo (a fork of Jigo) because it provided obvious hooks and filters we needed as developers that simply weren’t there on Jigo. Other parts of the API seem richer as well.
You can check out the site: http://www.enterprisenation.com/shop/
There is a plugin for even tighter integration with the BP profile, but we are going to reengineer that as we feel it places some screens in the wrong place and doesn’t provide the smoothest UX as a result.
In reply to: Is buddypress overriding the template filter?Take a look at the bp_core_load_template() function — it gives you some filters, e.g. bp_located_template and bp_load_template, that you could try working with.
It’s a specialist piece of development, you’ll have to read through that code and work out how to apply to your specific situation.
Almost certainly you have filter in functions.php to remove auto profile links. Unfortunately, the priority number on that filter was changed in a recent BuddyPress release, resulting in a lot broken sites. If you put the correct filter priority in functions.php, I suspect your site will work again. Have a Google at previous threads on here for correct number
Most successful sites have a user interface / experience tailored specifically to their user’s needs; with a compulsive reason to be there. Just putting up a generic platform with groups, activity and members directories, and hoping they’ll join is unlikely to work.
BuddyPress gives you a great platform to underpin your build, but you will need specialist design and development skills to craft that compulsive site with features your users will want and need to use.
[ Edit: for another large membership BP site, take a look at http://enterprisenation.com ]
In reply to: Is buddypress overriding the template filter?Buddypress processes a number of urls and loads the templates directly. Do a search on load_template in the BP files
I suggest going into phpnyadmin and trying a database repair. It sounds like a corrupted db
In reply to: Changing Activity Stream Time & DateDon’t change the function.. As I said originally, use the filters it provides to modify the display.
If you are not familiar with WordPress filters and actions have a Google in the WP docsIn reply to: Author bio link on posts to link to BP ProfileYou can get a link to a user’s profile using:
bp_core_get_userlink( $user_id, $no_anchor = false, $just_link = false )
In your case, pass in the author ID as the user_id. If you set $just_link to true, you’ll get a simple URL that you can use as the href in your anchor. You can then add a rel=author to that anchor
Have you tried deactivating all your other plugins apart from BuddyPress? If not try that in conjunction with the default theme. If that works, you know the problem is in your plugins rather than a corrupted database / installation.
In reply to: I need WPMU / Buddypress Expert for ProjectYou should post this in the jobs board group: https://buddypress.org/community/groups/bp-jobs-board/
Also, include your contact details.
In the default setup your update form action would go to ‘http://yourdomain.com/activity/post’, which is then intercepted by the activity action functions, processed (i.e. the new update is added), and redirected back to the original activity screen.
In your case, your theme would appear to be not coded correctly (or less likely a clash with one of your plugins) — you should raise a support question with your theme designer.
In reply to: how to hide admin activity on Buddypress activity?Do you want to prevent admin activities being created in the first place, or just stop them displaying on certain screens?
If you want to stop them being displayed (and you are comfortable writing SQL) you can add a filter on bp_activity_get_user_join_filter, and modify the where clause to exclude the admin user id
If you want to stop them being created, you could add a hook on bp_activity_add, and delete the activity if the user_id is the admin id.
In reply to: Remove Automatic Links in ProfileWhich theme are you using?
If you are working with bp-default and want to create any amends (such as adding functions in functions.php), you will be best to create a new theme (probably a child one). If you look in the menu tab called Codex on this site, you’ll find documentation on how to do this.
In reply to: How can i change menu “Home” text to image icon.If you don’t understand how wp_nav_menu() works, you can read up about it here: https://codex.wordpress.org/Function_Reference/wp_nav_menu
In reply to: How can i change menu “Home” text to image icon.wp_nav_menu() assigns unique ids to its menu items. So, if you understand CSS, I’m not sure what your problem is.
Also somewhat baffled that you know it’s using wp_nav_menu(), but you don’t know what file it’s in? How do you know it’s using wp_nav_menu() if you can’t find the code?
In reply to: How can i change menu “Home” text to image icon.That’s basic CSS — google ‘CSS image replacement techniques’
In reply to: [Resolved] How to get profile idOn a profile page, you can use the $bp->displayed_user object to get information about the displayed member.
In reply to: BuddyPress 1.6.1@susan — backup before any update! Then, worst case, you can restore from the backup if anything goes wrong.
@rossagrant — I think it’s a site by site, use case by use case, issue. I don’t think one or the other approach should be forced. Would be nice if the core functions for blog post updates / edits provided a parameter to set one or the other behaviour.
Some sites may want a snapshot in time, others will want activity stream content that evolves with changes to the underlying content.
I suspect in the majority of cases, edited blog posts after publishing are relatively rare, but can also envisage situations where they are a fundamental part of the site operation — and may also require bumping to the top of the stream.
You also have the issue of minor edits (fixing typos) versus major edits (fundamental content changes) — they may logically need handling in different ways, but are complex to differentiate between in code.
In the short term, the solution is to build or own hooks to give site specific behaviour.
@rossagrant – if you want to keep the bumping of posts on edit, you should be able to hook on to the edit_post or pre_post_update actions, and modify the datetime of the corresponding activity item.
Be careful though, as edit_post is also invoked when comments are added, so you’ll need to catch that condition. [not sure if that’s also the case with pre_post_update]