AB Member Categories not showing up on Edit Profile page

  • Problem
  • Updated 3 years ago
I just installed the AB Member Categories module and I can't get the categories to show up on the edit profile page. What could I be doing wrong? I have EE 2.2.2 and just installed the module today. I'm hoping to get some assistance on this as soon as possible. Thanks.
Photo of csimentalC

csimental

  • 4 Posts
  • 0 Likes

Posted 3 years ago

  • 1
Photo of csimentalC

csimental

  • 4 Posts
  • 0 Likes
Also when I go to Extensions, the Member Categories extension is disabled and I cannot enable it. When I try to install it, it seems like it's not an option. See attached. Is this how it's supposed to be?
Photo of Bjørn Børresen

Bjørn Børresen, Company Admin

  • 1127 Posts
  • 39 Likes
Hi,

the way this is supposed to work is that the extension should be installed automatically when you install the module. Apparently this isn't working for you, I have no idea why it isn't but will do some testing.

In the meantime you can open the ext.member_categories.php file and just delete this line:


public $required_by = array('module');


.. then uninstall/install.
Photo of csimentalC

csimental

  • 4 Posts
  • 0 Likes
Thanks that worked. Now I have some new issues:
1. The dropdown does not show up on the register page, only the edit page. Any way to make it work on the reg page? That's where we need it most, actually.
2. Because of the position of the field (last one on the page) the dropdown doesn't show entirely and only shows 2 lines (see attached). It's workable, but I know our users are going to find it cumbersome as it is.
Thanks.
Photo of csimentalC

csimental

  • 4 Posts
  • 0 Likes
This screenshot is probably better.
Photo of Bjørn Børresen

Bjørn Børresen, Company Admin

  • 1127 Posts
  • 39 Likes
As for no 1) you could use my categories addon to generate the dropdown. Here's an example of such a dropdown on a member registration form:




<select name="team_id" id="team_select" value="" class="select_item">
<option value="0">Choose your team</option>
{exp:categories category_group_id="1"}
<option style="background-image:url(/images/input_bg.png) 0 0 no-repeat;" value="{category_id}">{category_name}</option>
{/exp:categories}
</select>



Note you'll have to change the select name="team_id" to the member field name .. the example above uses Simple Registration so if you're using the standard member registration it'll be named m_field_id_1 or something like that.

As for no 2) this is known limitation in the jQuery library called "chosen" which we're using for those dropdowns. This will mostly affect people who only have one custom member field, like you .. I'm looking for a fix though. Anyway, if you wish you can disable the use of chosen in in config/member_categories.php:



$config['use_chosen_for_dropdowns'] = TRUE;


Set that to false and it will use the default system dropdowns. Not so flashy but at least more usable in your case.
Photo of dsgreen

dsgreen

  • 6 Posts
  • 0 Likes
On the edit profile or register member pages I'm not getting a drop down at all, just a blank text field. Does this add-on require the categories add-on above in order to work?
Photo of Bjørn Børresen

Bjørn Børresen, Company Admin

  • 1127 Posts
  • 39 Likes
Hi dsgreen,

did you link the member fields to the category groups?

As for Register Member that's a current FR and will be part of the next release, but it should show up on the Edit Profile page.
Photo of dsgreen

dsgreen

  • 6 Posts
  • 0 Likes
Hi Bjørn,

I followed the installation instructions, enabled the Member Categories under add-ons, added a new member field, went back to Member Categories and selected a category group in the drop down.

Then, going to the edit profile link for a member, I see the custom field, but it's just a blank text field. I'm not sure where things went wrong. I also tried editing the config above, changing the chosen setting to FALSE. And I just tried selecting a different category group in the drop down.

Thanks,
Doug
Photo of Bjørn Børresen

Bjørn Børresen, Company Admin

  • 1127 Posts
  • 39 Likes
Ok, can you doublecheck that the extension is enabled / installed (and not just the module, see Addons -> Extensions). Also, which version of EE are you running?
Photo of dsgreen

dsgreen

  • 6 Posts
  • 0 Likes
Well, that might be the problem. The extension seems to be disabled, and when I click the link to enable it, it doesn't do anything...

I'm using v2.2.2

Photo of dsgreen

dsgreen

  • 6 Posts
  • 0 Likes
Okay, I tried commenting out the line per above, and I was able to install the extension.

// public $required_by = array('module');

The resulting display in the edit profile area is funky, but at least this is some progress.
Photo of dsgreen

dsgreen

  • 6 Posts
  • 0 Likes
Just to follow up, this is working, sort-of. The display looks like the attached image, with the bold items selected. There doesn't seem to be a way to unselect items.

I double-checked the 'chosen' setting:
$config['use_chosen_for_dropdowns'] = TRUE;

Photo of Bjørn Børresen

Bjørn Børresen, Company Admin

  • 1127 Posts
  • 39 Likes
Hmm, and you have copied the themes/third_party/member_categories folder into the themes/third_party/ folder on your install? Any JS erros at all?
Photo of dsgreen

dsgreen

  • 6 Posts
  • 0 Likes
Hi Bjørn, no JS errors that I noticed. Yes, the folder under "themes" is present.

Just to make sure, I installed this on a separate site, and experienced the same display issue. The second site is a completely separate EE installation, but it is on the same server. Maybe it's something to do with the server setup.
Photo of Bjørn Børresen

Bjørn Børresen, Company Admin

  • 1127 Posts
  • 39 Likes
That is so strange .. if you navigate to Addons -> Extensions can you verify that extensions are enabled + the Member Categories extension is enabled?

Also, are you using a cp theme different from the default one?
Photo of Bjørn Børresen

Bjørn Børresen, Company Admin

  • 1127 Posts
  • 39 Likes
I got a report today that this happens if you have the "QuickSave" extension installed. So if you're experiencing this issue and have QuickSave enabled try disabling it and see if that helps.
Photo of Edwin van Nuil

Edwin van Nuil

  • 4 Posts
  • 0 Likes
I got the Module working, but when I register a memeber )or edit) I don't get the fancy select + search box, but only a list where I get select multiple entries with the cmd key.

I tried to remove and reinstall the moduel, but after that the extension was disabled and I could enable it, had to update the database for that. Same result as before, no fancy select.
Photo of Bjørn Børresen

Bjørn Børresen, Company Admin

  • 1127 Posts
  • 39 Likes
hi, have a look in the config file, you can enable that option there.
Photo of jonhorton

jonhorton

  • 2 Posts
  • 0 Likes
Hi Bjorn,

Just wanted to chime in and say that Chosen was disabled in the config by default. Wasn't sure if this was intentional since the screenshots show the chosen dropdowns.

If this is intentional, it would definitely help to add some instructions to the docs page!

Other than that, everything is working on my end — Thanks for the great Add-On!
Photo of Bjørn Børresen

Bjørn Børresen, Company Admin

  • 1127 Posts
  • 39 Likes
Yeah you're right John that should be included in the instructions. I decided to disable chosen by default a while back since it has a bug where the dropdown will be cut off if if you have it at the bottom of the edit profile page. I'll look into if this is fixed for the next release, as I'd like to have it enabled to default.
Photo of Bjørn Børresen

Bjørn Børresen, Company Admin

  • 1127 Posts
  • 39 Likes
For now I have added a note to the docs: http://www.addonbakery.com/docs/membe...

Thanks for the heads up:)