Forum Replies Created

Viewing 15 replies - 61 through 75 (of 126 total)
  • Thanks. 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?

    Hi Malcolm,

    I would be interested in testing the drill-down feature.

    I was considering moving stageshow-boxoffice-datetime in a new row with jQuery, and using it to toggle all stageshow-boxoffice-row below 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.

    Thread Starter eric3d

    (@eric3d)

    Thanks 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.

    Thread Starter eric3d

    (@eric3d)

    I 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.

    Thread Starter eric3d

    (@eric3d)

    Problem solved:
    The options table was set to latin1_swedish_ci collation. Once we changed it to utf8, it worked properly.

    Thread Starter eric3d

    (@eric3d)

    Sorry 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;
    }

    Thread Starter eric3d

    (@eric3d)

    Update:
    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.

    Thread Starter eric3d

    (@eric3d)

    Thanks 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?

    Thread Starter eric3d

    (@eric3d)

    Thanks for the quick update.

    Note: I had to deactivate and reactivate the plugin for the changes to take effect.

    Thread Starter eric3d

    (@eric3d)

    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;' ) );

    Is 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 3457

    Add 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 25

    Thread Starter eric3d

    (@eric3d)

    Thanks for all your help. I’ll try it.

    Thread Starter eric3d

    (@eric3d)

    Thanks 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.

    Thread Starter eric3d

    (@eric3d)

    Not 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=all or mysite.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.

Viewing 15 replies - 61 through 75 (of 126 total)