eric3d
Forum Replies Created
-
Forum: Plugins
In reply to: [StageShow] Select performance THEN ticketsThanks. I’ll have to take another look at Gold to see if we should upgrade. I noticed all your demo sites are in maintenance mode. Is there a problem or just bad timing?
Forum: Plugins
In reply to: [StageShow] Select performance THEN ticketsHi Malcolm,
I would be interested in testing the drill-down feature.
I was considering moving
stageshow-boxoffice-datetimein a new row with jQuery, and using it to toggle allstageshow-boxoffice-rowbelow it on and off (accordion style). Of course, it would be easier if the feature was built-in.Can the feature be turned on and off in shortcode? I can see it being useful in the case Graham describes, but a hinderance on other events with fewer options.
Forum: Plugins
In reply to: [StageShow] Reservation Form problemsThanks for the prompt response and fixes.
We are currently using WP registration for users to reserve, but found many users found the process confusing, which is why I prefer the inline form interface.
Requiring an email to be entered twice and implementing a very simple regex check (/\S+@\S+\.\S+/) could reduce the chance of email typos. It won’t confirm if an address is valid but will eliminate obvious errors.
I was hiding the country field because all our reservations are local. It would be nice to specify which fields are required.
I sent you a link for #2. I have the “Move Box Office below Active Trolley” option on, which may affect the behavior. Similarly, when I confirm the reservation, the message appears off screen.
Forum: Plugins
In reply to: [Crop-Thumbnails] Confusing change of wordingI understand it’s difficult to pick the right wording. Especially that, if you don’t understand the logic behind it, the selection of which images can and cannot be cropped seems arbitrary. However, I still feel “Thumbnail” will apply more often than “Feature Image”, which is probably why the plugin was named that in the first place.
The translation filter works great. Thanks.
Forum: Plugins
In reply to: [amr ical events lists] Unable to save settingsProblem solved:
The options table was set to latin1_swedish_ci collation. Once we changed it to utf8, it worked properly.Forum: Plugins
In reply to: [CC Child Pages] option to limit number of pagesSorry for the late response. I had to put that project on the back burner for a while. Your code worked great, but I added some mods to allow a URL parameter to override the limit (for example, ?show=all or ?show=15). I included the code below in case it helps someone else.
if( class_exists('ccchildpages') ) { // Add filters only if CC Child Pages plugin is installed // Default values for parameters add_filter('ccchildpages_defaults', 'cc_add_limit_pages'); // Arguments for WP_Query - used by shortcode add_filter('ccchildpages_query_args', 'cc_limit_pages',10,2); // Arguments for wp_list_pages(), used in list mode add_filter('ccchildpages_list_pages_args', 'cc_limit_pages_list',10,2); } function cc_add_limit_pages($atts) { // Add default value for new limit parameter $atts['limit'] = - 1; // add default value ... - 1 = show all pages return $atts; } function cc_limit_pages($args, $a) { // check that parameter exists if( isset($a['limit']) ) { // parameter exists, so set value for posts_per_page $args['posts_per_page'] = intval($a['limit']); // override from URL parameter value if ( isset($_GET['show']) ) { $param = ($_GET['show']); if ( $param == 'all' ) { // allow words $args['posts_per_page'] = -1; } else if ( (int)$param == $param ) { // confirm param is integer $args['posts_per_page'] = $param; } } } return $args; } function cc_limit_pages_list($args, $a) { // check that parameter exists if( isset($a['limit']) ) { // parameter exists, so set value for number argument $limit_val = intval($a['limit']); if ( $limit_val > 0 ) { $args['number'] = $limit_val; }// N.B. according to the codex, specifying the number argument for wp_list_pages does not work correctly at present } return $args; }Forum: Plugins
In reply to: [amr ical events lists] Unable to save settingsUpdate:
I located the settings in the database (wp_options -> amr-ical-events-list) and it appears the settings ARE saved properly. The custom style sheet URL is correct and the list type I added and lost is in the array.So the problem is not that settings are not saved, but the settings are not loaded properly.
Forum: Plugins
In reply to: [amr ical events lists] Unable to save settingsThanks Anmari. This problem stumps me. I have wp_debug on, checked logs and see no error. I’ve tried multiple browsers, cleared cache, turned off all other plugins, and the usual checks.
I was able to configure lists, but somehow they were deleted after a while (an hour or so). So I’m not sure what’s happening there.
Where should the settings be saved in the database, so I can check if anything’s in there?Forum: Plugins
In reply to: [Media Library Folders] Broken in WP 4.4 (incompatible with srcset)?Thanks for the quick update.
Note: I had to deactivate and reactivate the plugin for the changes to take effect.
Forum: Plugins
In reply to: [Media Library Folders] Broken in WP 4.4 (incompatible with srcset)?Thanks. For others who ran into the same problem, you can disable WP’s responsive images feature with the following code. It’s not a fix but a workaround to keep your site working.
add_filter( 'max_srcset_image_width', create_function( '', 'return 1;' ) );Forum: Plugins
In reply to: [Event Organiser] Event Organiser 3.0.0Is there a list of what to expect in version 3.0? Thanks.
Translation and a bit more explanation. See PHP error log or turn wp-debug on to see the following errors.
Admin pages:
Strict Standards: Declaration of aec_contributor_list::form() should be compatible with WP_Widget::form($instance) in /mysite/wp-content/plugins/ajax-event-calendar/inc/widget-contributors.php on line 64 Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct() instead. in /mysite/wp-includes/functions.php on line 3457 Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct() instead. in /mysite/wp-includes/functions.php on line 3457Add Event (modal window):
Strict Standards: Declaration of aec_contributor_list::form() should be compatible with WP_Widget::form($instance) in /mysite/wp-content/plugins/ajax-event-calendar/inc/widget-contributors.php on line 64 Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct() instead. in /mysite/wp-includes/functions.php on line 3457 Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct() instead. in /mysite/wp-includes/functions.php on line 3457 Warning: Creating default object from empty value in /mysite/wp-content/plugins/ajax-event-calendar/inc/admin-event.php on line 25Forum: Plugins
In reply to: [CC Child Pages] option to limit number of pagesThanks for all your help. I’ll try it.
Forum: Plugins
In reply to: [CC Child Pages] option to limit number of pagesThanks for your reply. I’m looking forward to seeing the features you add.
Unfortunately, setting the limit in functions.php affects all instances of ccchildpages, while adding it in the shortcode allows more flexibility.
Forum: Plugins
In reply to: [CC Child Pages] option to limit number of pagesNot sure where to post this as I could not find a repository for this plugin. I would like to submit the following changes to be included in the next version of the plugin.
Lines 49-50 (set default value of attributes):
'limit' => 0, 'limit_get' =>'show',Lines 227-228 (set value of attributes from shortcode):
$page_limit = esc_html(trim($a['limit'])); $page_limit_param = esc_html(trim($a['limit_get']));Lines 320-335 (get value from url parameter and apply limit to loop):
// set limit of pages based on _GET parameter if ( isset($_GET[$page_limit_param]) ) { $param = ($_GET[$page_limit_param]); if ( $param == 'all' ) { // allow words $page_limit = 1000000; } if ( (int)$param == $param ) { // confirm param is integer $page_limit = $param; } } // avoid 0 or -1 from showing nothing if ( $page_limit < 1 ) { $page_limit = 1000000; } while ( $parent->have_posts() && $page_count<$page_limit ) {This allows you to:
- set a limit in the shortcode
[child_pages limit="10"]. - set or override limit in the url
mysite.com/page/?show=allormysite.com/page/?count=10. - set the _get parameter in the shortcode
[child_pages limit_get="whatever"]to avoid conflicts with another plugin or satisfy your wording preference.
I did not look at the widget, but it may be possible to apply the changes there too.
- set a limit in the shortcode