Questions about Members & Groups

Permalink 1 user found helpful
Hi Guys,

I have a couple of questions about the Members & Groups. Hopefully one of you who knows more than I do can help me out with it.

1 - When a member sends a private message to another member, my client wants the members first & last name to appear in the email that gets sent, letting them know there is a private message there.

2 - Can I change the superadmin to another member who is already an admin. This member is interracting more with the members and posting in the discussions etc. & driving the site more so it makes more sense for her to be super-admin and have the additional functionality that goes with it.

3 - Date of birth seems to be set at 1-1-1970 for most members when the register. Is this a default set somewhere & can it be changed to blank so they have to put their correct DOB in.

Thats it. Hope you guys can help.

Cheers,
Steve

PassionForCreative
 
PassionForCreative replied on at Permalink Reply
PassionForCreative
Also want another question. The site owner has lots of members on the site with lots of groups set up to narrow this down. Is there a way to show all members in no groups similar to how the file manager handles images in no sets?
PassionForCreative replied on at Permalink Reply
PassionForCreative
Can anyone help me with this?
GregJoyce replied on at Permalink Reply
GregJoyce
Hi Stephen, here's an answer on the birthday question:

The birthdate attribute isn't part of a c5 default install according to what I have locally, but you should be able to fix that from user attributes and make it a requirement for registration. To do that you can go User Attributes, edit that attribute and the checkbox is under 'registration.'

I am looking for a workaround on reassigning superusers.
GregJoyce replied on at Permalink Reply
GregJoyce
Here is a way to hand off your site to a different user. You will log in as whoever your superadmin is.

If you want userB to be your new superuser, you can change that user's email address to something fake like, not_userB@ddress, then change the superadmin's email address to that user's email address. Then they can do a 'reset password' on that acct. You could also use a throwaway email acct etc.
I don't really see any way to completely reassign a user's identity to another user if that's what you're asking.
In some sense, kind of like the 'root' account on your own computer, it's probably best to only use that account for its super powers and do the day-to-day stuff with a more restricted account.
GregJoyce replied on at Permalink Reply
GregJoyce
The user search does not have any way to look up 'no group'
GregJoyce replied on at Permalink Reply
GregJoyce
Sending the message by username is c5's default behavior and there aren't any configuration options.

If you want to override the functionality of core/mail/private_message.php

$ui = UserInfo::getByUserName($msgAuthor);
if($ui instanceof UserInfo) {
   $first_name = $ui->getAttribute('first_name');
}


should give you the right info to put in place of $msgAuthor. You will want to copy that file out of the core concrete and into your own tree before modifying it of course.
PassionForCreative replied on at Permalink Reply
PassionForCreative
Hi Greg,

Thanks for the advice. I have a funny problem now. I've changed the date attribute from a simple text input to a date only input but when I do this I lose all my options from my State/Province dropdown & the form won't complete without this piece of info.

If I leave the date input as text, when admin tries to change an already input date which is 1/1/1970 for some reason to the correct one it won't update. If I change to date only admin can update the dates but I lose the State/Province dropdown.http://www.fairwayfriends.ie is the site if you can help shed some light on it for me.

//////// Update /////////
Got this working by deactivating the attribute & creating a new one with the exact same properties but a slightly different name.
PassionForCreative replied on at Permalink Reply
PassionForCreative
Where do I paste this code. I'm more front end than hard-core coder so can't really read PHP to know exactly where to insert it.

In your post you say core/mail/… do you mean concrete/mail/… & then I'll just add the new file to the root mail/ folder?