thanks for any help
]]>I need to create two new fields that are automatically filled when a new user registers:
1o. Internal code. This code will be a 6-digit incrementing numeral. If the last registered user was 000156, the new user should take the value 000157. This field has to be filled in automatically, it is not necessary for the user to see it on the screen
2o. Referral code. I need to capture the value of the ?user variable that comes through the call to the registration URL that will contain a variable of type user=123 (register/?user=123). I need the value 123 to be stored in a user field in the database so that I can later use that information.
I don’t know if this will be possible with the UM plugin. I would appreciate your help. Thank you. Greetings
]]>A while ago I was testing something and I created a user with a 10 digit user id via Phpmyadmin. The userid was 9873401539.
Now ever since wordpress is making my user ids after that range only. I want to bring the user id count back to normal and make it sequential but even if I delete the user with id 9873401539, it goes on to create the next user as user id 9873401540.
Reference Screenshot – https://ibb.co/zSNqTPr
For example, in this pic, I want the newest user to be created with id 466, then 467 and so on but it never forgets the 10 digit user id I put in stupidity
Could anyone please guide me?
]]>Though I need to generate a field with initial integer value and increment (+1) this value after each successful submission. And I need to use this field in email template.
I have been struggling with this for some time but with no success…
]]>Thank you.
]]>There is that case when I want to delete all existing subscribers (all 10 of them :)) and start adding new ones. After deletion, when I add first new subscriber, ID for that subscriber starts off at 11 instead of 1. How to reset the auto-increment in database to make it start at 1 after deleting all subscribers?
Thank you!
]]>WordPress database error: [Failed to read auto-increment value from storage engine]
INSERT INTO wp_options (option_name, option_value, autoload) VALUES ('siteurl', 'https://localhost/wordpress', 'yes'), ('blogname', 'My Site', 'yes'), ('blogdescription', 'Just another WordPress site', 'yes'), ('users_can_register', '0', 'yes'), ('admin_email', '[email protected]', 'yes'), ('start_of_week', '1', 'yes'), ('use_balanceTags', '0', 'yes'), ('use_smilies', '1', 'yes'), ('require_name_email', '1', 'yes'), ('comments_notify', '1', 'yes'), ('posts_per_rss', '10', 'yes'), ('rss_use_excerpt', '0', 'yes'), ('mailserver_url', 'mail.example.com', 'yes'), ('mailserver_login', '[email protected]', 'yes'), ('mailserver_pass', 'password', 'yes'), ('mailserver_port', '110', 'yes'), ('default_category', '1', 'yes'), ('default_comment_status', 'open', 'yes'), ('default_ping_status', 'open', 'yes'), ('default_pingback_flag', '1', 'yes'), ('default_post_edit_rows', '20', 'yes'), ('posts_per_page', '10', 'yes'), ('date_format', 'F j, Y', 'yes'), ('time_format', 'g:i a', 'yes'), ('links_updated_date_format', 'F j, Y g:i a', 'yes'), ('links_recently_updated_prepend', '<em>', 'yes'), ('links_recently_updated_append', '</em>', 'yes'), ('links_recently_updated_time', '120', 'yes'), ('comment_moderation', '0', 'yes'), ('moderation_notify', '1', 'yes'), ('permalink_structure', '', 'yes'), ('gzipcompression', '0', 'yes'), ('hack_file', '0', 'yes'), ('blog_charset', 'UTF-8', 'yes'), ('moderation_keys', '', 'no'), ('active_plugins', 'a:0:{}', 'yes'), ('home', 'https://localhost/wordpress', 'yes'), ('category_base', '', 'yes'), ('ping_sites', 'https://rpc.pingomatic.com/', 'yes'), ('advanced_edit', '0', 'yes'), ('comment_max_links', '2', 'yes'), ('gmt_offset', '0', 'yes'), ('default_email_category', '1', 'yes'), ('recently_edited', '', 'no'), ('template', 'twentyeleven', 'yes'), ('stylesheet', 'twentyeleven', 'yes'), ('comment_whitelist', '1', 'yes'), ('blacklist_keys', '', 'no'), ('comment_registration', '0', 'yes'), ('html_type', 'text/html', 'yes'), ('use_trackback', '0', 'yes'), ('default_role', 'subscriber', 'yes'), ('db_version', '21707', 'yes'), ('uploads_use_yearmonth_folders', '1', 'yes'), ('upload_path', '', 'yes'), ('blog_public', '1', 'yes'), ('default_link_category', '2', 'yes'), ('show_on_front', 'posts', 'yes'), ('tag_base', '', 'yes'), ('show_avatars', '1', 'yes'), ('avatar_rating', 'G', 'yes'), ('upload_url_path', '', 'yes'), ('thumbnail_size_w', '150', 'yes'), ('thumbnail_size_h', '150', 'yes'), ('thumbnail_crop', '1', 'yes'), ('medium_size_w', '300', 'yes'), ('medium_size_h', '300', 'yes'), ('avatar_default', 'mystery', 'yes'), ('enable_app', '0', 'yes'), ('enable_xmlrpc', '0', 'yes'), ('large_size_w', '1024', 'yes'), ('large_size_h', '1024', 'yes'), ('image_default_link_type', 'file', 'yes'), ('image_default_size', '', 'yes'), ('image_default_align', '', 'yes'), ('close_comments_for_old_posts', '0', 'yes'), ('close_comments_days_old', '14', 'yes'), ('thread_comments', '1', 'yes'), ('thread_comments_depth', '5', 'yes'), ('page_comments', '0', 'yes'), ('comments_per_page', '50', 'yes'), ('default_comments_page', 'newest', 'yes'), ('comment_order', 'asc', 'yes'), ('sticky_posts', 'a:0:{}', 'yes'), ('widget_categories', 'a:0:{}', 'yes'), ('widget_text', 'a:0:{}', 'yes'), ('widget_rss', 'a:0:{}', 'yes'), ('uninstall_plugins', 'a:0:{}', 'no'), ('timezone_string', '', 'yes'), ('embed_autourls', '1', 'yes'), ('embed_size_w', '', 'yes'), ('embed_size_h', '600', 'yes'), ('page_for_posts', '0', 'yes'), ('page_on_front', '0', 'yes'), ('default_post_format', '0', 'yes'), ('initial_db_version', '21707', 'yes')
WordPress database error: [Failed to read auto-increment value from storage engine]
INSERT INTO <code>wp_options</code> (<code>option_name</code>, <code>option_value</code>, <code>autoload</code>) VALUES ('home', 'https://localhost/wordpress', 'yes') ON DUPLICATE KEY UPDATE <code>option_name</code> =
]]>Currently the ID reveals the order in which posts/pages were created. This is why I would prefer to have random IDs or at least I would like to be able to set each post’s/page’s ID. How could this be done? Maybe with a one-way function? Or maybe there’s a plug-in that maps a random public ID to the internal one?
Many thanks!
]]>