{"id":12123,"date":"2011-02-13T16:54:22","date_gmt":"2011-02-13T16:54:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/bainternet-user-ranks\/"},"modified":"2016-12-13T13:52:05","modified_gmt":"2016-12-13T13:52:05","slug":"bainternet-user-ranks","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/bainternet-user-ranks\/","author":7512325,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.5.2","stable_tag":"1.5.2","tested":"4.7.0","requires":"2.9.2","requires_php":"","requires_plugins":"","header_name":"BaInternet User Ranks","header_author":"bainternet","header_description":"","assets_banners_color":"","last_updated":"2016-12-13 13:52:05","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/en.bainternet.info\/donations","header_plugin_uri":"http:\/\/www.bainternet.info","header_author_uri":"http:\/\/en.bainternet.info","rating":0,"author_block_rating":0,"active_installs":10,"downloads":7697,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2.1","0.2.2","1.0.0","1.1.0","1.2.0","1.3.0","1.3.1","1.3.2","1.4.0","1.5.0","1.5.1","1.5.2"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"642429","resolution":"1","location":"assets","width":752,"height":731}},"screenshots":{"1":"admin panel of Bainternet User Ranks"}},"plugin_section":[],"plugin_tags":[10844,10843,10845,10841,10842],"plugin_category":[],"plugin_contributors":[79936,77997],"plugin_business_model":[],"class_list":["post-12123","plugin","type-plugin","status-publish","hentry","plugin_tags-forum-like-ranking","plugin_tags-post-and-comments-ranking","plugin_tags-user-karma","plugin_tags-user-ranking","plugin_tags-user-titles","plugin_contributors-adsbycb","plugin_contributors-bainternet","plugin_committers-bainternet"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/bainternet-user-ranks.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/bainternet-user-ranks\/assets\/screenshot-1.jpg?rev=642429","caption":"admin panel of Bainternet User Ranks"}],"raw_content":"<!--section=description-->\n<p>Create and display user rank titles based on there post count, comment count or both.<\/p>\n\n<p>This is aimed at multi Author,User blogs which you can create rank levels in your blog based on author post count, comment count or both. Its ranking system similar to a forum.<\/p>\n\n<p><strong>features<\/strong><\/p>\n\n<ul>\n<li>Add as many Titles as you want and the minimum point to reach that Title.<\/li>\n<li>Set the point count for each post.<\/li>\n<li>Set the point count for each comment.<\/li>\n<li>Display Title, points or both.<\/li>\n<li>Insert automagicaly.(NEW)<\/li>\n<li>User rank ShortCode.(NEW)<\/li>\n<li>Get top Ranked ShortCode.(NEW)<\/li>\n<li>Get top Ranked Template Tag.(NEW)<\/li>\n<\/ul>\n\n<p>any feedback or suggestions are welcome.<\/p>\n\n<p>check out my <a href=\"http:\/\/en.bainternet.info\/category\/plugins\">other plugins<\/a><\/p>\n\n<!--section=installation-->\n<p>Simple steps:<\/p>\n\n<ol>\n<li><p>Extract the zip file and just drop the contents in the wp-content\/plugins\/ directory of your WordPress installation.<\/p><\/li>\n<li><p>Then activate the Plugin from Plugins page.<\/p><\/li>\n<li><p>Go to Plugins option panel named \"Bainternet User Ranks\" under options.<\/p><\/li>\n<li><p>Setup your Titles and Points levels and maybe other settings.<\/p><\/li>\n<li><p>save!.<\/p><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How Can I Use the ShorCode?<\/dt>\n<dd><p>Simple just add <code>[user_rank]<\/code> in your post content and if you want to get the rank of another user (default is post author) then just set user_id to the id of the user who's rank you want eg: <code>[user_rank user_id=\"23\"]<\/code><\/p><\/dd>\n<dt>How Can I Use the Top ranked ShorCode?<\/dt>\n<dd><p>Once again very simple just add <code>[user_rank_top]<\/code> which will get you a list of top 5 ranked users, you can change the number , item wrapper and container eg: <code>[user_rank_top number=\"20\" container=\"ol\" item_wrapper=\"li\"]<\/code><\/p><\/dd>\n<dt>How Can I Style, Design the shortcodes output?<\/dt>\n<dd><p>Both Shortcodes use a simple templating system which takes tokens and replaces them with the user data eg:\n    [user_rank]<\/p>\n\n\n        [user-firstname] [user-lastname]\n        <strong>[title]<\/strong>\n        [points]\n    \n\n<pre><code>[\/user_rank]\n<\/code><\/pre>\n\n<p>Just make sure you enter the template after the shortcode tag and add aclosing tag.<\/p><\/dd>\n<dt>Nice, what are the shortcode template tokens that I can Use?<\/dt>\n<dd><ul>\n<li>[title] - prints the user's rank title<\/li>\n<li>[points] - prints the user's points<\/li>\n<li>[user_login] - prints the user's login<\/li>\n<li>[user_nicename] - prints the user's nicename<\/li>\n<li>[user_email] - prints the user's email<\/li>\n<li>[user_url] - prints the user's URL<\/li>\n<li>[user_firstname] - prints the user's First name<\/li>\n<li>[user_lastname] - prints the user's last name<\/li>\n<li>[user_description] - prints the user's description\/bio<\/li>\n<\/ul><\/dd>\n<dt>How Can I Use the Top ranked template tag?<\/dt>\n<dd>get_top_users($number);\n    foreach($top_users as $u){\n        $user_info = get_userdata($u['user_id']);\n        echo \"User: \".$user_info-&gt;user_login. \" Points: \" . $u['points]. \" Title: \". $u['title']. \"<br \/>\";\n    }?&gt;<\/dd>\n<dt>Nothing is happening, whats Wrong?<\/dt>\n<dd><p>Nothing you just need to call the plugin in your theme file something like this:<\/p>\n\n<pre><code>&lt;?php $baur_plugin = new baur_Plugin();\n$user_rank = $baur_plugin-&gt;ba_get_user_points($user_id);\necho \"Points: \" . $user_rank;?&gt;\n<\/code><\/pre>\n\n<p><em>And you must set $user_id<\/em><\/p><\/dd>\n<dt>Why do i get just the points?<\/dt>\n<dd><p>You need to pass another parameter to the 'ba_get_user_points' function (Boolean , default false) to get an array that contains both Title and Points.\n    ba_get_user_points($user_id,true);\n    echo \"title: \". $user_rank['title'] . \"Points: \" . $user_rank['points'];?&gt;\n<em>Once again you must set $user_id<\/em><\/p><\/dd>\n<dt>Hot can i get top ranked users?<\/dt>\n<dd><p>use <code>get_top_users<\/code> method with the number of top users you want , for example to get the top 5 use:\n    get_top_users(5);\n    foreach ($top_users as $user){\n        $user_info = get_userdata($user['user_id']);\n        echo $user_info-&gt;user_login . \" title: \". $user_rank['title'] . \"Points: \" . $user_rank['points'];\n    }\n    ?&gt;<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>1.5.2 Fixed <code>Missing argument 2 for wpdb::prepare(),<\/code><\/p>\n\n<p>1.5.1 Fixed activation error.<\/p>\n\n<p>1.5.0 Fixed Warring after comment deletion.<\/p>\n\n<p>1.4.0 Fixed minor bug<\/p>\n\n<p>1.3.1 Fixed unexpected output on activation (due to incorrect encoding).<\/p>\n\n<p>1.3.0 added Top ranked template tag, shortcodes, auto insert for posts.<\/p>\n\n<p>1.2.0 Added top ranked user feature.<\/p>\n\n<p>1.1.0 Fixed unexpected output on activation (due to incorrect encoding).<\/p>\n\n<p>1.0.0 Big changes: the plugin now saves the user rank and title in the usermeta table so it makes less calls and calculations on the fly making it much faster.<\/p>\n\n<p>0.2.2 quick bug fix plugin brake on user comment count.<\/p>\n\n<p>0.2.1 remake from the ground up.<\/p>\n\n<p>0.1 inital release.<\/p>","raw_excerpt":"Create and display user rank titles based on there post count, comment count or both.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/12123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=12123"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bainternet"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=12123"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=12123"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=12123"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=12123"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=12123"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=12123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}