News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Change a permission

Started by hcfwesker, March 05, 2011, 05:22:37 PM

Previous topic - Next topic

hcfwesker

I'd like to mimic a permission to another.  One of the custom profile field options for SMF2

AdminCP > Features & Opyions > custome Profile Fields > "Edit Field"

Users/admin permissions:

The 1st option, "Users can see this field, owners can edit it"  I want to copy to another, the 3rd on the list.

I need the 3rd option, "Users cannot see this field, owner and admins can edit it"  to mimic the permissions from the first option. So users can actually see it.

I don't know how to make that change.  No users on the site, including myself as admin, can see these selected custom profile fields anymore.

Kratty256

The options for the "Privacy" setting on a profile field should be:

       
  • Users can see this field; owner can edit it
  • Users can see this field; only admins can edit it
  • Users cannot see this field; only owners and admins can edit it.
  • This field is viewable only to admins.
You're missing all the options except option 1, correct?

You also said that no one can see the field - is it set active?

hcfwesker

#2
What I want to do, is change the permissions for option #3 so Users CAN see, rather than cannot see.  that will solve my dilemna much easier, I think.

hcfwesker

Bump, anyone know where to start?

hcfwesker

I found this line in  Themes/default/Admin.template.php


// Cannot show this on the topic
if (curType == "textarea" || privStatus >= 2)


I changed the 2 to a 3, and that got the box to stop auto unchecking the "Show on Posts" box when selecting option #3.  But they still won't display in posts.  There's another code coming from another file.  Someone has to know :(

Advertisement: