This is the support forum for the Social Badges mod.
This is the support forum for the Social Badges mod. Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
How to show the member badges in a custom block on a members profile page? It's a block with all kinds of information of a member. For example this code you once given to show the weather info block in the location module: |
The following should work : bx_import('BxDolService'); $aBadgeInfo = BxDolService::call('item', 'profile_block', array(0));
In modules\modzzz\item\classes\BxItemModule.php Find : function serviceProfileBlock ($iProfileId, $bAjax=false) { Just below add : $iProfileId = ($iProfileId) ? $iProfileId : bx_get('ID'); How to show the member badges in a custom block on a members profile page? It's a block with all kinds of information of a member. For example this code you once given to show the weather info block in the location module:
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
I tried to add it, but it shows only the word "Array". Below the function serviceProfileBlock ($iProfileId, $bAjax=false) { there was already $iProfileId = (int)$iProfileId; |
I believe I had discussed this with you previously for another module. The service call returns an array. $aBadgeInfo[0] - This gives the content of the block Regarding the change, do not replace anything, just put the code where I indicated. I tried to add it, but it shows only the word "Array". Below the function serviceProfileBlock ($iProfileId, $bAjax=false) { there was already $iProfileId = (int)$iProfileId;
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
Ok, thanks. It works, only if you view a other members profile you see your badges. Instead of theirs. |
How to change that it loads the social badges of the profile your viewing? Now it shows always your badges, also if you visit someone else his/her profile. bx_import('BxDolService'); $aBadgeInfo = BxDolService::call('item', 'profile_block', array(0)); echo $aBadgeInfo[0]; |
I would have to look at how the customizations you are making are implemented on the site. I see no logical reason why the suggested code I provided to you is not working. Also for specific customizations for your site that are unrelated to the general functionality of the module, please send that information via PM so other users of the mod who are following the support forum are not confused by such questions. How to change that it loads the social badges of the profile your viewing? Now it shows always your badges, also if you visit someone else his/her profile. bx_import('BxDolService'); $aBadgeInfo = BxDolService::call('item', 'profile_block', array(0)); echo $aBadgeInfo[0];
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
I send you a pm. |
Received, I logged into your site and resolved the issue. I send you a pm.
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
You can set the items per page in admin. But how to achieve that if you a member has more than that amount he sees for example the count of all the other badges. For example if I set the amount per page on 4. |
The block has the regular pagination mechanism so the member can click through all the entries. You can set the items per page in admin. But how to achieve that if you a member has more than that amount he sees for example the count of all the other badges. For example if I set the amount per page on 4.
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
Social Badges module is now compatible with Dolphin 7.2 . For those upgrading from Dolphin 7.1, please check the upgrade folder for instructions. Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
If you visit someone's profile and you see the social badges block, it would be nice to see which badges you have in common.
Is there an easy way to check if there are badges in common with you and that member and give that mutual badges an extra class? That way the mutual badges can have a bold title or background color, so they stick out. |
The module already has this functionality. On the profile page, the block has two tabs : (a) My Badges (b) Shared Badges. If you visit someone's profile and you see the social badges block, it would be nice to see which badges you have in common.
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
The module has been updated. Please re-upload the modules/modzzz/item/templates folder. Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
The following files are also updated : modules/modzzz/item/classes/BxItemDb.php modules/modzzz/item/classes/BxItemModule.php Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |