Beee
Forum Replies Created
-
Forum: Plugins
In reply to: [Theme My Login] Send new users passwordThe links are valid for one day
I did not know that ?? Learn something new every day.
Forum: Plugins
In reply to: [Theme My Login] Send new users passwordI would indeed just let them reset it themselves and changes it to whatever they want it to be.
WP changed it indeed for security reasons afaik.
Forum: Plugins
In reply to: [Theme My Login] Send new users passwordAfaik yes… or they can set it themselves during registration.
Why would you want to send them their password ? Why do something manual when it can be automated ?
Forum: Plugins
In reply to: [Theme My Login] How Do I Add Items to User Dashboard?Zondi, the dashboard you’re referring to is the WordPress admin dashboard. No link to TML whatsoever.
You should look into Themed Profiles and restrict the user for admin access.
Forum: Plugins
In reply to: [Theme My Login] JS not loaded with shortcodeIssue is not resolved, but I’ve changed the setup to avoid this issue.
Forum: Plugins
In reply to: [Theme My Login] How to change the word Log In to something else?You need to add language files.
Forum: Plugins
In reply to: [Theme My Login] Allow weak passwordIt is not removed from the template file in the plugin. If it’s ‘missing’ from your file, I expect you use a custom one to override it, or you use css to hide it.
Do you have a link to show the form ?
Forum: Plugins
In reply to: [Theme My Login] Adding redirects for custom rolesI would use User Role Editor Arne ??
I use it as well and redirection works nicely….
Forum: Plugins
In reply to: [Theme My Login] Send new users passwordThat is not one the available variables, listed above the input field.
Forum: Plugins
In reply to: [Theme My Login] How to add placeholder text to password fieldsTom, I did this as well….
You can find the code for it here.
I do want to note, it requires uncommenting a line in the plugin itself, since removing the form with a filter/action doesn’t seem to work yet and the plugin author lacks to give proper support. I’m waiting for a reply for over 7 months….
Forum: Plugins
In reply to: [Theme My Login] Filter available to add placeholders for passwords ?Still hoping for an answer…
Forum: Fixing WordPress
In reply to: Create fake paged author pages when there are no postsMy new year starts of nicely… This was a long standing issue for me…
Happy new year to you too.
Forum: Fixing WordPress
In reply to: Create fake paged author pages when there are no postsWOOPTIE F***ING DOO !!! It works !!!
As I suspected it was indeed the author name which was too ‘limited’ to include all in the query.
This is the final result in pre-get-posts. It might look a bit different than you supplied it but tweaked/DRY-ed it a bit as well to eliminate other queries.
function alter_query_for_author_mentioned_subpages( $query ) { if ( ! is_admin() && $query->is_main_query() && is_author() ) { $subpage = get_query_var( 'subpage' ); $author_name = get_query_var( 'author_name' ); if ( ( 'mentioned' === $subpage ) ) { $ppp = 18; // @TODO: get from setting $user_id = get_user_by( 'slug', $author_name )->ID; $mentioned_posts = idf_get_user_mentions( $user_id ); $query->set( 'posts_per_page', $ppp ); if ( $mentioned_posts ) { $authors = get_all_authors_ids(); $authors[] = $user_id; $query->set( 'post__in', $mentioned_posts ); // Reset author name $query->set( 'author_name', '' ); // Store author name in fake_author_name query var $query->set( 'fake_author_name', $author_name ); } add_filter( 'the_posts', 'idf_undo_reset_author_name', 99, 2 ); } } } add_action( 'pre_get_posts', 'alter_query_for_author_mentioned_subpages' );
Thanks @keesiemeijer couldn’t have fixed it without you I think.
Forum: Fixing WordPress
In reply to: Create fake paged author pages when there are no postsNow this is getting somewhere…. Page 2 is now does not result in a 404 anymore, so I feel I only need to polish up the query to make it work…
Will update, once I get there…
Forum: Fixing WordPress
In reply to: Create fake paged author pages when there are no postsNot sure where I need to ‘insert’ my post ids. Below add_filter ?