richalt2
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 48 hours under DNS attack – spam rather than our website!I did submit a ticket to Bluehost!
Forum: Plugins
In reply to: [Last Login] [Plugin: Last Login] Calling function stops page creationCall to undefined function last_login_time() is a bug in get_last_login_current_user(). Line 100 should be a call to the proceeding function get_last_login().
Change:
function get_last_login_current_user($format=’%c’) {
$current_user = wp_get_current_user();
return last_login_time($current_user->ID, $format);
}To:
function get_last_login_current_user($format=’%c’) {
$current_user = wp_get_current_user();
return get_last_login($current_user->ID, $format);
}Forum: Fixing WordPress
In reply to: Insert data to the database from a formHi Ricardo, it is quite unfortunate the Codex does not contain a real example of form posting, storing, and retrieving to redisplay the form!!
I recently posted an outline of such as you wish to do, here:
http://ww.wp.xz.cn/support/topic/user-application-editing-form-store-retrieval-from-dbI think the step you are missing is the form must post to some existing page URL, such as the page itself! Therefore the php code in the page must recognize the incoming post prior to starting to display anything. See if you can make sense of my example.
You also have to deal with the question of user identity. How do you know who is submitting the form? My example asks for a WordPress login to do this. Hence the data can be retrieved by that specific user in the future, to be updated!Rich