Forum Replies Created
-
In reply to: Profile page link problem
Check out this plugin:
https://wordpress.org/extend/plugins/custom-profile-filters-for-buddypress/Also check out this thread:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/remove-automatic-links-in-profileIn reply to: Add a new Tab“YOUR LINK” is the link you want to set. This is only useful if you want to link to a new page (like your new forum loop) and you don’t want to use AJAX.
However, it seems like you want to use AJAX, so you’ll have to manipulate the AJAX querystring so BuddyPress knows how to load your new custom forum loop. If you go this route, remember to remove the “no-ajax” CSS class from your tab.
The way you name your tab class is important.
In the example above, “forums-newtab”, BP’s AJAX will see “newtab” as the forum’s scope. You’ll then need to manipulate the AJAX querystring to add your forum IDs only when the forum scope is set to “newtab”.
Check out the bp_dtheme_ajax_querystring() in /bp-default/_inc/ajax.php and try to analyze lines 43-50. See how when the scope is set to “personal” that BP changes the `user_id`. You’ll need to do something similar with the `forum_id` parameter when the `scope` is set to “newtab” and when the `object` is set to “forums”.
Once you get a grasp of this, then you can write your filter to do your manipulation.
In reply to: Suggested Posts Plugin (for Multisite Preferably)Adding post tags to activity meta sounds like an idea. Though, you’ll still need to craft a DB query to pull only activity blog items that match your tags.
Re: switch_to_blog() queries – see:
https://mu.wordpress.org/forums/topic/15951In reply to: get buddypress profile field value!The function you’re looking for is:
`bp_get_profile_field_data()`An example use case:
`
$field = bp_get_profile_field_data(
array(
‘field’ => 1, // where 1 is the field_id or it can be the field name
‘user_id’ => bp_displayed_user_id()
)
);echo ‘Schedule link‘;`
In reply to: How to display the User Post Count in Topic.phpIf get_IP() can handle passing a $user_id, then yes it would work when you use that code snippet on a forum topic page.
In reply to: Suggested Posts Plugin (for Multisite Preferably)You want to search sitewide blog posts? That would be taxing!
An efficient method would be to use the activity loop and filter by blog posts and the “search_terms” paramater (which in this case would be your xprofile field).
One problem with this approach is blog posts, by default, are truncated when they are saved as an activity stream item, so your xprofile field might not match the blog post if the post content is cut off.
—
An alternative method is having a sitewide blog that aggregates all your blog post data and passing your search term directly to that blog’s post loop. However, this is the “taxing” method I was speaking of because you’ll have to use the switch_to_blog() function and that uses a significant amount of DB queries.
Not sure. I haven’t used the BP Unread Posts plugin before, but if that plugin modifies the $topic_template global, then it will probably interfere with the code.
In reply to: Add a new Tab@tubruk – Check out bp-themes/bp-default/forums/index.php.
In that file is a hook to add more tabs:
eg. Add this to your theme’s functions.php:
function my_new_fantabulous_forum_tab() { ?> <li id="forums-newttab no-ajax"><a href="YOUR LINK">Another Forum Loop</a></li> <?php } add_action( 'bp_forums_directory_group_types', 'my_new_fantabulous_forum_tab' );If you want your tab to be AJAX-ifed, you’ll need to remove the “no-ajax” CSS class from the tab and write an AJAX hook as well.
Check out the “bp_dtheme_ajax_querystring” filter in /bp-default/_inc/ajax.php. It’s a little complicated, but once you get the jist of it, it makes things a little easier.
There’s a few posts on these forums about it:
http://www.google.com/search?hl=en&hs=6eV&rls=en&channel=suggest&q=%22bp_dtheme_ajax_querystring%22+filter&aq=f&aqi=&aql=&oq=Hopefully that helps somewhat.
In reply to: Hide default login sectionYou can override this by copying /bp-themes/bp-default/sidebar.php into your child theme and making the necessary edits there.
If you haven’t built a child theme, follow this guide:
https://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/bbPress also has built-in functions for adding meta:
`bb_get_postmeta( $id, $key );
bb_update_postmeta( $id, $key, $value );`
You can find these functions in:
bb-includes/functions.bb-meta.phpMake sure bbPress is run first with:
`do_action( ‘bbpress_init’ );`This is definitely a WordPress support thread, but I’ll answer it this time

The author pages uses one of these templates in this order:
https://codex.wordpress.org/Author_Templates#Which_Template_File_is_Used.3FYou should be able to just use the `if ( have_posts() )` conditional in the author template and if a user has no posts, put the content you want to show in the `else` part of the conditional.
In reply to: redirect to activity after login?That works too, though I’m not sure how safe it is to use the $bp_unfiltered_uri global in future BP versions like 1.3.
Here’s the “login_redirect” filter method if interested (found the URL):
In reply to: Life Cycle of a Group?Hmm… this is an interesting idea.
I would propose maybe building a group extension plugin that asks the super admin when the group should be closed.
If the group is closed, remove access to the activity entry form and the group forum form. Off the top of my head, not sure if there are any filters to disable the forms, might need to modify the group templates to do this. Could also remove the group join buttons as well.
In reply to: Switch language pluginWPML free version:
https://wordpress.org/extend/plugins/sitepress-multilingual-cms/In reply to: Buddypress.org Features ThemeFYI, the bp.org theme will never be publicly released.
The frontpage is just made up of a few floating divs and a little bit of positioning for the labels.
In reply to: redirect to activity after login?shanebp’s solution will always redirect any logged in user to the activity directory. You cannot surf anywhere else on the site!

A better method is hooking into the “login_redirect” filter. Brajesh Singh has a plugin that uses this, but I don’t remember the URL off the top of my head.
In reply to: Send Private Static MessageYou should also add some type of nonce verification:
https://codex.wordpress.org/Function_Reference/wp_create_nonceReason is in your function anyone can send a Bzzt even if you’re not logged in if they know the correct URL schema.
In reply to: Send Private Static MessageRight now, your function is coded so it runs whenever the function is called.
You need to create an action listening function at a predetermined slug so your function should run; or if you’re feeling really up to it, use ajax to send the request.Check out any action function in BP for hints.
Here’s such an example to get you started:
https://trac.buddypress.org/browser/tags/1.2.8/bp-xprofile.php#L398In reply to: Switch language pluginIf you read the blog article, it says the plugin is free:
https://wordpress.org/extend/plugins/buddypress-multilingual/In reply to: Forum Reply ButtonIn reply to: How to delete Forum Topic Tags?In the DB, topic tags are stored in BuddyPress under:
– wp_bb_terms
– wp_bb_term_relationships
– wp_bb_term_taxonomyTo be extra cautious, back up these tables before you purge the data.
In reply to: Switch language pluginTry the newest version of BuddyPress Multilingual:
Are you using the Block Activity Types plugin by chance?
Could also be an object caching problem if you have such a plugin activated.
In reply to: Allowing Users to Customize Their Background Image@virtuali- Yeah I have a link to where it’s being developed.
It’s called http://localhost/
@gregfielding- I’ve decided not to add colors because every theme is different and the plugin has to be generic enough to suit each theme; FYI, my own theme is going to expand on this and add colors for text, border color, etc.
In reply to: Allowing Users to Customize Their Background ImageFWIW, I’m working on my own plugin for this, which is coming out when I’ve finished my theme. No time table for release.
Screenie:

Allows you to upload unlike the plugin above and supports groups. What my plugin currently doesn’t have is a default selection of custom backgrounds.
