ISSUE SUMMARY:
I need to configure JomSocial profile so that a user, once his/her account is created, isn't allowed to change the email on that account.
My reason is that this client's network will be private to their company (1000+ employees) and the way to limit access is to require everyone who registers to verify a @my-domain.com email address. (JomSocial already does this.) The problem is, if a user changes their email address to @other-domain.com then we have a security hole. (When his/her employment is terminated, we want to look up his/her account by their assigned company email address and remove it.)
Please point me to the file(s) needing to be configured.
Thank you!
STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER
Hi, Rob.
Copy this file:
ROOT/components/com_community/templates/jomsocial/layouts/profile/edit.php
to:
ROOT/templates/your-template/html/com_community/layouts/profile (if you don't have those folders - feel free to create them)
Then edit file change in line 159 this;
<input type="text" class="joms-input" id="jsemail" name="jsemail"
<input type="text" readOnly="readOnly" class="joms-input" id="jsemail" name="jsemail"
Hi Michal,
Thank you very much for the very clear and smart instructions. I followed them, but the change isn't making it through to my page (/index.php?option=com_community&view=profile&task=edit&Itemid=110). I tried (at Administration||Components||JomSocial||Configuration||Templates) changing the template from jomsocial to your-template, no joy. There's probably something basic that I'm missing to get the new file to override the old. Would you have any suggestions?
(Adding readOnly="readOnly" to the email INPUT directly in the jomsocial template, does work, but is unsatisfactory because it won't be preserved through updates.)
Thank you,
Rob
HI, Rob.
This hack works 100% I tested it on my site. Did you created override file?
You don't need to change any settings in JomSocial.
Please provide us working administrator credentials.
I can't login to your site.
Please, edit your first post and add credentials to corresponding fields.
I need to take a look.
HI, Rob.
But you didn't followed my instructions... I don't see overrides here:
i.imgur.com/GJ9ndP8.png
Please, read my above post again and follow it.
Hi Michal,
You're right, I did not do that. (I had created another path: ROOT/templates/your-template/html/com_community/layouts/profile/edit.php).
OK, I got rid of that and now the override is at ROOT/templates/socialize/html/com_community/layouts/profile/edit.php
imgur.com/6O131en
Still, my /index.php/profile/edit#detailSet allows me to edit the email address. There must still be something else I'm doing incorrectly.
Thank you for your time and attention,
Rob
Hi, Rob.
Nope... you missed one folder. Take closer look:
i.imgur.com/PamOVZq.png
It is: ROOT/templates/socialize/html/com_community/profile/edit.php
It should be: ROOT/templates/socialize/html/com_community/layouts/profile/edit.php