ElkArte Community

Extending Elk => Addons => Topic started by: emanuele on June 27, 2014, 05:54:16 pm

Title: [ADDON] Multiple badges
Post by: emanuele on June 27, 2014, 05:54:16 pm
Multiple badges V0.1.0

License
o This ElkArte Addon is subject to the terms of the BSD "3-clause" license. You can obtain a copy of the License at http://opensource.org/licenses/BSD-3-Clause

Introduction
Badges for everybody!! :D
Do you want to show all the badges/member groups on your forum?
Here it is the addon for you. :P

Development
Future development:
Known issues:

Repository / Download



Change log

  • 0.0.1 - Initial release
  • 0.1.0 - Added the option to decide which badges show, fixed some bugs
Title: Re: [ADDON] Multiple badges
Post by: Burke Knight on June 05, 2015, 03:56:54 pm
Installed, and tried it.
Have few issues:

1. What I select to show, once save, shows the wrong ones checked. I have tried this several times, and it keeps unchecking what I select, and checking ones I did not. EDIT: Just keep hitting save, and it keeps on changing.

2. When does get one correct, it shows the same badge 2 times on main admin account.
Title: Re: [ADDON] Multiple badges
Post by: emanuele on June 05, 2015, 05:07:43 pm
		foreach ($mb_membergroups as $id => $val)
{
Code: (replace with) [Select]
		foreach ($mb_membergroups as $val)
{
$id = $val['id'];

I'll fix the repo... whenever I find the time to create the zip (/me is messing with java... brain overheating... danger!)
Title: Re: [ADDON] Multiple badges
Post by: Burke Knight on June 05, 2015, 07:01:49 pm
Um.... Which file is that in?
I searched all the files from the zip and not in them, so I have no idea. :P LOL
Title: Re: [ADDON] Multiple badges
Post by: emanuele on June 06, 2015, 08:07:26 am
Fixed the code to search above that was slightly broken.
The file is MultiBadges.class.php.
Title: Re: [ADDON] Multiple badges
Post by: Burke Knight on June 06, 2015, 09:05:32 am
That fixed the checking the boxes issue. :)

Now, why does it show the second group 2 times for main admin account, I wonder....
Title: Re: [ADDON] Multiple badges
Post by: emanuele on June 06, 2015, 10:52:20 am
I can't replicate, unless I didn't got what you meant, so... screenshot and detailed explanation of the settings would be handy.
Title: Re: [ADDON] Multiple badges
Post by: txcas on February 21, 2016, 08:29:13 pm
How do you configure this addon?  I installed it, but can't find it anywhere in the admin center.
Title: Re: [ADDON] Multiple badges
Post by: Burke Knight on February 21, 2016, 10:17:39 pm
Quote from: txcas – How do you configure this addon?  I installed it, but can't find it anywhere in the admin center.


Under the membergroup settings.
You'll see it, underneath the Groups allowed to change membergroups.

However, I just installed this onto my site, and not seeing any other badges.
Title: Re: [ADDON] Multiple badges
Post by: txcas on February 21, 2016, 10:26:01 pm
Quote from: Burke Knight –
Quote from: txcas – How do you configure this addon?  I installed it, but can't find it anywhere in the admin center.


Under the membergroup settings.
You'll see it, underneath the Groups allowed to change membergroups.

However, I just installed this onto my site, and not seeing any other badges.
Thanks, I found it but like in your case, no badges are being displayed.
Title: Re: [ADDON] Multiple badges
Post by: emanuele on February 23, 2016, 05:39:07 am
/me keeps this one unread, next week I'll check it out... :(
Title: Re: [ADDON] Multiple badges
Post by: txcas on February 24, 2016, 09:51:58 pm
Well, I am not sure if it took a few minutes to generate the badges, but now I see them,
Title: Re: [ADDON] Multiple badges
Post by: emanuele on March 01, 2016, 03:54:38 am
And keeping it unread I missed your answer...
So does it work as expected?
Title: Re: [ADDON] Multiple badges
Post by: txcas on March 03, 2016, 01:28:14 pm
Yes it is working for me.
Title: Re: [ADDON] Multiple badges
Post by: emanuele on March 03, 2016, 03:10:56 pm
Better for me! LOL
Title: Re: [ADDON] Multiple badges
Post by: Mattmax on August 22, 2018, 10:49:30 am
I get an error when I'm under admin->user->settings. It show me:
(http://fs1.directupload.net/images/180822/tstuhjuo.jpg) (http://www.directupload.net)
QuoteMissing argument 1 for template_inline_permissions(), called in /var/www/elkarte/themes/default/MultiBadges.template.php on line 48 and defined

and in that line and among there are this codes:
Quotetemplate_inline_permissions();

   echo '
                  </dd>';

   $modSettings['permission_enable_deny'] = $old_setting;
   $txt['avatar_select_permission'] = $old_txt;
}

So how can I fix it?