By saovry on Sunday, 16 July 2017
Replies 12
Likes 0
Views 805
Votes 0
I have 5 profile types...

1. Register users and High School, they are auto login
2. Bachelor, Master and PHP Degree, I set them to admin approve after they sign up even though they sign up with Facebook or Twitter..

Now my user sign up Register and High School, they can switch to Bachelor, Master and PHP very well..

Could we make them to block after they switch to Bachelor, Master and PHP Degree because these profile need to upload their certificate to approve their levels are bachelor, master and PHD if they really so the admin can active for them. If they are not real so we switch their account to Register user or High Schoo...

Thank you..
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

Do you mean they can switch their profile type to Bachelor, Master and PHP Degree after they registered on your site?
·
Sunday, 16 July 2017 10:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, they really can switch to Bachelor, master and PHd because my registered group and high School group is free to sign up and auto login.

But when they switch from registered group or High School group to bachelor, master and phd could their account deactivate automatic.

User register under bachelor, master and PhD, they need to upload certification status student and their completely degree certificate to improve it. Their documents are correct and then the admin can check and active thier account what they requirement.
·
Sunday, 16 July 2017 17:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Saovry,

Unfortunately at this point of time, it is not possible to block the user account after they have made the switch because they might get locked out from the system altogether.
·
Sunday, 16 July 2017 17:22
·
0 Likes
·
0 Votes
·
0 Comments
·
sir,
Ok, I see...
Is there any way that system can send email into administrator email box and Easysocial notification to administrator inbox...
so the admin can know and check their switching account too...
thank...
·
Sunday, 16 July 2017 22:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi saovry,

Regarding your inquiry, unfortunately, there is no email/system notification/alert to administrator once user has switched to another profile type currently.
Perhaps, you can customize in the file:
.../components/com_easysocial/controllers/profile.php
in the function completeSwitch

You're suggested to backup the file that you want to customize beforehand for precaution
·
Monday, 17 July 2017 13:43
·
0 Likes
·
0 Votes
·
0 Comments
·
I don't how to write the code sir,,,
do you have the code sir so I can copy and past it...
thank you for your helping..
·
Monday, 17 July 2017 15:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi saovry,

This actually fall under customization, as outlined in http://stackideas.com/support
However I can help you a bit on this.
In the file:
.../components/com_easysocial/controllers/profile.php
in the function completeSwitch after line 344 add the code below:

$title = JText::sprintf('Input your email title here', $this->my->getName());
$mailTemplate = 'switch';

// Get a list of super admins on the site.
$usersModel = ES::model('Users');
$admins = $usersModel->getSiteAdmins();

if ($admins) {
foreach ($admins as $admin) {

// Respect admin's email settings
if (!$admin->sendEmail) {
continue;
}

$params['adminName'] = $admin->getName();

$mailer = ES::mailer();
$template = $mailer->getTemplate();

$template->setRecipient($admin->getName(), $admin->email);
$template->setTitle($title);
$template->setTemplate('site/registration/' . $mailTemplate, $params);
$template->setPriority(SOCIAL_MAILER_PRIORITY_IMMEDIATE);

// Try to send out email to the admin now.
$state = $mailer->create($template);
}
}

As here you need to edit out the email title Input your email title here and the mail template name switch (remember the mail template name must be same as the filename that you need to create in the
.../components/com_easysocial/themes/wireframe/emails/registration/
example: https://www.screencast.com/t/e2yGBAMY5vR2
in the switch(eg) file you can customize your email template that used to be sent out to notify admins that user has switched another profile type.

Having said that, if you require us to perform the customization for you, you can always request for a quote from us at https://crm.stackideas.com and select "Customizations" . Our sales person would be glad to send you a quote for the customizations that you have requested.

*You're suggested to backup the file that you want to customize beforehand for precaution and do your customization in the staging/test site.
·
Monday, 17 July 2017 18:40
·
0 Likes
·
0 Votes
·
0 Comments
·
I used to contact with your team about to develop some features on my site but your rate is 50$/hours. It is very expensive for me...I can't hire your team... If you have any special discount for your customer, it is very good because I don't want to hire other person to develop on my site.. I am really would to hire EasySocial Team to develop some features on EasySocial...

One more about this..
Is it correct follow my screen? I just put only my email and I don't change other code...
what is the code in switch.php?
How could we know which user switch their account?
thank you for your helping...
I hope you can help me to completely hack this code...

With the next version will you add this features into EasySocial because this features is good...
·
Tuesday, 18 July 2017 00:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi saovry,

Kindly find my response for your inquiries below:
I used to contact with your team about to develop some features on my site but your rate is 50$/hours. It is very expensive for me...I can't hire your team... If you have any special discount for your customer, it is very good because I don't want to hire other person to develop on my site.. I am really would to hire EasySocial Team to develop some features on EasySocial...

-> Sorry, I'm can't you further on this, as you can contact/discuss with our person in charge from marketing dept

Is it correct follow my screen? I just put only my email and I don't change other code...

-> For the email Input your email title here actually not email address that you need to key in. It is email title/header that will display on mailbox (example: User switching profile type)

what is the code in switch.php?

-> As I mention above, in switch.php is actually will display the whole content in the email, where you can do comparison with other email template content in the folder https://www.screencast.com/t/yWFrg5Nd

How could we know which user switch their account?

-> You can customize the content in the switch.php file to display the user that switched their account.

With the next version will you add this features into EasySocial because this features is good...

-> Perhaps, you can create a ticket under feature request so our developers can keep track the feature request that they can implement in the incoming version

*I'll move this ticket to tutorial category, perhaps there is other user want to share their thought/codes and interested with the code flows
·
Tuesday, 18 July 2017 12:22
·
0 Likes
·
0 Votes
·
0 Comments
·
sir,
what is the base that we can know user complete to switch the profile?
because in verify.php has registration, confirm and update email...
thank
·
Wednesday, 19 July 2017 17:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi saovry,

what is the base that we can know user complete to switch the profile?

-> As user click 'complete profile switching' https://www.screencast.com/t/KqJOeWYM5m it will run function completeSwitch .../components/com_easysocial/controllers/profile.php as I mention earlier.
·
Thursday, 20 July 2017 11:11
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post