• I went through and added a block for each of 8 users I want to display. When I edit the page, each block reverts to showing all users and I have to re-edit the settings for all 8 blocks. Is something not being read correctly on page edit?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Paul Bearne

    (@pbearne)

    Yes that is not right
    Can you send a screenshot of the settings?
    Is this 8 separate blocks or a block with 8 users?

    Thread Starter Randy Walker

    (@randy)

    This is 8 separate blocks of 1 user each. There is no commonality between the users that would let me put all 8 in one block.

    Screenshot at this link

    This keeps resetting to this value (and it’s not even showing the ID entry field) instead of saving the user I’ve selected from the list.

    This happens for all 8 blocks.

    Plugin Author Paul Bearne

    (@pbearne)

    I just did a test with 2 blocks on the same page and it worked

    Would like to understand what is wrong

    Paul

    Plugin Author Paul Bearne

    (@pbearne)

    Ok I see the problem lets fix that

    Plugin Author Paul Bearne

    (@pbearne)

    If you just need 8 avatars in one block you can use the white list in the adv section

    Plugin Author Paul Bearne

    (@pbearne)

    Pushed new version found the bug

    Thank you for reporting it

    Paul

    Thread Starter Randy Walker

    (@randy)

    I’ll play around with the whitelist and eagerly await your fix as well ??

    Thread Starter Randy Walker

    (@randy)

    I updated the plugin then went back to edit the page. That doesn’t seem to have solved the issue.

    Looking at the code view when I edit it:

    <!-- wp:author-avatars/show-avatar {"alignment":"center","display":{"show_name":true,"show_biography":true},"user_id":"21"} /-->

    After save and thehen I go back to edit, what is showing is instead:

    <!-- wp:author-avatars/show-avatar {"email":"21","alignment":"center","display":{"show_name":true,"show_biography":true}} /-->

    Looks like there’s some confusion around user_id vs email values.

    Further, I don’t see a whitelist option in the advanced section of the block configuration. The only options are bio_length and Additional CSS Classes.

    Thread Starter Randy Walker

    (@randy)

    @pbearne any other ideas?

    Plugin Author Paul Bearne

    (@pbearne)

    that is strange

    the advance section only loads for Select by Role(s) and if Bio selected

    I just did some testing and all these worked

    <!– wp:author-avatars/show-avatar {“email”:”[email protected]”,”user_id”:”-1″} /–>

    <!– wp:author-avatars/show-avatar {“user_id”:”1″} /–>

    <!– wp:author-avatars/show-avatar {“email”:”1″,”display”:{“show_name”:true,”show_email”:true},”user_id”:”-1″} /–>

    <!– wp:author-avatars/show-avatar {“alignment”:”center”,”display”:{“show_biography”:true,”show_name”:true},”user_id”:”1″} /–>

    <!– wp:author-avatars/show-avatar {“alignment”:”center”} /–>

    Can you try on a new page?

    Hey @pbearne

    First, thanks for your plugin!

    I noticed a bug that might be related to this one. I added one block to my site’s homepage and I set it to select users by role and I selected admin and editor roles. It seems this option is unset once we re-open the page to edit it and I need to set it up again otherwise it’ll return an error that no user id was specified. It will keep the other settings like link, sort by, sort order, size and corner size. It’s just the users selection that will loose the configuration and I need to set it up again each time I edit the page.

    I ran a test with the other user selection options and they worked as expected. It seems the issue is only when I use the select user by role option.

    Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Bug: Block reverting to all users on page edit’ is closed to new replies.