Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 74 total)

  • yu
    Participant

    @gerbilo

    @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 :)


    yu
    Participant

    @gerbilo

    Another 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..


    yu
    Participant

    @gerbilo

    damn.. i got the same problem and no answers..


    yu
    Participant

    @gerbilo

    does anybody working on bp-events now? it’s working, but not so good.. for example avatar crop doesn’t work..


    yu
    Participant

    @gerbilo

    For me redirects works fine, but not bp_core_add_message …


    yu
    Participant

    @gerbilo

    Seems like it’s my problems somewhere.. cause i can add /profile/edit/group/1 and get access to right things )


    yu
    Participant

    @gerbilo

    very good question! can somebody assist us here?))


    yu
    Participant

    @gerbilo

    I 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 ) );
    }


    yu
    Participant

    @gerbilo

    fishbowl81, very cool thing ) but can we close voting for guests?


    yu
    Participant

    @gerbilo

    very nice fishbow81 ) hope you’ll paste something for ugly ones ))


    yu
    Participant

    @gerbilo

    aloooohhaaaaa!

    is it so hard to upload some image using your BP MU and post here the results? oO


    yu
    Participant

    @gerbilo

    guys, 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..


    yu
    Participant

    @gerbilo

    chat plugin will be very cool )


    yu
    Participant

    @gerbilo

    guys, 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 before files/2009/01/fog.jpg


    yu
    Participant

    @gerbilo

    maxaud, where did you found WP MU 2.7 official install? oO


    yu
    Participant

    @gerbilo

    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 )


    yu
    Participant

    @gerbilo

    apeatling, did you saw code of this site or know what server it running at?


    yu
    Participant

    @gerbilo

    change 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.


    yu
    Participant

    @gerbilo

    nice work nicola ) could you make it for Vimeo too? )


    yu
    Participant

    @gerbilo

    Sidebar widgets: Design -> Widgets -> Blog-sidebar

    Left side and all other content: wp-content/themes/buddypress-home/single.php


    yu
    Participant

    @gerbilo

    have 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.


    yu
    Participant

    @gerbilo

    hm.. i have and my logout header link is working good oO


    yu
    Participant

    @gerbilo

    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?


    yu
    Participant

    @gerbilo

    just thought that working on MU version of WP is very strange thing after year of using single WP…


    yu
    Participant

    @gerbilo

    oh.. now i get it! thanks man ) i’ll install default theme, so new blogs will use it ))

Viewing 25 replies - 1 through 25 (of 74 total)
Skip to toolbar