PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

User Levels for Authors re: dropdown menu

  1. psm9640
    Member

    Hey everybody... I ran into an issue recently with a form on a web site. Since we use WordPress to offer subscriber accounts, our wp_users table has > 60,000 entries. The problem is that when you go to edit a form (which accesses form_detail.php), the page either takes 15 minutes to load or you get a jquery error (in FireFox) because there is a dropdown menu . To get around this, I added another variable to the dropdown_users() array on line 508 of form_detail to include just the admin:

    <?php wp_dropdown_users(array('name' => 'field_post_author','include' => '1')) ?>

    What would be awesome in the future would be, for those of us who have much larger wp_user tables, either an option to limit these users by permission level or specify certain users only who would show up in this drop-down list.

    Posted 14 years ago on Friday February 19, 2010 | Permalink
  2. Thanks for bringing this to our attention. We will look into this, we are actually wrapping up a bug fix release now so we may be able to go ahead and get this change implemented for this release.

    What we may do is just go ahead and limit the author drop down to just administrators as the default, and then in a future release provide more functionality around this (or have introduce a hook so it can be changed via PHP) to allow it to be configurable.

    Posted 14 years ago on Friday February 19, 2010 | Permalink
  3. psm9640
    Member

    Thanks Carl.

    Just as a footnote, with 60,000 subscribers before the fix, that page ended up being 3.2mb in size. After limiting to just the admin, resulting size was 182kb.

    Posted 14 years ago on Friday February 19, 2010 | Permalink
  4. We will definitely make this change in the 1.3.10 release which will most likely be going out tomorrow. That many users in the author table was certainly something we didn't take into account when we implemented the feature and I appreciate you bringing the issue to our attention. Thanks!

    Posted 14 years ago on Friday February 19, 2010 | Permalink
  5. jpack
    Member

    Hi,
    I think I'm having this same problem, we have about 100,000 users with GF 1.4.4 and it wasn't really usable until I disabled the field_post_author drop down. Did this get reverted somewhere along the way somehow?

    Thanks,
    Jason

    Posted 14 years ago on Tuesday November 2, 2010 | Permalink