llocally
Forum Replies Created
-
Forum: Plugins
In reply to: [Quick Event Manager] cannot change month displayedYes 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 4 years, 6 months ago by llocally.
Forum: Plugins
In reply to: Plugin commits – SVN basic auth errorOK, 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
In reply to: [Get Directions Map] Feature request: allow users to add locationYes 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
In reply to: [Get Directions Map] didnt work for meThe 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
In reply to: [Genesis Simple Share] Show simple share conditionallyGlad I could help. The plugin authors will need to mark this thread resolved.
Forum: Plugins
In reply to: [Genesis Simple Share] Show simple share conditionallyDon’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/
Forum: Plugins
In reply to: [Stop User Enumeration] error in phpHI 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
In reply to: [Image Watermark] doesn't workJust 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
In reply to: [Image Watermark] doesn't workHi,
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
In reply to: [Image Watermark] doesn't workSame here. Can’t see any manual options in list view either.
Forum: Plugins
In reply to: [CMB2] Object type & show onAs 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
In reply to: [CMB2] Can you limit groups or repeatable fieldsCheers, nice one.
Forum: Plugins
In reply to: [CMB2] How to extend show_onHi 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
In reply to: [CMB2] How to extend show_onBtw 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
In reply to: [Get Directions Map] shortcodeIt 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 )