Social Badges Mod Support (Modzzz)

This is the support forum for the Social Badges mod.

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 29 May 2015

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:
$sWeatherInfo =  BxDolService::call('weather', 'module_block', array($this->aDataEntry['id'], 'location'));

Quote · 31 May 2015

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:
$sWeatherInfo =  BxDolService::call('weather', 'module_block', array($this->aDataEntry['id'], 'location'));

 

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 31 May 2015

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;
Should that be replaced with $iProfileId = ($iProfileId) ? $iProfileId : bx_get('ID'); or need they both their?

I have this to load the code:
$aVars = array (
'socialbadges' => $aBadgeInfo,
); 

Quote · 1 Jun 2015

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
$aBadgeInfo[1] - This gives the tab menu array for the block
$aBadgeInfo[3] - This gives the title 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;
Should that be replaced with $iProfileId = ($iProfileId) ? $iProfileId : bx_get('ID'); or need they both their?

I have this to load the code:
$aVars = array (
'socialbadges' => $aBadgeInfo,
); 

 

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 1 Jun 2015

Ok, thanks. It works, only if you view a other members profile you see your badges. Instead of theirs.

So when you visit your own profile you must see your badges. If you visit another members profile you must see theirs. 

Quote · 1 Jun 2015

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]; 

Quote · 22 Jun 2015

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
Quote · 22 Jun 2015

I send you a pm.

Quote · 22 Jun 2015

 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
Quote · 23 Jun 2015

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.

Runner | Cupido | Photographer | Traveller | + 3 

Quote · 14 Jul 2015

 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.

Runner | Cupido | Photographer | Traveller | + 3 

 

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 15 Jul 2015

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
Quote · 1 Oct 2015

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.

Quote · 27 Sep 2016

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
Quote · 4 Oct 2016

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
Quote · 23 Aug 2018

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
Quote · 25 Aug 2018
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.