David Marín Carre?o
Forum Replies Created
-
Forum: Plugins
In reply to: [Random User IDs] Help customizing the ID numberHi! I just added some documentation about this to the plugin web page: https://davefx.com/en/random-user-id/
Forum: Plugins
In reply to: [DFX Automatic Role Changer for WooCommerce] DocumentationI’m afraid I still don’t have documentation for it.
Basically a new field will appear in every product edition page, where you can set the desired role that will be assigned to the registered users that purchase that product.
Forum: Plugins
In reply to: [Random User IDs] Minimum User IDMarking as solved
Forum: Plugins
In reply to: [Random User IDs] Minimum User IDHi!
I just uploaded a new version of the plugin, now including the filter ‘dfx_random_user_id_min_id’ so you also can customize the minimum generated ID.
Forum: Plugins
In reply to: [Random User IDs] reset all to defaultsMarking as resolved
Forum: Plugins
In reply to: [Random User IDs] Change all users idThe plugin doesn’t do this in an automated way because the actions to be carried out depend greatly on the plugins and customizations you have in the site.
In a WordPress-only (without plugins) for every user you’ll need to replace its user ID in table users (ID), usermeta (user_id), posts (post_author), comments (comment_author).
But as you install other plugins, the number of places in the database in which the user IDs appear is greater.
As I cannot know about all existing plugins, and as leaving just one of the DB fields containing a user ID without replacing could potentially break the site in unexpected ways, I took the decision of not supporting this case of use.
If you need this, I recommend you to carry out the needed actions directly on the database.
Forum: Plugins
In reply to: [Random User IDs] Does it work wit user_register?Marking question as resolved
Forum: Plugins
In reply to: [Random User IDs] Does it work wit user_register?Yes. The plugin calculates and sets the user ID before the new row is inserted into the users table, so any user_id received through the action user_register would already be randomized.
Forum: Plugins
In reply to: [Random User IDs] reset all to defaultsHi!
The next user id number is controlled by an MySQL auto_increment field.
I’m afraid it’s not possible to do what you want. From the MySQL manual:
You cannot reset the counter to a value less than or equal to any that have already been used. For MyISAM, if the value is less than or equal to the maximum value currently in the AUTO_INCREMENT column, the value is reset to the current maximum plus one. For InnoDB, if the value is less than the current maximum value in the column, no error occurs and the current sequence value is not changed.
Why do you need to do this?
Forum: Plugins
In reply to: [Random User IDs] How to Sorten ID Length from 16 to 8 or 10 Digits onlyHi!
Yes, you can do it by using the dfx_random_user_id_max_id filter.
For example, you can add the following code to your functions.php file:
add_filter( 'dfx_random_user_id_max_id', 'custom_max_user_id', 10, 0 ); function custom_max_user_id() { return 99999999; }
- This reply was modified 4 years, 10 months ago by David Marín Carre?o.
Forum: Plugins
In reply to: [Random User IDs] Conflict with mycredDid you setup random-user-ids after mycred?
Does mycred use additional tables including references to user ids?Random-User-IDs should be installed before any plugin that customizes the database, as it cannot support the modification of user-ids in unknown tables os unknown metadata tables.
As there are many plugins that create tables with references to users through their IDs, it’s actually impossible adding this feature to the plugin, as I should know how and where all the plugins in WordPress use user-IDs.
Implementing this feature, ignoring this problem, could break WP installations, so I won’t program it.
Sorry!
Forum: Plugins
In reply to: [Random User IDs] Option for First User IDIt would be possible, but it would be really risky to do it unless you know exactly what you are doing.
There are many plugins that create tables with references to users through their IDs, and it’s actually impossible doing this in a generic way, ensuring the update of all the user-id references in the database, as these references may be hidden in new tables or metadata that depend on the installed plugins.
Sorry!
Forum: Reviews
In reply to: [Random User IDs] Handy Plugin A+Thank you for your review.
I just committed a new version of the plugin including a new filter that allows the customization of the maximum UserID number, so you don’t need to customize the plugin but only customize this filter.
Forum: Plugins
In reply to: [Adapta RGPD] Selector para tratar de Vd. al usuario?Muchísimas gracias por la mejora!