• Resolved flymike

    (@flymike)


    On the Registered Subscribers page (logged with Administrator access), search for a specific user. When that user is found, all categories are shown, but none are checked – even though the selected user IS subscribed to several.
    So it’s not possible for an Administrator to UNsubscribe a specific user from a particular category.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • @flymike

    What version of Subscribe2 are you using? This has been a bug in the past but has also been fixed.

    Thread Starter flymike

    (@flymike)

    I’m on 10.30.1.
    I have PHP skill. Can you point me to relevant component? I’ll try to figure out what’s wrong.

    @flymike

    The admin page is defined at plugins/subscribe2/admin/your-subscriptions.php with the form created from the plugins/subscribe2/classes/class-s2-forms.php class file. The data is pulled from the wp_usermeta table. Your not operating in Multisite mode are you?

    @flymike

    Did you figure out what was going wrong?

    I’ve tested the 10.30.1 release code and also my version here:
    https://github.com/mattyrob/subscribe2

    And thus far I cannot recreate this issue.

    Thread Starter flymike

    (@flymike)

    Sorry, I had to travel. I’ll look at the problem again in November.

    Thread Starter flymike

    (@flymike)

    I’m not multisite, and I’ve refreshed from your github site.
    When display_category_form() is called from line 310 of admin/subscribers.php, the $categories array is empty. BUT the (registered) email address (successfully) searched on is subscribed to at least one category.
    Can you point me to where the $categories array is initialized for the searched-on subscriber?

    @flymike

    That file is the list of users, the data are displayed using the plugins/subscribe2/admin/your-subscriptions.php file.

    The user id is passed to s2_your_subscription_form() in plugins/subscribe2/classes/class-s2-forms.php and in there the display_category_form() function is called passing the users category subscriptions from a database call using the get_user_meta() function.

    Does that help?

    Thread Starter flymike

    (@flymike)

    I appreciate your patience, and I see the confusion.
    So, I’m on the privileged Subscribers page, and therefore in admin/subscribers.php and not admin/your-subscriptions.php.
    That is, as an administrator, I’m setting or reviewing subscriptions of others – not myself. And I’m trying to display the current subscriptions of some other particular user – by using the Search box.
    So, because I’m in admin/subscribers.php, display_category_form() is called from line 310 of admin/subscribers.php, and not via s2_your_subscription_form().
    So now I think I must have imagined that existing subscriptions were ever displayed. Instead, is it that the behavior of this (administrator’s) form is to blindly either subscribe or unsubscribe a category, without ever actually showing its status?

    @flymike

    I undertsand now – you are looking at the bulk management form at the bottom of the admin/subscribers.php page – that does not display the subscriptions of current users.

    To see that find your Regietered used and click the word ‘edit’ below their email address in the table. That will take you through to their version of admin/your-subscriptions.php with their username in red at the top of the page – from there you’ll see their current subscription settings and can change them.

    Thread Starter flymike

    (@flymike)

    The light dawns! Thanks again for your patience & understanding.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Registered Subscribers page not showing individual user’s subscribed categories’ is closed to new replies.