I doing a custom module to show a message alert to certain users, but I have due with how manage and access to users tables.
I have made a tpl inside in my module and I want to check if the user logged has a value in his profile. Could someone help me with that?
I have some thing like this:
$userid = $current_user->user_id;
some text to show certain user manage with one IF
Would anyone know why I can create a user using an external IP but cannot log with that said user afterwards?
If I create a user locally, I can log in locally, but not from an external connection.
I'm basing my company off of pligg. It's a awesome software, and I'm willing to learn its code-how it works.
My question. I need to create to Custom Users (selectable on registration)
Specal User Group 1- lets call it Rainbow
Special User Group 2-lets call it Glasses.
On register, people will be asked which account they wish to choose.
Rainbow will be able to create groups, post stories, and post in groups.
Glasses will NOT be able to create groups or post stories, but can vote and post comments.
How can I create these special usergroups? They should be selectable in Admin>Users.