Search Results for 'buddypress'
-
Search Results
-
Hi all
I want to basically change the way the default activity header is displayed. at the moment for instance we see:
`admin posted an update 45 minutes ago`
what I want to do is this:
`John Smith @admin 45 minutes ago`
I need to add in the REAL NAME of the user and then remove ‘what they did’ – as in this theme I am building, they will only ever post an update
Any ideas on the best way to achieve this? I don’t want to hack core files of course, so is this do-able via functions.php or something? Help me!!

Hello,
Can someone help me? I Have installed buddypress and magic members. everything seems to work except the groups and forums. As I create either, at the last step I am taken to a 500 internal server error. The groups appear on the pages however again when I attempt to access them, I am taken to the same error. When checking the error log, it indicates “[warn] RSA server certificate CommonName (CN) `localserver’ does NOT match server name!?”I have tried reinstall, permalink reset, deactivating all plugins and reactivating one at a time, deleted any plugins that may cause confusion.
Is it htaccess, codex issues? Has anyone experienced this. Thank you for any direction.
Hi ! I’m not very familiar with php…
I would like to format the activity stream input of my users… Instead of one big text area, I would like to put one single line input, and one checkbox choices.
It would look like this:
What is the link to your las movie ? [Text input]
What was your role in this production ? [Checkbox]Then, when the user hits “submit”, the two fields ( text input and checkbox result ) would be combined, with predefined text, as the activity stream post.
The result would look like this:
The user added this video: [result of the text input]
In which he had the role of:
[result of checkboxes]As I said, I don’t really know how to code in php… And I would like to know if my request can be done easily with basic coding….. ?
I’m using the basic buddypress theme. I think it has to be done in the pos-form.php file, in the “whats-new-content” div… but… that’s all…

Thanks for your support !
Martin
— Ok, no answers.
I took a plugin, and messed with it. It… works… almost.I’ve been working to get custom post types working in the BuddyPress activity stream. I found this post by Boone on the Dev blog and it is a pretty elegant solution to adding custom post types to the activity stream http://bpdevel.wordpress.com/2011/08/12/custom-post-types-comments-and-the-activity-stream-in-bp-1-5/
As such, I’m working with wikis and products across multisite (from the Wiki plugin and MarketPress from WPMU DEV), though what the plugins isn’t important to this request, its more about getting custom post types in activity stream, with a customized $activity_action line (see below for specifics about what I want to edit/filter)
To get the Wikis to record to activity I created this and added it to bp-custom.php:
// add wiki post types to the activity stream function activity_publish_wiki_posts($wikiposts) { $wikiposts[] = 'incsub_wiki'; return $wikiposts; } add_filter ( 'bp_blogs_record_post_post_types', 'activity_publish_wiki_posts' );For Products, I have this:
// add product post types to the activity stream function activity_publish_product_posts($productposts) { $productposts[] = 'product'; return $productposts; } add_filter ( 'bp_blogs_record_post_post_types', 'activity_publish_product_posts' );Instead of using two separate snippets you can also streamline the code by putting both post types into the array, like this:
// add product post types to the activity stream function activity_publish_custom_post_types($cpts) { $cpts[] = 'product'; $cpts[] = 'incsub_wiki'; return $cpts; } add_filter ( 'bp_blogs_record_post_post_types', 'activity_publish_custom_post_types' );These are very efficient ways to add custom post types to the activity stream. I tested this several times and it works great. It also ensures that when a post is updated, the activity record gets updated. I see this as essential behavior, especially with the Wikis.
Help Needed
Now, I separated them into two different snippets because I need to get some customization built into them. I want the activity record to read “John updated a wiki article, Cool Stuff, on the site, My Wiki” for the Wikis, and “John added a new product, My Cool Car, to the site, John’s Cars”
I’ve gone through various bits of code, including some older code that predates the 1.5 fix (http://pastebin.com/qrfjCat8 based off of http://pastebin.com/kNqTrRzc) and tried adding a filter to the snippets I post above that would filter $activity_action from BuddyPress core in bp-blogs-function.php. I just can’t seem to get that in there and working properly.
Can someone help me modify those snippets to get the correct line of text in the activity update?
I’m using the latest version of BuddyPress + WP and want to display the person who wrote the post’s extended field on for example single.php.
So I create a couple fields like: Organizations, Region
And I want to show below the author info on the single.php
by author
organization: (from extended profile)
region: (from ex. profile)I added a custombb.php + function and can show >my profile info<, but want to show the extended fields to everyone for the author. Any ideas?
Thanks in advance.
T
