Title: dlt101's Replies | WordPress.org

---

# dlt101

  [  ](https://wordpress.org/support/users/dlt101/)

 *   [Profile](https://wordpress.org/support/users/dlt101/)
 *   [Topics Started](https://wordpress.org/support/users/dlt101/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dlt101/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dlt101/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dlt101/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dlt101/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dlt101/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/users/dlt101/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/dlt101/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Admin Custom Login] Login button not working since updating to 3.4.0 and 3.4.1](https://wordpress.org/support/topic/login-button-not-working-since-updating-to-3-4-0-and-3-4-1/)
 *  [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/login-button-not-working-since-updating-to-3-4-0-and-3-4-1/#post-15713138)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Admin Custom Login] Login button not working since updating to 3.4.0 and 3.4.1](https://wordpress.org/support/topic/login-button-not-working-since-updating-to-3-4-0-and-3-4-1/)
 *  [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/login-button-not-working-since-updating-to-3-4-0-and-3-4-1/#post-15707691)
 * Same problem.
    Where can I find version 3.3.9 ?
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Responsive] Recent Changes were Awful](https://wordpress.org/support/topic/recent-changes-were-awful/)
 *  Thread Starter [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/recent-changes-were-awful/#post-12760865)
 * I 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](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Responsive] Recent Changes were Awful](https://wordpress.org/support/topic/recent-changes-were-awful/)
 *  Thread Starter [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/recent-changes-were-awful/#post-12754103)
 * Plus 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Shipping Zone Flat Rate not working](https://wordpress.org/support/topic/shipping-zone-flat-rate-not-working/)
 *  Thread Starter [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/shipping-zone-flat-rate-not-working/#post-10718534)
 * Found it.
    The rate itself got wiped out somehow.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CM Download Manager – Organize, Protect & Share Files in WordPress] Download button does nothing](https://wordpress.org/support/topic/download-button-does-nothing/)
 *  Thread Starter [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/download-button-does-nothing/#post-9813051)
 * The web server is Apache
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CM Download Manager – Organize, Protect & Share Files in WordPress] Download button does nothing](https://wordpress.org/support/topic/download-button-does-nothing/)
 *  Thread Starter [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/download-button-does-nothing/#post-9808901)
 * I deactivated ALL other plugins and even changed the theme.
    Still having the
   problem.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CM Download Manager – Organize, Protect & Share Files in WordPress] Download button does nothing](https://wordpress.org/support/topic/download-button-does-nothing/)
 *  Thread Starter [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/download-button-does-nothing/#post-9807306)
 * Also the “Description” and “Support” tabs stopped working on the download page.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CM Download Manager – Organize, Protect & Share Files in WordPress] Download button does nothing](https://wordpress.org/support/topic/download-button-does-nothing/)
 *  Thread Starter [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/download-button-does-nothing/#post-9807304)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[If Menu - Visibility control for Menus] Cannot make this work at all](https://wordpress.org/support/topic/cannot-make-this-work-at-all/)
 *  Thread Starter [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/cannot-make-this-work-at-all/#post-9672025)
 * Big OOPS.
 * Looks like the above code was not loading at all.
    Fixed load and everything 
   seems to be working now.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[If Menu - Visibility control for Menus] Syntax Error](https://wordpress.org/support/topic/syntax-error-173/)
 *  Thread Starter [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-173/#post-9671987)
 * Reposted
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[If Menu - Visibility control for Menus] Syntax Error](https://wordpress.org/support/topic/syntax-error-173/)
 *  Thread Starter [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-173/#post-9667812)
 *     ```
       function 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Theme My Login] No Difference](https://wordpress.org/support/topic/no-difference-3/)
 *  Thread Starter [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/no-difference-3/#post-9467797)
 * Thanks 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [CM Download Manager Menu Item](https://wordpress.org/support/topic/cm-download-manager-menu-item/)
 *  Thread Starter [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/cm-download-manager-menu-item/#post-8210726)
 * I see it now.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Taxonomy Images] You don't have permission to attach files to this post.](https://wordpress.org/support/topic/you-dont-have-permission-to-attach-files-to-this-post-3/)
 *  [dlt101](https://wordpress.org/support/users/dlt101/)
 * (@dlt101)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/you-dont-have-permission-to-attach-files-to-this-post-3/#post-6893522)
 * 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 ); // end
 * hope that helps someone

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/users/dlt101/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/dlt101/replies/page/2/?output_format=md)