{"id":11175,"date":"2010-11-12T17:36:30","date_gmt":"2010-11-12T17:36:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/buddypress-profile-progression\/"},"modified":"2013-03-27T09:42:34","modified_gmt":"2013-03-27T09:42:34","slug":"buddypress-profile-progression","status":"publish","type":"plugin","link":"https:\/\/ne.wordpress.org\/plugins\/buddypress-profile-progression\/","author":245975,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.3.2","stable_tag":"trunk","tested":"","requires":"","requires_php":"","requires_plugins":"","header_name":"BuddyPress Profile Progression","header_author":"G.Breant","header_description":"","assets_banners_color":"fefbf0","last_updated":"2013-03-27 09:42:34","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/bit.ly\/gbreant","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/buddypress-profile-progression","header_author_uri":"http:\/\/pencil2d.org","rating":4.4,"author_block_rating":0,"active_installs":20,"downloads":19884,"num_ratings":5,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":"1","3":0,"4":0,"5":"4"},"assets_icons":[],"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"661509","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"667356","resolution":"1","location":"assets"}},"screenshots":{"1":"Stat as displayed on a member profile"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2569,204,435,14683,522],"plugin_category":[36,43],"plugin_contributors":[83793],"plugin_business_model":[],"class_list":["post-11175","plugin","type-plugin","status-publish","hentry","plugin_tags-bar","plugin_tags-buddypress","plugin_tags-profile","plugin_tags-progression","plugin_tags-stats","plugin_category-analytics","plugin_category-customization","plugin_contributors-grosbouff","plugin_committers-grosbouff"],"banners":{"banner":"https:\/\/ps.w.org\/buddypress-profile-progression\/assets\/banner-772x250.jpg?rev=661509","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/buddypress-profile-progression_fefbf0.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/buddypress-profile-progression\/assets\/screenshot-1.jpg?rev=667356","caption":"Stat as displayed on a member profile"}],"raw_content":"<!--section=description-->\n<p>Simple plugin that adds a progress bar on members pages, which displays the percentage of profile completed by a user.<\/p>\n\n<p>By default, each field of the profile, except the base field (Name), worth 1 point.\nIf you have setup 10 fields and that your user has filled 4 fields, his progress bar will be at 40%.<\/p>\n\n<p>If you want to customize how points are calculated (some fields can worth more than others); or add custom functions which must be taken\ninto consideration (eg. you can give points if the user has an avatar), you can do it using hooks.  Check the FAQ !<\/p>\n\n<!--section=installation-->\n<h4>WordPress 3 and above<\/h4>\n\n<ol>\n<li>Check you have WordPress 3.0+<\/li>\n<li>Download the plugin<\/li>\n<li>Unzip and upload to plugins folder<\/li>\n<li>Activate the plugin.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How to embed the profile progression in my template ?<\/dt>\n<dd><p>Use function bppp_progression_block($user_id).  If no $user_id is set, the progression will be shown for the curent displayed user.<\/p><\/dd>\n<dt>I want to change how points are given to a specific profile field<\/dt>\n<dd><p>By default, each profile field worth 1 points.\nYou can act on how profile fields are count by adding a function on the bppp_register_progression_point_XXX hook, where XXX is the label of the progression point item.<\/p>\n\n<p>Example for profile field#2 (changing the value to 5 points) :<\/p>\n\n<blockquote>\n  <p>function edit_progression_point_for_field_2($item){\n        \/\/change the amounts of points for this field\n        $item['points']=5;\n        return $item;\n    }\n  <br \/>\n    add_filter('bppp_register_progression_point_profile-field-2',edit_progression_point_for_field_2);<\/p>\n<\/blockquote>\n\n<ul>\n<li>I want to extend the plugin and count progression points for custom functions...\nYou can register new progression points using function bppp_register_progression_point().<\/li>\n<\/ul>\n\n<p>Example : adding 3 points if the user has an avatar<\/p>\n\n<blockquote>\n  <p>function bppp_custom_function_avatar_register_point(){\n        bppp_register_progression_point(\n                'avatar',                                       \/\/label for this custom point \n                'bppp_custom_function_check_user_has_avatar',   \/\/callback,\n                3                                               \/\/points\n        );\n    }<\/p>\n  \n  <p>function bppp_custom_function_check_user_has_avatar(){\n  <br \/>\n           $user_id = bppp_get_user_id();\n           $has_avatar = ( bp_core_fetch_avatar( array( 'item_id' =&gt; $user_id, 'no_grav' =&gt; true,'html'=&gt; false ) ) != bp_core_avatar_default() );\n  <br \/>\n            return (bool)$has_avatar;\n        }\n  <br \/>\n  <br \/>\n    add_action('bppp_register_progression_points','bppp_custom_function_avatar_register_point');<\/p>\n<\/blockquote><\/dd>\n<dt>How can I customize the look of the plugin ?<\/dt>\n<dd><p>Use CSS rules and\/or copy the files from \/buddypress-profile-progression\/theme to your current theme directory.\nThe plugin will load them first if they exists.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.3.2<\/h4>\n\n<ul>\n<li>POT file<\/li>\n<li>German translation (thanks to Thorsten W.)<\/li>\n<li>Russian translation (thanks to Romik J.)<\/li>\n<\/ul>\n\n<h4>0.3.1<\/h4>\n\n<ul>\n<li>Localization path fix<\/li>\n<li>Spanish translation (thanks to Andr\u00e9s Felipe L.G.)<\/li>\n<\/ul>\n\n<h4>0.2.8<\/h4>\n\n<ul>\n<li>Better code to extend the plugin<\/li>\n<\/ul>\n\n<h4>0.2.7<\/h4>\n\n<ul>\n<li>Added admin option to enable\/disable profile progression auto embed <\/li>\n<\/ul>\n\n<h4>0.2.6<\/h4>\n\n<ul>\n<li>New function bppp_progression_block($user_id) to display a user's profile progression<\/li>\n<li>Various Fixes<\/li>\n<\/ul>\n\n<h4>0.2.5<\/h4>\n\n<ul>\n<li>Fixed bug in bppp_get_title when dispaying other user's profile progression bar.<\/li>\n<\/ul>\n\n<h4>0.2.4<\/h4>\n\n<ul>\n<li>Localization files<\/li>\n<\/ul>\n\n<h4>0.2.3<\/h4>\n\n<ul>\n<li>Plugin's headers fix<\/li>\n<\/ul>\n\n<h4>0.2.1<\/h4>\n\n<ul>\n<li>loader.php for BuddyPress<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>All code reviewed and rewritten for BP1.7.<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>First version<\/li>\n<\/ul>","raw_excerpt":"Simple plugin that adds a progress bar on members pages, which displays the percentage of profile completed by a user.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ne.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/11175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ne.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ne.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ne.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=11175"}],"author":[{"embeddable":true,"href":"https:\/\/ne.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/grosbouff"}],"wp:attachment":[{"href":"https:\/\/ne.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=11175"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ne.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=11175"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ne.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=11175"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ne.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=11175"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ne.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=11175"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ne.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=11175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}