Hi all,
I had the need to have mutiple user groups. This means that one user can be in one ore more groups. So i had my first try with module development i must say good job to the programmers for creating such a flexibel programming enviroment i’am sure we will create many more modules in the near future (real e-shop is on his way…)
Please note that its still beta and i’am not responsible for any data loss or other things 😊
How to use it? 1.
{exp:custom_groups}
Group {custom_groupid}: {custom_name}
{/exp:custom_groups}
2.
{exp:custom_groups}
{if custom_groupid == 1}
Group {custom_groupid}: {custom_name}
{/if}
{if custom_groupid == 2}
Group {custom_groupid}: {custom_name}
{/if}
{/exp:custom_groups}
If you have any remarks or suggestions please let me know and i’ll see what i can do.
Greetings Kevin,
Ps: thanks to cocoaholic for showing me the way 😊
Hey Kevin, this sounds really interesting, thanks for releasing it. I was wondering if you could explain a little more about it - are these just arbitrary groups users can be placed into for the sake of the front end templates, or do they tie into the existing member group system in any way? Thanks again!
Hi there goeminnek,
Looks like you are getting quite busy at creating modules for EE!! 😊
Some really nice stuff coming out from you so thanks for this.
I was just wondering with this module what the {custom_name} part in the code does?
I tried the code [1] that you placed above after first of all creating a group and adding my user account to it but it just spat out :
Group 1: {custom_name}
so basically just wondering what the {custom_name} part is for?
Also it would be great if you could get this somehow hooked in with the user groups. Not sure how you would go about doing that but some really neat things could be done if this was made to happen.
Good luck with everything and thanks for all the great work that you are putting in for EE. Look forward to updates on this and also your excellent sounding e-shop module. I am licking my lips now just thinking about that one!! 😊
Best wishes,
Mark
Hiya,
All I did was created a couple of groups using the module and then added myself to those groups then on a template I placed your code from above :
{exp:custom_groups}
Group {custom_groupid}: {custom_name}
{/exp:custom_groups}
When I visited the page that this code was in all that appears is :
Group 1: {custom_name}
I then tried with the second piece of code that you showed as well but this comes up with the same thing.
What is the {custom_name} part for anyway though?
Best wishes,
Mark
hi guys,
sorry for the delay but i have been extremly bussy with multiple projects. Mark: the custom_name just displays the name of the custom group you created.
Textdriven: what do you mean by logged_in_custom_groupid? Can you explain some more what you need/ want to do?
Grtz,
ps: maybe ill modify this module so that it uses the normal groups. But i have to find some time first!
ps2: ill try to awnser faster next time 😊
Hiya,
Thanks for the reply. I think I have found what was wrong now. I think it should actually be :
{exp:custom_groups}
Group {custom_groupid}: {custom_groupname}
{/exp:custom_groups}
I think that it should be {custom_groupname} instead of {custom_name}? That was why it was spitting out the code I was seeing.
This is a great module and whilst I can see a few things that could make it even better such as mixing it in with the existing users and groups this is a fantastic piece of work and I am very very grateful for this.
Best wishes,
Mark
This is AWESOME!! Exactly what I needed!!
Is it possible to use the logged_in_group_id with this tag? I need it because it doesn’t cache when doing full template caching. So something like this…{exp:custom_groups} {if logged_in_custom_groupid == 1} content {/if} {/exp:custom_groups}
Yes, that works, I’ve got it going right now, except your code must be like this:
{exp:custom_groups}
{if custom_groupid == 1}
content
{/if}
{/exp:custom_groups}
I have about 15 different “groups” amongst my website, and I need different people to access SAEF control panels, in many cases, more than 1 per person, so I needed multiple groups. In my instance it looks like this for an Admin Menu I have generate accordingly:
{exp:custom_groups}
{if custom_groupid == 1}
content
{/if}
{if custom_groupid == 2}
content
{/if}
{if custom_groupid == 3}
content
{/if}
{if custom_groupid == 4}
content
{/if}
{/exp:custom_groups}
The only thing I would note about this module is: 1) I get an error on every page: Undefined variable: paginate 2) Might just be IE7, but the page to create new groups sends the Name Field way off to the right (hard to notice for first time), which brings me to my next point: 3) It allows you to generate NAMELESS groups. If you leave that Name field empty, it generates a new group anyway, without any warning, etc.
Otherwise… it still works! 😛
Awesome module goeminnek! Can I somehow dynamically add a member to a custom group? I guess it may require a plugin? Basically I’d like to be able to have a form where a Member can enter the name of the group, and be added automatically on form submission.
What do you think goeminnek?
hmm oeps… ill have a look and try to update when i get trough my work 😊
It says it’s on line 379. I’ve just commented it out for now… seems to have gotten rid of the error… I don’t have enough members on the site I’m developing yet to know if the pagination will work or not though.
Thanks 😊
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.