dlt101
Forum Replies Created
-
The new version worked! Thanks.
However, something interesting …
My site had already been updated to 3.4.2, and the Login button was not working.
I deleted the plugin and then re-installed it.
Now everything is working again.Don’t know if that was something on my end or if installing an entirely new version was different than doing an update.
anyway, thanks for the plugin. It really makes the login look nice.
Same problem.
Where can I find version 3.3.9 ?Forum: Reviews
In reply to: [Responsive] Recent Changes were AwfulI appreciate your willingness to help out.
Howevber, I’m going to turn down your assistance. I found another theme that works better for me, and I cannot invest any additional time in debugging the old one.Forum: Reviews
In reply to: [Responsive] Recent Changes were AwfulPlus it makes WooCommerce items look nuts, because it repeats the summary description twice on the page. Submitted this problem months ago and was told it works just fine.
Forum: Plugins
In reply to: [WooCommerce] Shipping Zone Flat Rate not workingFound it.
The rate itself got wiped out somehow.The web server is Apache
I deactivated ALL other plugins and even changed the theme.
Still having the problem.Also the “Description” and “Support” tabs stopped working on the download page.
In the General Tab of the Settings, I also see a warning message, which I cannot make sense of.
Warning! You need to have “wp_nav_menu” trigger in your template
Forum: Plugins
In reply to: [If Menu - Visibility control for Menus] Cannot make this work at allBig OOPS.
Looks like the above code was not loading at all.
Fixed load and everything seems to be working now.Forum: Plugins
In reply to: [If Menu - Visibility control for Menus] Syntax ErrorReposted
Forum: Plugins
In reply to: [If Menu - Visibility control for Menus] Syntax Errorfunction my_new_menu_conditions($conditions) { $conditions[] = array( ‘id’ => ‘single-my-custom-post-type’, ‘name’ => __(‘Single my-custom-post-type’, ‘i18n-domain’), ‘condition’ => function($item) { return is_singular(‘my-custom-post-type’); } ); return $conditions; }Forum: Plugins
In reply to: [Theme My Login] No DifferenceThanks for responding.
I see the TML Admin menu.
The problem is that the Login page has not changed at all.
And I don’t see any obvious setting to change that.Forum: Plugins
In reply to: CM Download Manager Menu ItemI see it now.
Forum: Plugins
In reply to: [Taxonomy Images] You don't have permission to attach files to this post.Found a solution!
I was trying to allow users to setup a personal page and upload an image to display there. I kept getting the dreaded “You don’t have permission to attach files to this post”.The message itself comes from wp_ajax_upload_attachment() in /wp-admin/includes/ajax-actions.php, even though the user is working on the front-page, not the dashboard, because the plugin I’m using (Advanced Custom Fields — recommended!) makes use of wordpress library routines (thankfully it restricts access to library). The error occurs if current_user_can() fails to give permission.
(You can prove the message is in this routine by changing the message statement to something else.)In turn, current_user_can() calls $current_user->has_cap() to get current capabilities.
has_cap() offers a nice filter that we can make use of, but it kept failing anyway. The reason was that it first calls map_meta_cap() which builds a large array of possible capabilities for this instance. If any one of those possible capabilities is left ’empty’ then has_cap returns false.
That means any custom filter that is determined to give permission must loop through the array and set everything true.
Here’s a sample filter function that works for me:
// allow users to add images to their home page
function allow_own_attachments( $user_caps, $req_caps, $args, $UserObj ) {
if ( empty($args[2]) ) {
return $user_caps; // nothing to check
}
$post = get_post( $args[2] ); // post_id was passed here
if ( $post->post_author == $UserObj->ID ) { // this is my post
foreach ( (array) $req_caps as $cap ) {
if ( empty( $user_caps[ $cap ] ) )
$user_caps[ $cap ] = true;
}
}
$user_caps[‘edit_post’] = true; // tested by wp_ajax_upload_attachment()
return $user_caps;
}
add_filter( ‘user_has_cap’, ‘allow_own_attachments’, 10, 4 );
// endhope that helps someone