It’s probably best to take a multi-faceted approach.
Instead of changing the way that content appears on the way out (by the time you call the global $activities_template, the content is already written in the db), you might consider manipulating it on the way in. Less overhead that way. For group related stuff like forum posts, open up bp-groups.php and search for uses of the function groups_record_activity. You’ll notice that the arguments for this function are almost always filtered. For instance, in the function groups_new_group_forum_post, you can modify the way that the activity action is displayed – you might do something like this in your theme’s functions.php:
function my_format_activity_action($activity_action, $post_id, $post_text, &$topic) {
$action = $post_text->topic_poster_name . " said:";
return $action;
}
add_filter( 'groups_activity_new_forum_topic_action', 'my_format_activity_action', 1, 4 );
That’s a lot easier than after-the-fact string manipulation, both for you as a developer and for the system that has to do the processing. Fish around in the files for other places where apply_filters appears – you can build functions like the one I lay out above for any filtered output.
As far as moving things around and putting them in different orders, you’ll definitely want to look at the activity/entry.php template file. That’s where all the markup appears, so any changes (like ordering and appearance) should happen there and in CSS.
And if you just want to change the wording here and there, you might also consider using language files (https://codex.buddypress.org/how-to-guides/customizing-labels-messages-and-urls/). It’s a relatively future-proof way to do customization.
got around to posting up what i did – but on the forum area only.
http://etivite.com/groups/buddypress/forum/topic/quick-tip-adding-markitup-to-group-forum-textareas#post-20
(though i’m using markitup – but i’m sure anything can be used)
I just tagged 0.4 final.
Thank you very much to everyone who helped with the testing, translations, and bug reports.
Not much has changed since the beta.
* Changing the component slug is now officially supported
* Do not show my group links or create link form unless user is a group member
As soon as the repo updates you can upgrade from your dashboard. If you have a ton of links, make sure you let the page load all the way after upgrading since every link needs to be updated to populate a new field.
Only two languages are up to date for 0.4. Those would be FR and NL. If you are interested in updating or adding a translation, you can download the .pot file here…
https://plugins.trac.wordpress.org/export/229924/buddypress-links/tags/0.4/languages/buddypress-links.pot
Enjoy the 0.4 branch!
Hi,
I just tested the modified plugin on a classical WP install 2.9.2 with a bp-default child theme. Seems to work just fine.
Thanks !
What exactly is a component?
Am I just supposed to start reading the function reference and some code and try to understand?
Most articles I found there seem mere stubs that only make sense when you know what you’re looking at.
When I started with WordPress I kind of rolled into it and looked some things up when I needed them etc.
For WordPress there are 2 excellent guides to get you started developing plugins and themes.
With BuddyPress I have absolutely no sense about what it does, how it works from the inside and where to start.
Aren’t there any books or tutorials to get started developing in an easy way?
I’ve been trying this plugin with wpmu 2.9.2 and 1.2.3 and it works great…until you try extending the logic to buddypress generated pages. That may be my fault, not understanding the correct formatting for the conditional tags.
Can someone suggest the correct logic to use for, say: “siteurl/groups/mygroupname”?
Cheers
I had this same error and realized it was a conflict with a plugin that I had installed – the BuddyPress Template Pack. I’d been trying to use the Thematic theme, and had the plugin installed for that (however, could not get the BuddyPress menu to show up in this theme). When I switched over to BuddyMatic, it all went white until I deleted that Template Pack plugin. After that, however, the page has been littered with errors that I have not resolved. But it does resolve the empty page.
5986155Inactive
@ jordashtalon
https://buddypress.org/forums/topic/extending-buddypress-rate-forum-posts-to-rate-blog-posts
We are currently chatting with the developer about extending this plugin to work with post comments, but it should be possible to get him to add a setting to do what you want as well.
Would you like to contribute to the debate going on at the above thread?
the index won’t paginate and it will only display public and/or if that certain user is a member of other private/hidden groups – at least that is what the logic is suppose to do
This is probably best reported as bug on http://trac.buddypress.org — i18n issues with search results.
If disabling the Activity Streams component causes problems with any aspect of BuddyPress on an “out of the box” install (using the default BuddyPress theme), please report as a bug on https://trac.buddypress.org/ using your username and password from this site. Thanks
For Cureuphoria (http://cureuphoria.com) I disabled the default admin bar and decided to design a custom one that would fit the design better.
define('BP_DISABLE_ADMIN_BAR', true);
When you’re not logged in, the bar displays the login fields, and a link to create an account if you don’t have one.
When you are logged in, the bar displays the member avatar, and links such as: My profile – My messages – My friends – My groups – Settings – Logout.
Now, I’d like to have the notifications system in that bar, like for the default bar I desabled.
First question is: can I do that?
Second question is: if I can, how?
Here’s my code:
<div id="curemates-bar">
<?php if ( is_user_logged_in() ) : //logged in ?>
<?php do_action( 'bp_before_sidebar_me' ) ?>
<a href="<?php echo bp_loggedin_user_domain() ?>"><?php bp_loggedin_user_avatar( 'type=thumb&width=30&height=30' ) ?></a>
<ul id="user-menu">
<li><a href="<?php echo bp_loggedin_user_domain() ?>/profile/edit/">My profile</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/messages/">My messages</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/groups/">My groups</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/friends/">My friends</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/photos/">My photos</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/settings/">Settings</a></li>
<li>| <a id="logout" href="<?php echo wp_logout_url( get_option('home') ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a></li>
</ul>
<?php do_action( 'bp_sidebar_me' ) ?>
<?php do_action( 'bp_after_sidebar_me' ) ?>
<?php if ( function_exists( 'bp_message_get_notices' ) ) : ?>
<?php bp_message_get_notices(); /* Site wide notices to all users */ ?>
<?php endif; ?>
<?php else : //not logged in ?>
...stuff...
<?php endif; ?>
</div><!-- end "curemates-bar" -->
Now, I now that the code I am looking for is in the “bp-core-adminbar.php” file, and I’ve made a few attempts to extract what needed to re-create the notifications menu, but obviously without success.
Can anybody help me out with this?
Thanks.
Hi,
Thanks for this plugin.
It seems to work very good on my site, exept for the homepage. Maybe I missed something but the title of my homepage is “Blog”. I’ve checked WordPress options (site name, and site title, it’s not “Blog”) and I don’t find homepage option in BuddyPress SEO.
Any idea ?
Excuse my english.
Cordialement,
Guillaume Coulon.
you have to create a group and then, from the group admin, you can handle the forum.
you must also ensure that you activate forum in bp general options
Hello,
not sure if this is a problem on our forum installation.. anyhow
we have over 51 groups with forums, however only 21 are listed on the index page..
and there is not paginating either..
best would be to have them all listed on single page
is there any setting i should look at?
I have installed the buddypress, but my page is not showing the forum section. I also initial the forum setting in buddypress. anybody know why i don’t have a forum page? Thanks
“I just had a revelation tonight that it would be relatively trivial to extend this to topic merge and topic split, completing the “holy trinity” of forum manipulation.”
WOW!
Hi there
When i try to connect to a root buddypress blog with Windows Live Writer (WLW), I get this error:
A successful connection was made to your account however the server
reported that you do not currently have an active blog. Please ensure
that your account with this provider is current before proceeding.
I have xml-rpc, atom, etc switched on
How can I resolve this? Its really frustrating….
It’s a known issue that @username works but @user-name does not. Not sure if that’s the problem you’re having.
I mentioned it here: https://buddypress.org/forums/topic/allowing-users-to-type-in-uppercase-letters-for-the-username#post-47196
Well it’s hard for me not to be a little smug about this Ning stuff. I moved 2 of my Ning networks over to BP with cut and paste technology and in the process have lost most of my members. However it forced me to concentrate more on the content side of my site and not the whiz bang features and I needed to do that. Ning was and is a joke and people who thought they were gonna be able to stay and suck off the Tet of Ning for free were sadly misguided.
This is a great opportunity for the user base of BuddyPress to grow but to do so there HAS to be some real discussion and debate about CORE functionality. If we are to scoop up some of those disgruntled former Ning Network Creators then the base feature set should be comparable with what they could get with Ning.
hey @peterranselmo awesome plugin, but i have a little issue; I{m running WPMu 2.9.2/ BuddyPress 1.2.3, with BP Groups Documents 0.3.2, and the widgets Recent / Popular Group Documents doesnt display any result . thanks in advance
And I am waiting for Boone to write a plugin that will build my BP community, fill it with thousands of members that will click on hundreds of ads which in turn will make me billonaire.
Sorry for the OT, but I really think Boone can do it…
UPDATE: getting back on topic, wpmu.org will start building a Ning Migration Tool: http://wpmu.org/ning-to-buddypress-wordpress-migration-plugin/
Will it be free or not ? Place your bets !
@etiviti (rich!) can you add this to your forums extras plugin? *hey whats that a shooting star?, wish*
i had a similar issue, this is how i fixed it.
htaccess on root directory:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
permalink structure:
/index.php/%postname%/
then i had to make sure that apache has the mod_rewrite module enabled.
running wordpress 2.9.2, apache 2.2.11 and php 5