Title: Badlywired's Replies | WordPress.org

---

# llocally

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

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

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/llocally/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/llocally/replies/page/3/?output_format=md)…
[5](https://wordpress.org/support/users/llocally/replies/page/5/?output_format=md)
[6](https://wordpress.org/support/users/llocally/replies/page/6/?output_format=md)
[7](https://wordpress.org/support/users/llocally/replies/page/7/?output_format=md)
[→](https://wordpress.org/support/users/llocally/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Quick Event Manager] cannot change month displayed](https://wordpress.org/support/topic/cannot-change-month-displayed/)
 *  [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/cannot-change-month-displayed/#post-13439422)
 * Yes code would speed things up, or a least tell me which line.
 * An example without looking at the code to handle relative time is
    if (!is_int(
   $attmonth)) { date(‘m’, strtotime($attmonth) ); }
 * Then you can use ‘+1 month’
    -  This reply was modified 5 years, 7 months ago by [llocally](https://wordpress.org/support/users/llocally/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Plugin commits – SVN basic auth error](https://wordpress.org/support/topic/plugin-commits-svn-basic-auth-error/)
 *  Thread Starter [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [11 years ago](https://wordpress.org/support/topic/plugin-commits-svn-basic-auth-error/#post-6123575)
 * OK, by the way, I was using svnX on the mac. When I used tortoise on my PC it
   gave me a lot clearer message.
 * Basically it didn’t like the ‘shortness’ of my commit message.
 * I used to be able to just put in the release version as a commit message but 
   now it seems I need to write a short sentence. Not a problem – when you know 
   why the commit is failing.
 * Hope this post helps others searching for a solution, it was driving me crazy.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Get Directions Map] Feature request: allow users to add location](https://wordpress.org/support/topic/feature-request-allow-users-to-add-location/)
 *  [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [11 years ago](https://wordpress.org/support/topic/feature-request-allow-users-to-add-location/#post-5032969)
 * Yes this would be a nice addition. Often users don’t often see the browser request
   for permission to give location, so ideally it would time out and then request
   location.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Get Directions Map] didnt work for me](https://wordpress.org/support/topic/didnt-work-for-me-50/)
 *  [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [11 years ago](https://wordpress.org/support/topic/didnt-work-for-me-50/#post-7923684)
 * The map comes from MapQuest.
 * The directions request permission from the browser, it isn’t great as people 
   often miss that and don’t give permission.
 * If there was more interest in the plugin I would code it such that is permission
   timed out then it would request the user to manually enter their position.
 * However, it seems Google maps has taken over the world so investment in this 
   plugin is unlikely.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Genesis Simple Share] Show simple share conditionally](https://wordpress.org/support/topic/show-simple-share-conditionally/)
 *  [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [11 years ago](https://wordpress.org/support/topic/show-simple-share-conditionally/#post-5755645)
 * Glad I could help. The plugin authors will need to mark this thread resolved.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Genesis Simple Share] Show simple share conditionally](https://wordpress.org/support/topic/show-simple-share-conditionally/)
 *  [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [11 years ago](https://wordpress.org/support/topic/show-simple-share-conditionally/#post-5755643)
 * Don’t know if you got an answer. But I just worked it out as I needed the same.
 * Code details here [https://badlywired.com/2015/04/conditionally-display-genesis-social-share-e-g-not-on-a-specific-category/](https://badlywired.com/2015/04/conditionally-display-genesis-social-share-e-g-not-on-a-specific-category/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Stop User Enumeration] error in php](https://wordpress.org/support/topic/error-in-php-1/)
 *  [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [11 years ago](https://wordpress.org/support/topic/error-in-php-1/#post-6042145)
 * HI that Warning is due to openlog() being disabled.
 * This is probably something done by your host and you probably are on shared hosting.
 * options
    ————– 1. You can turn warnings off in php (google turn off warnings 
   in php) 2. Remove the openlog string from the disable_functions at php.ini* file
   3. Ask your hosting provider to remove the string above if you don’t have an 
   access to the php.ini* file 4. Change hosting provider which allows the running
   of the openlog function.
 * stop user enumeration writes to syslog so Fail2Ban can work. If you are not using
   fail2ban this is not message is not important
 * Of course the code could be modified to not log to syslog.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Image Watermark] doesn't work](https://wordpress.org/support/topic/doesnt-work-760/)
 *  [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-760/#post-5462935)
 * Just an update, I deactivated all other plugins and went to 2015 theme and still
   nothing on list view that I can see about manual water marking (WP 4.1.1)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Image Watermark] doesn't work](https://wordpress.org/support/topic/doesnt-work-760/)
 *  [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-760/#post-5462933)
 * Hi,
 * As per my post, I can’t see any manual watermarking in list view.
    Just the list
   options, nothing mentioning watermarking anywhere that I can see.
 * I would say watermarking is working on upload.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Image Watermark] doesn't work](https://wordpress.org/support/topic/doesnt-work-760/)
 *  [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-760/#post-5462931)
 * Same here. Can’t see any manual options in list view either.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] Object type & show on](https://wordpress.org/support/topic/object-type-show-on/)
 *  Thread Starter [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/object-type-show-on/#post-5949541)
 * As far as the templates go I have written a common function e.g. display_common_meta(),
   thats not the issue.
 * So I really only want to define one meta box and use that on the CPTs and on 
   a specific page tempate.
 * At the moment I have duplicated the CMB set ups using a common meta one for the
   page template and one for the CPTs.
 * I have done it the cut and paste method in setting up the CMBs, which is fine
   as long as you remember to change the metabox id.
 * Of course a neater way would be to write a show_on_db function to detect the 
   template only if it is a page not a CPT. I’ll think about it when I have a moment
   and post back here if I work out the code.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] Can you limit groups or repeatable fields](https://wordpress.org/support/topic/can-you-limit-groups-or-repeatable-fields/)
 *  Thread Starter [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/can-you-limit-groups-or-repeatable-fields/#post-5921524)
 * Cheers, nice one.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] How to extend show_on](https://wordpress.org/support/topic/how-to-extend-show_on/)
 *  Thread Starter [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/how-to-extend-show_on/#post-5920471)
 * Hi Justin,
 * version 2.0.2
 * My ‘bad’ I was trying to use show_on_cd on
 * $group_field_id = $cmb_meta->add_field
 * which still returns the id (maybe it shouldn’t?)
 * where as using shown_on_cb on add_group_field does work
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] How to extend show_on](https://wordpress.org/support/topic/how-to-extend-show_on/)
 *  Thread Starter [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/how-to-extend-show_on/#post-5920386)
 * Btw I have worked out how to write a custom ‘show on static front page’ for calls
   from show_on_cb
 * e.g.
 *     ```
       function my_show_on_static_front_page(){
           global $post;
           return ($post->ID == get_option( 'page_on_front' ));
        }
       ```
   
 * However, I have discovered a bug (feature?) that show_on_cb works fine on normal
   fields but on group fields, not so. AM I doing something wrong here?
 * I think the show_on_cb led me up the garden path for this solution.
 * show_on_cb doesn’t appear to work on ‘new_cmb2_box’ and ‘add_group_field’ only
   on ‘add_field’ (tested with hard coded logic)
 * But the solution I actually wanted was simple, after the fact, ignore show_on_cb
   and just use show_on thus
 *     ```
       'show_on'      => array( 'id' => array( get_option( 'page_on_front' ), ) ),
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Get Directions Map] shortcode](https://wordpress.org/support/topic/shortcode-247/)
 *  [llocally](https://wordpress.org/support/users/llocally/)
 * (@llocally)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/shortcode-247/#post-5636925)
 * It should work if you got it right.
 * If you want to send me a link to your site I can take a look ( alan (at) locally(
   dot) uk )

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

1 [2](https://wordpress.org/support/users/llocally/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/llocally/replies/page/3/?output_format=md)…
[5](https://wordpress.org/support/users/llocally/replies/page/5/?output_format=md)
[6](https://wordpress.org/support/users/llocally/replies/page/6/?output_format=md)
[7](https://wordpress.org/support/users/llocally/replies/page/7/?output_format=md)
[→](https://wordpress.org/support/users/llocally/replies/page/2/?output_format=md)