You are not logged in.
Pages: 1
Hi all,
I've created a new profile, named it "Customer Profile" and set it as the default profile with simplified interface. Everything looks great and works fine.
Now I'd like to prevent logged in users from changing their "Location" under Settings -> Tab "Main" -> Location.
How can I accomplish this?
Thanks-
Holger
Offline
There is no setting that can accomplish that.
You can change the code though.
Search for user.class.php andfind and comment 2 lines of code that echo that element in the form like this:
/* echo "<tr class='tab_bg_1'><td>" . $LANG['common'][15] . " :</td><td colspan='3'>";
Dropdown::show('Location', array('value' => $this->fields["locations_id"],
'entity' => $entities));
*/
Offline
Thanks for the reply. Just did so but the field is still being displayed.
What went wrong?
Offline
Thanks for the reply. Just did so but the field is still being displayed.
What went wrong?
This bit of code displays the location field in the form:
echo "<tr class='tab_bg_1'><td>" . $LANG['common'][15] . " :</td><td colspan='3'>";
Dropdown::show('Location', array('value' => $this->fields["locations_id"],
'entity' => $entities));
echo "</td></tr>";
If you cannot comment that out of your user.class.php, then you are in the wrong line of business.
Offline
Pages: 1