• Luca

    (@lucaperugini)


    Hi,
    you’ve forgotten to remove the old version 0.2.5 definition on loader.php file

    <?php
    /*
    Plugin Name: BuddyPress Profile Progression
    Plugin URI: http://wordpress.org/extend/plugins/buddypress-profile-progression
    Description: Simple plugin that adds a progress bar in the member profile, which displays the percentage of datas filled.
    Author: G.Breant
    Version: 0.2.5

    On file buddypress-profile-progression.php there’s another plugin definition

    <?php
    /*
    Plugin Name: BuddyPress Profile Progression
    Plugin URI: http://wordpress.org/extend/plugins/buddypress-profile-progression
    Description: Simple plugin that adds a progress bar in the member profile, which displays the percentage of datas filled.
    Author: G.Breant
    Version: 0.2.8

    Which is correct?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author grosbouff

    (@grosbouff)

    thanks, please update the plugin to 0.2.9 !

    Thread Starter Luca

    (@lucaperugini)

    Well done, but
    it will be better with this on bppp-member.php 🙂

    <?php
     if(bp_loggedin_user_id()==bp_current_user_id()):
     ?>
    <div class="bppp-stat">
    
            <span class="bppp-stat-title">
                <?php bppp_title();?>
            </span>
    
            <div class="bppp-stat-block">
                    <div class="bppp-bar">
                        <div class="bppp-bar-mask" style="width:<?php echo (int)(100-bppp_get_user_progression_percent(bp_loggedin_user_id()));?>%"></div>
                    </div>
    
            </div>
            <span class="bppp-stat-percent"><?php echo bppp_get_user_progression_percent(bp_loggedin_user_id());?>%</span>
    </div>
    <?php
    endif;
     ?>
    Ben

    (@themarketingcompass)

    I’ve just upgraded the plugin and below the profile progression bar on all user profiles, there’s an error message:

    Warning: Missing argument 1 for bppp_get_user_progression_percent(), called in /home/(my cpanel login)/public_html/wp-content/plugins/buddypress-profile-progression/theme/bppp-member.php on line 13 and defined in /home/(my cpanel login)/public_html/wp-content/plugins/buddypress-profile-progression/bppp-template.php on line 160

    Any idea how to fix this?

    Ben

    (@themarketingcompass)

    FIXED! (you may want to add this in the next update)

    the word ‘true’ in bold on line 13 below was missing from the bppp-member.php file!

    <div class="bppp-stat">
    
            <span class="bppp-stat-title">
                <?php bppp_title();?>
            </span>
    
            <div class="bppp-stat-block">
                    <div class="bppp-bar">
                        <div class="bppp-bar-mask" style="width:<?php echo (int)(100-bppp_get_user_progression_percent());?>%"></div>
                    </div>
    
            </div>
            <span class="bppp-stat-percent"><?php echo bppp_get_user_progression_percent(<strong>true</strong>);?>%</span>
    </div>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Plugin Author grosbouff

    (@grosbouff)

    Thanks, fixed in 0.3.0 !

    Ben

    (@themarketingcompass)

    Thanks @grosbouff

    I’ve now noticed something else…

    All members profile’s now have the profile progress bar filled (even if they have completed 0%, 13%, 80% etc).

    The percentage is correct, but the bar doesn’t correlate! 🙂

    Thread Starter Luca

    (@lucaperugini)

    to get rid of… you can use my snippet embedded on previous comment 🙂

    ...
     echo (int)(100-bppp_get_user_progression_percent(bp_loggedin_user_id()))...
    ...

    grosbouff thanks for the plugin, You should see this page where Imath made some improvements to your code, it would be awesome if You or someone else with the knowledges could add this feautres.

    Here You can see the code he uses

    P.S. Is in french but nothing than Chrome can’t solve

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘0.2.5 and 0.2.8 version on same plugin?’ is closed to new replies.