Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • warut
    Participant

    @warut

    @gregfielding @Pisanojm version 1.5 release please let me know if it can’t work.

    for xprofile below field and field color will fix in 1.6


    warut
    Participant

    @warut

    @gregfielding @Pisanojm sorry for not update i just done make new website for part time job.

    i think it working ok now? or any bug in the current version – maybe upload new version (only fix corrected bug) next week.


    warut
    Participant

    @warut

    @Pisanojm Should xprofile data under xprofile field? (like facebook), for bold and color I will check that

    @PJ After testing all bug I think it should work fine on wpmu (my developing site work under wpmu too)

    for group, it should automatic work maybe i do wrong about my name in code.


    warut
    Participant

    @warut

    @Pisanojm here are temp solution. However I see your extend profile not show in badge, I will check that too but in about 3 days (no computer in my new home – -“).

    temp solution:

    — replace —

    if ( get_site_option(‘bp_badge_showthumbimage’) == true ) {
    $avatar_html = bp_core_fetch_avatar( array( ‘item_id’ => $bp->displayed_user->id, ‘type’ => ‘thumb’, ‘alt’ => __( ”, ‘buddypress’ ) ) );
    } else {
    $avatar_html = bp_core_fetch_avatar( array( ‘item_id’ => $bp->displayed_user->id, ‘type’ => ‘full’, ‘alt’ => __( ”, ‘buddypress’ ) ) );
    }
    preg_match_all(“//i”, $avatar_html, $avatar_url);

    — with —

    if ( get_site_option(‘bp_badge_showthumbimage’) == true ) {
    $avatar_url = bp_get_loggedin_user_avatar( ‘html=false&type=thumb’ );
    } else {
    $avatar_url = bp_get_loggedin_user_avatar( ‘html=false&type=full’ );
    }


    and


    search “$avatar_url[2][0]” replace with “$avatar_url”

    for others i will try upload new release next week.


    warut
    Participant

    @warut

    – -” I try to post code in this forum but not work here are link http://pastebin.com/ncyNeyaq


    warut
    Participant

    @warut

    @Pisanojm I will fix path in next release, you can temporary fix error by change file bp-badge-core.php

    replace old function code in file by following code (about line 460):

    hope this help.


    warut
    Participant

    @warut

    @Pisanojm I think multisite is a issue because i only test it on my wpmu environment. I will look at it.


    warut
    Participant

    @warut

    @Pisanojm Thanks for the result, It save badge image in the wrong path it sould be http://yoursite/wp-content/blogs.dir/2/files/badge/3.png

    i will install new wp3.0 if get the same result i will fix it but if not i have to ask more information from you.


    warut
    Participant

    @warut

    @mercime THanks

    @Pisanojm I will try to fix Plugin link in next release (soon), for now you can download from mercime link.

    I test it on my old system that upgrade from wpmu 2.x so I dont know the result or bug that happen with new WP 3.0 installation, Maybe I have to install new WP 3.0 testing system before upload new plugin release.

    So anyone testing it on new system please let me know the result, if no more bug except missing user avatar i will upload next release.


    warut
    Participant

    @warut

    @Pisanojm @PJ @gregfielding

    after testing on WP3.0 (upgrade from wpmu 2.x) only incorrect result is missing user avatar in badge image. I corrected that error already.

    PJ What you mean badge image broken? all of image or only user avatar? Could you send me link to see error result.

    Anyother error? Please let me know, Thanks


    warut
    Participant

    @warut

    @Pisanojm I am testing on WP3.0. Your problem is wrong image path, I will testing on my website and let you know if found error.


    warut
    Participant

    @warut

    Hi all, sorry for disappear from community. I have many thing todo last month (develop my new website, move to my new house and decorate it etc..), if you think this plugin useful please comment bug and request to my blog (http://warutblog.blogspot.com/2010/04/buddypress-badge.html) so i can change it all in next release. thanks

    https://buddypress.org/community/groups/buddypress-badge/ <- can't use i think because name in plugin not match in community, i try to contact andy but can't fix the problem maybe fix when release next version.


    warut
    Participant

    @warut

    @gregfielding which style do you make? badge image not change automatic after change anything in admin dashboard, it will change when user click “update badge” button.

    if you set border color from blue to red, badge still have blue border except you click update badge in your profile page. if new user register he will get badge style that you set in admin panel.

    it make you style your own web badge before let user use it.


    warut
    Participant

    @warut

    version 1.3 released, i think it should be stable now.

    @nahummadrid i will look for group badge in next version but i will busy next month so will look that in June.


    warut
    Participant

    @warut

    Thanks Isddesign that are solution make it work

    however with r-a-y help i will rewrite new load template code so you dont have to copy badge to your template because it is a sub template of profile.

    i will release v1.3 soon


    warut
    Participant

    @warut

    after searching all day ! finally done

    Thanks for your help again r-a-y :)


    warut
    Participant

    @warut

    I found this solution from web and it fix “Warning: Cannot modify header information” error.

    Is this a right solution ? because it hack wp file

    if this a best solution, if will update to v1.3 with upper code.


    for all those that have the error that says: bla bla bla on line 3 on header.php…. here is the solution:

    edit the file wp-includes/pluggable.php

    in line 863 replace:

    if ( $is_IIS ) {

    header(“Refresh: 0;url=$location”);

    } else {

    if ( php_sapi_name() != ‘cgi-fcgi’ )

    status_header($status); // This causes problems on IIS and some FastCGI setups

    header(“Location: $location”, true, $status);

    }

    with this:

    if( !headers_sent() ).

    {

    if ( $is_IIS ) {

    header(“Refresh: 0;url=$location”);

    } else {

    if ( php_sapi_name() != ‘cgi-fcgi’ )

    tatus_header($status); // This causes problems on IIS and some FastCGI setups

    header(“Location: $location”, true, $status);

    }



    warut
    Participant

    @warut

    this code working with child theme (working but show error) but get another error

    @r-a-y is it correct method using locate_template()?

    Warning: Cannot modify header information – headers already sent by (output started at /home/tripsbuz/public_html/wp-content/themes/bp-default/header.php:3) in /home/tripsbuz/public_html/wp-includes/pluggable.php on line 868


    code


    function bp_badge_load_template_filter( $found_template, $templates ) {

    global $bp;

    if ( $bp->current_component != $bp->profile->slug && $bp->current_action !=‘badge’)

    return $found_template;

    locate_template( $templates, true );

    }

    add_filter( ‘bp_located_template’, ‘bp_badge_load_template_filter’, 10, 2 );

    function bp_gifts_load_subtemplate( $template_name ) {

    if ( file_exists(STYLESHEETPATH . ‘/’ . $template_name . ‘.php’)) {

    $located = STYLESHEETPATH . ‘/’ . $template_name . ‘.php’;

    echo STYLESHEETPATH . ‘/’ . $template_name . ‘.php’;

    } else if ( file_exists(TEMPLATEPATH . ‘/’ . $template_name . ‘.php’) ) {

    $located = TEMPLATEPATH . ‘/’ . $template_name . ‘.php’;

    echo TEMPLATEPATH . ‘/’ . $template_name . ‘.php’;

    } else{

    $located = dirname( __FILE__ ) . ‘/templates/’ . $template_name . ‘.php’;

    //echo dirname( __FILE__ ) . ‘/templates/’ . $template_name . ‘.php’;

    }

    include ($located);

    }

    function bp_badge_screen() {

    global $bp;

    do_action( ‘bp_badge_screen’ );

    bp_gifts_load_subtemplate( apply_filters( ‘bp_badge_template_screen’, ‘badge/screen’ ), true );

    }


    warut
    Participant

    @warut

    sorry for that :| it not found badge/screen in child theme

    solution

    option 1. change the way loading template (already coding)

    option 2. copy badge/ from /buddypress-badge/includes/templates/ to your theme directory

    i will update by option 1 but i notice others bug

    anyone get error

    “Warning: Cannot modify header information – headers already sent by (output started at /home/tripsbuz/public_html/wp-content/themes/bp-default/header.php:3) in /home/tripsbuz/public_html/wp-includes/pluggable.php on line 868”

    i get it after change from use STYLESHEETPATH to use locate_template().


    warut
    Participant

    @warut

    do you use version 1.2? i test with child theme “BuddyPress Widget Theme 1.2.1” and it work fine.


    warut
    Participant

    @warut

    use current version 1.2


    warut
    Participant

    @warut

    bug fix!!

    the problem is it cant find home.php in child theme so using locate_template() (as r-a-y recommend) to find template in parent theme is fix this.

    here the code:

    replace line 93-98 from bp-badge-core.php

    with

    locate_template( $templates, true );

    i will update this in next version soon.


    warut
    Participant

    @warut

    bug fix!!

    the problem is it cant find home.php in child theme so using locate_template() (as r-a-y recommend) to find template in parent theme is fix this.

    here the code:

    replace line 93-98 from bp-badge-core.php

    with

    locate_template( $templates, true );

    i will update this in next version soon.


    warut
    Participant

    @warut

    Thanks r-a-y !!!

    the problem is it cant find home.php in child theme so using locate_template() (as r-a-y recommend) to find template in parent theme is fix this.


    warut
    Participant

    @warut

    @Gpo1 do you mean bp gifts plugin?

    you have to go to other member profile and click tab gifts, it will show box to send gifts to that member.

    -bp badge-

    still dont know what wrong with child theme if someone know about theme structure please look thead

    https://buddypress.org/forums/topic/create-subnav-not-working-with-child-theme

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