hide user visibility with Additional owner types.

Accueil Forums Premium add-ons support hide user visibility with Additional owner types.

8 sujets de 1 à 8 (sur un total de 8)
  • Auteur
    Messages
  • #758107
    Simoned
    Participant

    hi master,
    I purchased the Additional owner types extension.
    the problem is that when I create a page that many users can access, each user can see who everyone else is. I need to hide all the names of individual users who have access to the same page.
    can you help me?

    #758643
    Vincent Mimoun-Prat
    Admin bbPress

    Hi,

    Do you assign each user or do you set the owner as « Any registered user »?

    #758730
    Simoned
    Participant

    I do not understand.
    when I register a new user I assign him username, email, password and subscriber role.

    #758819
    Vincent Mimoun-Prat
    Admin bbPress

    Can you make a screenshot of the problem and explain a bit more? I don’t think we understood each other.

    #759448
    Simoned
    Participant

    i attached image
    thanks

    Pièces jointes:
    #762500
    Thomas Lartaud
    Admin bbPress

    Hi,

    You can do that by editing the templates. See our template system documentation for that (requires a bit of HTML/PHP knowledge).
    Basically, you can just comment out or remove the block showing the users.

    I hope that helps,
    Regards.

    #773926
    Simoned
    Participant

    can you email me how to remove the block?
    I don’t know how to do it
    thank you
    Simone

    #780315
    Thomas Lartaud
    Admin bbPress

    Hi,

    Sorry for the delay.

    Here you can find a little “how-to” made for you.

    Annotation-2020-09-09-150203
    – Open Chrome dev tools (CTRL+SHIFT+I)
    – Click the selector tool (1. on screen)
    – Click a username (2. on screen)
    – Look at the HTML debug output to know from which template is this part of code loaded (3. on screen).
    In your case, for private pages (you’ll also need to do this for private files etc.), the path of the file you need to work with is wp-content/plugins/src/php/core-addons/post-owner/templates/post-owner-link-usr.template.php
    – Copy the mentioned file above to /wp-content/customer-area/templates/post-owner-link-usr.template.php (wp-content/customer-area, NOT wp-content/plugins/customer-area)
    – Edit the file you just copied
    – Bump the digit number at the top of the file, and remove all thee stuff you don’t want.
    In your case, you’ll need to replace the whole file content by this (because this file is just used to display usernames):

    <?php /**
     * Template version: 1.0.1
     * -= 1.0.1 =-
     * – Remove usernames so that other users don't see it
     *
     * -= 1.0.0 =-
     * – Initial version
     *
     */ ?>

    – Now you’ll need to repeat the same process for each area where you want to remove this, for instance, for the area shown on the screen below:

    Annotation-2020-09-09-150204

    I hope that helps.

    Regards.

    Pièces jointes:
8 sujets de 1 à 8 (sur un total de 8)
  • Vous devez être connecté pour répondre à ce sujet.