• Logged in users can edit the form. How to forbid editing so that they cannot change, for example, the name and email?
    I use BuddyPress and if the logged in user changes at least one letter in the email, then the avatar becomes the default (although when you click on the nickname, you get to the user’s personal page).

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter paulpi

    (@paulpi)

    Plugin Author Marcel Pol

    (@mpol)

    Hi Paul,

    You cannot keep everyone from doing things wrong. Even considering people changing their own information would be wrong 🙂

    The next vesrion has a class added to the form, so you could target the fields of logged-in users and have them with CSS become invisible by adding display; none; to those elements.

    If you dare to use it from git (not many changes yet), you can find it here:
    https://gitlab.com/toomanybicycles/gwolle-gb

    Most fields, like email and name have a custom class, you will need to check which classes your form has.

    Can you manage?
    If not, can you post the address of your website?

    Thread Starter paulpi

    (@paulpi)

    Thanks for the quick response. I am making a website on a local server.
    I have never programmed, so I do not understand where exactly to write for the classdisplay; none;

    Thread Starter paulpi

    (@paulpi)

    watched the video on youtube, added to css

    div.gwolle_gb_5fc2a06c1557c6b40f73b1f2cede220d {
    	display: none;
    }
    div.gwolle_gb_e48689fee6ea0cda90bfed04362b68a7 {
    	display: none;
    }

    but now those who are not logged in do not see “name” and “email”

    Thread Starter paulpi

    (@paulpi)

    I thought a little, probably the class should refer to another class?(I don’t know how to describe it correctly)

    form.gwolle-gb-logged-in div.gwolle_gb_5fc2a06c1557c6b40f73b1f2cede220d {
    	display: none;
    }
    form.gwolle-gb-logged-in div.gwolle_gb_e48689fee6ea0cda90bfed04362b68a7 {
    	display: none;
    }
    • This reply was modified 3 years, 10 months ago by paulpi.
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Form after login’ is closed to new replies.