Forum Replies Created
-
In reply to: How to query for groups
@Travel-Junkie, @DavidRLabbe – thank you very much guys for your support! It’s working like a charm, but i got one tiny question.. why it’s so hard to get group information based on group id? Cause for members we got several functions with pretty easy instructions
In reply to: How to query for groupsAnother question for groups query experts.
—
How to extract for example group name, permalink, status, description from group ID ?
Something like bp_has_groups ( “group_id = ‘.$ID.’ “) ? Or maybe bp_get_group_name ( $ID) ?
Cause this two functions doesn’t work for me..damn.. i got the same problem and no answers..
does anybody working on bp-events now? it’s working, but not so good.. for example avatar crop doesn’t work..
For me redirects works fine, but not bp_core_add_message …
In reply to: User admin editSeems like it’s my problems somewhere.. cause i can add /profile/edit/group/1 and get access to right things )
In reply to: Popular members with followers?very good question! can somebody assist us here?))
In reply to: author avatar inside the postI use such code for post author url for BP:
<a href='/members/<?php the_author(); ?>'><?php the_author(); ?></a>But i can’t get post authors username used in BP, not default login name from WP..
For example i have WP the_author = admin, but BP post_author = yu. My question is how to get bp_post_author name?
I got this func, but can’t get it work for me:
function bp_post_author( $echo = true ) {
global $posts_template;
if ( $echo )
echo apply_filters( 'bp_post_author', bp_core_get_userlink( $posts_template->post->post_author ) );
else
return apply_filters( 'bp_post_author', bp_core_get_userlink( $posts_template->post->post_author ) );
}In reply to: User karma & ratingfishbowl81, very cool thing ) but can we close voting for guests?
In reply to: User karma & ratingvery nice fishbow81 ) hope you’ll paste something for ugly ones ))
In reply to: WP MU 2.6.5 uploaded images path goes wrongaloooohhaaaaa!
is it so hard to upload some image using your BP MU and post here the results? oO
In reply to: WP MU 2.6.5 uploaded images path goes wrongguys, could anyone answer to me on such question – is there any problems with image upload -> thumbnail view (wrong paths for uploaded images in Media Library) on your side? cause maybe it’s BPs bug..
In reply to: Next BPDEV plugin? Here your proposalchat plugin will be very cool )
In reply to: WP MU 2.6.5 uploaded images path goes wrongguys, i guess this problem may have something to do with .htaccess Rewrite rules. so i got only one rule for uploaded files –
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L], but it doesn’t work well.for example:
http://www.tf2.lv/files/2009/01/fog.jpg– this is path WP gave me after i uploaded the picture (not working one).http://www.tf2.lv/wp-content/blogs.dir/1/files/2009/01/fog.jpg– this is actual path to this image (working one).and this is path that works in browser url like actual path –
http://tf2.lv/wp-content/blogs.php?file=/2009/01/fog.jpg(also working one)maybe somebody heard something about this problem?
ps. seems like uploading process can’t figured it out $username blog path (
wp-content/blogs.dir/1) to add beforefiles/2009/01/fog.jpg…In reply to: Differences between BP & MU 2.6.5 & MU 2.7maxaud, where did you found WP MU 2.7 official install? oO
In reply to: Is it possible to get only the avatar-url ?oh.. nice to heard that you got what you want finally )) but it would be better if you paste you editions here for the next generations )
In reply to: What are these tables?apeatling, did you saw code of this site or know what server it running at?
In reply to: News Controlchange function in bp-blogs/bp-blogs-classes.php ->
function get_latest_posts( $blog_id = null, $limit = 5 ) {
global $wpdb, $bp;
if ( $blog_id )
$blog_sql = $wpdb->prepare( " AND p.blog_id = %d", $blog_id );
$post_ids = $wpdb->get_results( $wpdb->prepare( "SELECT DISTINCT p.post_id, p.blog_id FROM " . $bp['blogs']['table_name_blog_posts'] . " p LEFT JOIN {$wpdb->base_prefix}blogs b ON p.blog_id = b.blog_id WHERE b.public = 1 AND b.deleted = 0 AND b.archived = '0' AND b.spam = 0 AND b.mature = 0 $blog_sql ORDER BY p.date_created DESC LIMIT $limit" ) );
for ( $i = 0; $i < count($post_ids); $i++ ) {
$posts[$i] = BP_Blogs_Post::fetch_post_content($post_ids[$i]);
}
return $posts;
}to
function get_latest_posts( $blog_id = null, $limit = 5 ) {
global $wpdb, $bp;
if ( $blog_id )
$blog_sql = $wpdb->prepare( " AND p.blog_id = %d", $blog_id );
$post_ids = $wpdb->get_results( $wpdb->prepare( "SELECT DISTINCT p.post_id, p.blog_id FROM " . $bp['blogs']['table_name_blog_posts'] . " p LEFT JOIN {$wpdb->base_prefix}blogs b ON p.blog_id = 1 WHERE b.public = 1 AND b.deleted = 0 AND b.archived = '0' AND b.spam = 0 AND b.mature = 0 $blog_sql ORDER BY p.date_created DESC LIMIT $limit" ) );
for ( $i = 0; $i < count($post_ids); $i++ ) {
$posts[$i] = BP_Blogs_Post::fetch_post_content($post_ids[$i]);
}
return $posts;
}Note this part
ON p.blog_id = 1– this is blog ID you want to see on your front page & news.In reply to: BPDEV-YOUTUBE to add youtube videosnice work nicola ) could you make it for Vimeo too? )
In reply to: News ControlSidebar widgets: Design -> Widgets -> Blog-sidebar
Left side and all other content: wp-content/themes/buddypress-home/single.php
In reply to: bp_core_avatar_v1 returns local path to avatarhave you seen your blog options (/wp-admin/wpmu-blogs.php?action=editblog&id=1 – for main blog, for example)? there are some ‘Upload url’ options to check out.
In reply to: Log Out Redirect Errorhm.. i have and my logout header link is working good oO
In reply to: What are these tables?Trent, i’m not sure, but one query for one table with thousand users is allways better that thousands queries to thousand tables with one user in it, isn’t it?
In reply to: Blank screen in new created blogjust thought that working on MU version of WP is very strange thing after year of using single WP…
In reply to: Blank screen in new created blogoh.. now i get it! thanks man ) i’ll install default theme, so new blogs will use it ))