• phatman

    (@phatman)


    Hi, when subscribers signup to my blog can they opt in to having their name viewed? I’m thinking some people might have privacy concerns

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author HelgaTheViking

    (@helgatheviking)

    I think that’s a pretty neat idea. I will consider adding it into the plugin itself when I have time. But you can do it it on your own in the meantime. you can also modify the templates to show a username or something instead of actual names. (fairly certain that will work with the block as well since the block is currently only a wrapper for the original shortcode. eventually I will improve that)

    I worked up some code snippets in my issue notes you can take a look:
    https://github.com/helgatheviking/Simple-User-Listing/issues/41

    Basically you will need to add a meta field to your registration and then use that meta field to modify the SUL queries. If you already have a lot of users you might need to modify or suddenly all your directories will be empty? and modify the query to check if the key exists. If you have a lot of users you might want to explore a user taxonomy since meta is inefficient to filter with.

    Running out the door this morning so can’t think through all the details, but hopefully this gets you a starting point.

    Thread Starter phatman

    (@phatman)

    Thanks for your reply, I’ll take a look at the code – this is to go in the template?

    Plugin Author HelgaTheViking

    (@helgatheviking)

    no. It would be best in a custom plugin or added via a plugin like Code Snippets.

    Keep in mind that you should test the code extensively in staging before using in production.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Opt in?’ is closed to new replies.