MemberBadge Mod Support Forum

This is the support forum for the free MemberBadge Module

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 10 Apr 2013

Thank at Lot !!!

FAZING WEB - WEB AGENCY !
Quote · 10 Apr 2013

 Your welcome :-) 

Thank at Lot !!!

 

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 10 Apr 2013

Thanks!

I wish you had the same kind of module to show the gender icon instead of having to show male/female. Is it possible? :)

Quote · 12 Apr 2013

 I made this module because the membership badges are not directly part of the users profile and not available everywhere without writing the same code again and again (don't like put my own functions in the include files of dolphin itself). But male/female is part of the users profile, so there is no need to make a module. Easiest way to show icons instead of text is to find the place you want to change, then echo an image tag based on if its male or female or query the profile array what gender it contains and return an image into the output. I suggest you open a thread in the normal forum, that's easy to implement and somebody will know.

Thanks!

I wish you had the same kind of module to show the gender icon instead of having to show male/female. Is it possible? :)

 

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 12 Apr 2013

Updated instructions

Sample provided in installation.txt called a service function with parameter not being an array, which can lead to a php error.

As per instructions for /templates/base/scripts/BxBaseFunctions.php change

OLD:

$aLvlInfo = BxDolService::call('MemberBadges', 'GetBadge', $iId);

NEW:

$aLvlInfo = BxDolService::call('MemberBadges', 'GetBadge', array($iId));

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 3 Jun 2013

Updated another typo in installation.txt about where dolphin stores the member icons

Also updated path of sample icons in the zip file.

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 5 Jun 2013

Because somebody wanted to add the badges also to comments

Open /templates/base/scripts/BxBaseCmtsView.php and find this line of code

if ($a['cmt_author_id'] && $a['cmt_author_name'])

a) Right above add these lines

$aLvlInfo = BxDolService::call('MemberBadges', 'GetBadge', array($a['cmt_author_id']));
    isset($aLvlInfo[icon]) ? $sMemberBadge = "<a href=\"m/membership/index\"><img src=\"" . $aLvlInfo[icon] . "\" alt=\"" . $aLvlInfo[icon] . "\" width=\"16\" height=\"16\" title=\"" . $aLvlInfo['name'] . "\"></a>" : $sMemberBadge = "";

b) Below change the line (for 7.1.x)

$sAuthor =  '<a href="' . getProfileLink($a['cmt_author_id']) . '" class="cmt-author">' . getNickName($a['cmt_author_id']) . '</a>';


to

$sAuthor =  $sMemberBadge . ' <a href="' . getProfileLink($a['cmt_author_id']) . '" class="cmt-author">' . getNickName($a['cmt_author_id']) . '</a>';


for 7.0.9 change

$sAuthor = '<a href="' . getProfileLink($a['cmt_author_id']) . '" class="cmt-author">' . $a['cmt_author_name'] . '</a>';


to

$sAuthor = $sMemberBadge . ' <a href="' . getProfileLink($a['cmt_author_id']) . '" class="cmt-author">' .  $a['cmt_author_name'] . '</a>';

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 26 Aug 2013

Is there a way to use this on the Forums Module and replace where it says Administrator or Member?

~~Mike ~~ This Signature is missing something :(
Quote · 29 Sep 2014

Yes that should be possible. You only need to find the place in dolphins code where the string output happens. Then use code like shown in the examples for other places from the install docs.

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 6 Oct 2014
 
 
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.