dmatriccino
Forum Replies Created
-
Hi Jeff,
I’m not sure if a hook is the correct approach. This is an issue, not a feature request. The issue has to do with the settings page of your plugin in the admin, when populating the dropdown for “Default Assigned Author”. We are now up to 1 million subscribers on our site. When populating the dropdown for “Default Assigned Author”, the code selects ALL 1 million subscribers to fill the dropdown, causing the page to break, not allowing us to make any changes to the settings. You could duplicate this issue by dummying up user accounts for even 500K users, and try accessing the settings page for the plugin.
If you modify your select statement to not include users with the subscriber role, it would resolve trying to build a dropdown with 1 million+ options. The select statement in your callback_dropdown could be modified to be:
SELECT u.ID, u.display_name FROM {$wpdb->users} u INNER JOIN {$wpdb->usermeta} um ON u.id = um.user_id WHERE u.id='{$this->general_settings[$id]}' OR (um.meta_key='{$wpdb->prefix}_user_level' AND um.meta_value != 0)
I understand this will eliminate the ability to select a subscriber as the Default Assigned Author, but is there actually a use case to do so, and not assign the default author to an “Author, Editor, or Admin” role? This will reduce the dropdown list drastically and save the browser from crashing, should there be too many subscribers on the site.
Thanks,
DannyHi Jeff,
Couldn’t you maybe add checkboxes for each role, and when checked, users with the role would be generated in the dropdown?
Thanks,
DannyI just wanted to note that the same error is happening for me as well, even with <?php wp_footer(); ?> in footer.php right above </body>
Forum: Plugins
In reply to: [Theme My Login] Theme My Login 6.3.3Hello Jeff,
Just wanted to report another bug that I haven’t notice been reported. If it has been reported already, I apologize in advance.
When somebody requests their password to be reset if they had forgotten it, the default email does not send the reset url.
I noticed in the code on includes/class-theme-my-login.php line 1088, the line:
$message .= "<" . network_site_url('...') . ">"
Not sure if it happens to be the open and closing “< >” that wraps the url to be sent that is causing the link to show up blank in the email.
Thanks,
DannyForum: Plugins
In reply to: [W3 Total Cache] W3 Total Cache conflict with Easy FancyBoxI know that this post is 10 months old and has been tried to be set to Marked Resolved, but I still wanted to point out another conflict as I was also having trouble getting the Easy FancyBox plugin to work with W3 Total Cache plugin and found a different reasoning than above.
If you have Browser Caching enabled, and in the browser settings, you check “Prevent caching of objects after settings change” for Media & Other files, the FancyBox plugin won’t work. My guess is because the image URL will have something similar to “?ver=3049” appended to the end which might cause confusion to the JavaScript used to implement this feature.