Basically, how do you change the bp_activity_content_body() to excerpts for the activity stream. I used a modified version of this: http://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/
I’ve tried shortening it with PHP, since I can’t find an excerpt template tag, but wasn’t successful:
<div class="activity-inner">
<?php
$chars = 125;
$excerpt = bp_activity_content_body()." ";
$excerpt = substr($excerpt,0,$chars);
$excerpt = substr($excerpt,0,strrpos($excerpt,' '));
$excerpt = $excerpt."...";
return $excerpt;
?>
</div>
Any ideas?
@Pisanojm: writing it now.. as promised!
@bowromir ..very excited to see what you come up with for a cdn for avatars today!
I’ve create a sudir “community” on my sub site of my main WordPress multi blog/site. I uploaded BP plugin on my server in the right folder but I don’t see the activation lable on my control panel.. why?
I’ve create a sudir “community” on as sub site og my main WordPress. multi blog/site. I uploaded BP plugin on my server but I don’t see the activation lable on my control panel.. why?
I would like users to choose from a drop down box their zip code when filling out their profile. How would I go about doing this? Hoping there is a tutorial for adding databases with accompanying fields to BuddyPress Profiles? I have a sql database for zip codes. Thank you,
Jason
How can you tell if there is a javascript issue?
Hi guys,
I’m using the following snippet to display certain xprofile fields in my member-header.php:
`
Occupation:
`
This works fine, but it also shows when the profile field is empty. So I would like to hide them when empty, but I can’t figure out how to do this. I’m pretty sure @DJPaul made a snippet once, but I could not find it again. I imagine it must have been something like:
if xprofile field “Country” has data
Country: United States
else
*blank*
Ofcourse this needs to be proper php (which I can’t write
). If someone has this working, or could help me figure this out, it would be pretty awesome!
@embergermedia
Thanks for the useful tip..
I still would appreciate how I can enforce profile completion before web site (Buddypress) access please?
Thanks! Will check those and let you know!
I have the same problem — latest version of WP and Buddypress — crop tool does not function — only shows top left corner of my avatar image. Is this a bug?
This isn’t a BuddyPress question, but the front page of the dashboard loads up a bunch of external RSS feeds. It’s probably one of those being slow
Thanks a lot. I plan to not add them in via wp, but manually use our inhouse combine script which gzips and minifies at the same time.
Thanks again. Will let you now how it goes.
Hi, I am trying to take the links from the Buddypress nav bar and put those links in my themes nav bar, and then turn off the Buddypress nav bar? Can some one point me in the right direction? Help is much appreciated.
@tim , yes , if you don’t need to use original js/css, then, you don’t need to register them back
`function my_jscss_remover() {
wp_deregister_script( ‘the-handle-name’ );
//and others;
}
add_action( ‘after_setup_theme’, ‘my_jscss_remover’ );`
You can find the “the-handle-name” in the plugin’s files at the line when it load the js/css, it normally use wp_enqueue_script , or wp_enqueue_styles, to load js/css. Sometimes they can also use reqire function, but as long as you find the specific file.js , that’s the line.
When you register your own js, the final parameter “true” means put it in footer. If your js require to run before the page finish loading, you don’t need this “true”.
You can also add like this: if bp_is_page(‘xyz’), then, the js will be loaded only on the page you need.
Please remember that, at this point, your js/css are not minified yet.
@imjscn: that looks great. I would actually be using a custom combine script, that I would place outside of the Wp functions. ie hard code the combine in either header or footer.
I assume then that I would only need to deregister css and js, and not do the enqueue bit. Is this right?
if so, what would the amended snippet look like please?
@gunju2221 thanks for the response. I almost forgot I do have a plugin in place that is supposed to handle logout redirects, when the logout works I do get taken to the homepage. But like I said, sometimes it is the case where it still appears as though I’m logged in because I can see my avatar and username.
I just wish I could find something that just logged in and logged out with ease!
I was playing around with Automattic’s new plugin JetPack, and have discovered a really neat feature!
Head over to my site and hover your mouse over my avatar and check out the groovy Gravatar based popup.
http://moonbooks.net/members/brandon/
As far as I can understand, the topic starter must be the blog ownner or authors. IntenseDebate works in the commenting system only. Is the correct? Does it provide a way to enable users or guests initiate a post?
To see what can be done in an evening with BuddyBuilder check out my site which is still under construction.
I have to be honest, I’ve looked at all of the themes available for BuddyPress, and BuddyBuilder is IMO superior to all of them. The amount of creativity it allows you is staggering. It makes sense to call it a theme framework, because it is really something you can build upon without no coding knowledge whatsoever.
http://moonbooks.net