Forum Replies Created

Viewing 15 replies - 16 through 30 (of 46 total)
  • IIS you can import apache rules. I made slight changes to make it work. Works just fine – even if it’s not officially supported!
    Depending on your setup, you may have to add the server variables. I didn’t have to though.

                     <rule name="Imported Rule 1" stopProcessing="true">
                        <match url="^minify-b(\d+)-([a-zA-Z0-9-_.]+)\.(css|js)$" ignoreCase="false" />
                        <conditions logicalGrouping="MatchAll">
                            <add input="{HTTP_ACCEPT_ENCODING}" pattern="gzip" ignoreCase="false" />
                            <add input="{HTTP_CACHE_CONTROL}" pattern="no-cache" ignoreCase="false" negate="true" />
                            <add input="{HTTP_IF_MODIFIED_SINCE}" pattern="no-cache" ignoreCase="false" negate="true" />
                        </conditions>
                        <action type="Rewrite" url="/index.php?blog={R:1}&min_group={R:2}&min_type={R:3}" appendQueryString="false" />
                    </rule>
    • This reply was modified 8 years, 2 months ago by ensemblebd.
    • This reply was modified 8 years, 2 months ago by ensemblebd.
    • This reply was modified 8 years, 2 months ago by ensemblebd.
    Thread Starter ensemblebd

    (@ensemblebd)

    Also, I was able to make this work for ajax searches too. So outside of a pagination issue, I would consider this a solution. Definitely would appreciate your thoughts on this.

    new code follows..

    add_action('admin_init','members_enable_content_permissions_ajax',0);

    function members_enable_content_permissions_ajax() {
    	if ( !wp_doing_ajax() ) return; // make sure we aren't running the same code twice.
    	// "Only add filters if the content permissions feature is enabled and we're not in the admin."
    	// here we only add the filters to support ajax requests that process content, which we must ensure they have access to attain.
    	
    	if ( members_content_permissions_enabled() ) {
    		add_filter('get_terms','members_content_permissions_custom_get_terms',10,3);
    		add_filter('the_posts','members_content_permissions_custom_the_posts',10,3);
    	}
    }
    function members_content_permissions_custom_the_posts($posts,$self,$unk2=null) {
    	if ( is_admin() && !wp_doing_ajax() ) return $posts;
    	if ( !is_main_query() && !$self->is_search && !wp_doing_ajax() ) return $posts;
    	.......
    
    function members_content_permissions_custom_get_terms($terms, $taxonomies=null, $args=null) {
    	if ( is_admin() && !wp_doing_ajax() ) return $terms;
    	.......
    
    Thread Starter ensemblebd

    (@ensemblebd)

    Thread Starter ensemblebd

    (@ensemblebd)

    Hi there, I think I’ll need to do some kind of diff or pull request for you on this one, it’s a bit complicated to list out here. I changed the leaflet.js and the showmap.php to wrap their javascript executions, changed leaflet-maps-marker.php to load ‘leafletmapsmarker-googlemaps-loader’ prior to jsapi (for callback), added a callback parameter to jsapi alongside the google api key and forced all scripts to use the defer attribute. The javascript code runs precautionary sanity checks using setInterval to determine when to execute the counterparts (though via debugging it didn’t seem to need that).

    One particular downside is I’m using a WP vers 4.5 feature wp_add_inline_script, since it was the quickest solution to get the callback into the correct spot. So that rules out some of the backwards compat for certain peoples. A second downside, is I’m hooking the document.write function, to perform a $(‘body’).append(jsapi_code), then restoring it afterwards. Why is google writing to the document buffer anyway, that’s so year 2000. ??

    It works great, but I am unsure on it’s suitability for public consumption. I think you guys may be able determine a more elegant way to handle this, but let me know how best to get the codeset over to you

    Thread Starter ensemblebd

    (@ensemblebd)

    Never mind you can close this out. It was caused by a plugin called WP-SCSS which was automatically (improperly) auto-enqueing my style.

    Just want to say I LOVE your plugin. It does the job. I tried several other products, and they simply have issues on Windows hosting providers. W3 Total Cache for instance, several features simply do not work.
    Yours works great. And I appreciate your time spent on it for the benefit of all of us using it.
    Good day to you!

    Using die() statements, I was able to determine that this product does not function on Windows (IIS) hosting solutions. And the only solution that would work is the Pro CDN version, as that is the only code that can properly minify/combine. In fact the standalone combine() function is never called by anything (/lib/W3/Minify.php Line #357).

    It relies heavily on the .htaccess for dynamically generating rewrite rules, for each and every minified file. Which cannot be made possible without code specifically for a web.config.

    Funny, I don’t remember any of that information anywhere on the product page. Time to move on to a different solution, this one will not work, as sad as I am to say that.

    There are several sections of this plugin that aren’t working.
    The HTML minifier doesn’t minify. Nor does it strip comments(checkbox for it).

    The non-blocking setting of the JS/CSS minify doesn’t actually put the text async/defer into the source code.
    And most importantly, it doesn’t combine files.

    it must have been some time since the authors last tested their plugin. @ashok, can you confirm whether any of the above features work for you?

    I have tried BOTH modes. Neither of them combine anything whatsoever.

    I have also tried using the footer tag(<!-- W3TC-include-js-head -->), which is my original intent. To move all js to the footer. That works great. Except nothing is combined. None of them.

    I have tried the “Combine Only” option. I have also prayed, but it doesn’t work.
    I would prefer to use this plugin, as opposed to looping the print_scripts and moving them down myself alongside a plugin that actually combines, or even attempts to combine.

    I have seen multiple topics on this subject. And people say “Switch to manual”, and the author responds with a statement totally in disregard to the COMBINING aspect in the original question.
    Was the feature removed? Are we doing something wrong? Did I forget to plug the power cable into the server? Is this real life?

    Sarcasm , uppercase text, and mild jokes aside… It would be great if someone can confirm that they are actually able to combine files with this plugin. And how exactly they pulled off that magical feat.

    Thanks!!!! Works great.

    Here’s my complete fix for this issue.

    <script type="text/javascript">
    
    // include this function somewhere
    function WPECOM_BUGFIX(options) {
    	var target=jQuery('input[type=checkbox][name*="shippingSameBilling"]');
    	if (target.length > 0) {
    
    		if (options.force_shippingSameAsBilling) {
    			if (!target.prop('checked')) target.trigger('click'); // have to trigger click, as the .prop() won't hide the inputs automatically.
    		}
    
    		if (options.force_valueMatch) {
    
    			var form=$('form.wpsc_checkout_forms');
    			form.on('submit',function(event) {
    				if (options.force_valueMatch) {
    					if (target.prop('checked')) {
    						var billing_root=form.find('table input[data-wpsc-meta-key^="billing"]:not(.wpsc-meta-value):first').parents('table');
    						var shipping_root=form.find('table input[data-wpsc-meta-key^="shipping"]:not(.wpsc-meta-value):first').parents('table');
    						shipping_root.find('input[data-wpsc-meta-key*="i"]') // all of them have a letter i in their attribute(sh[i]pping, b[i]lling). This is simply to test for existence of the attribute, without having to run a jquery filter. Because none of these share a class or anything to identify them distinctly....
    						.each(function() {
    							var ident=$(this).data('wpscMetaKey').replace('shipping','');
    							var assigned_el=billing_root.find('input[data-wpsc-meta-key*="'+ident+'"]'); // find the associated billing input.
    							var assigned_value=assigned_el.val();
    							$(this).val(assigned_value); // copy it's value over.
    						});
    					}
    				}	
    
    			});
    		}
    	}
    }
    
    </script>

    and the execution on page load..

    $(document).ready(function() {
    	// call this on page load.
    	// both options should be turned on, in order to fix the issue with AutoComplete filling entries without keystroke events, and to prevent php errors in WPEcom from failed submit forms.
    	// this is due to incorrect validation when Shipping should be same as Billing. An ongoing issue for at least 8 months.
    	WPECOM_BUGFIX({
    		force_shippingSameAsBilling: true, // enable the checkbox by default, to support the following two methods. User will have to uncheck it to enter shipping info.
    		force_valueMatch: true // force the values of shipping to match billing
    	});
    });

    Am unsure why the php code hasn’t been updated for this. It shouldn’t be validating form fields whose values are empty due to a conditional checkbox.
    So the above code simply copies the values over, onSubmit. Preventing user difficulty. They have simply to uncheck the box if they wish to input shipping information.

    GREAT call. I was researching all the other topics on this, since author has not fixed it.

    And this is the answer. I added JS to my wordpress system, to resolve this issue:

    $(document).ready(function() {
       if (!jQuery('input[type=checkbox][name*="shippingSameBilling"]').prop('checked')) jQuery('input[type=checkbox][name*="shippingSameBilling"]').trigger('click');
    });

    I had not thought of that, until you que’d it. Thanks!!
    So basically it forces it to be checked by default. I would rather force people to click a checkbox and retype values, than suffer this impassable error.

    Still a problem. 8 months later, July 2016.

    I went the route of making it into a shortcode.
    In order for this to work (all credits and thanks to mazyng above!!!)
    , you also need this:
    remove_all_filters('tribe_events_after_footer');
    It just needs to be called BEFORE you execute tribe_show_month. As it causes an infinite loop when operating within a wordpress loop (ie a page).

    So… functions.php

    function sc_custom_tribe_calendar( $atts ) {
        extract( $atts=shortcode_atts( array(
            'target_id'=> 'tribe_month_view', // container which will receive tribe css classes. Should contain the tribe calendar.
            'hostname_url'=>  $_SERVER['HTTP_HOST']// ex: "mywebsite.com"  -- for the hardlinks back to the calendar view that operates properly
        ), $atts, 'multilink' ) );
    
    	global $post;
    	$post->ATTR_TRIBE_CAL=$atts;
    
    	remove_all_filters('tribe_events_after_footer');
    
    	ob_start();
    	get_template_part( 'template-parts/shortcode', 'tribe-events' );
    	$output=ob_get_clean();
    
        return $output;
    }
    add_shortcode( 'custom_tribe_calendar', 'sc_custom_tribe_calendar' );

    And then inside your theme:: /template-parts/shortcode-tribe-events.php

    <?php global $post; ?>
    
    <script type='text/javascript' src='https://your-url/wp-content/plugins/the-events-calendar/vendor/bootstrap-datepicker/js/bootstrap-datepicker.min.js?ver=3.2'></script>
    
    <script type='text/javascript' src='https://your-url/wp-content/plugins/the-events-calendar/vendor/jquery-placeholder/jquery.placeholder.min.js?ver=2.0.7'></script>
    
    <script type='text/javascript' src='https://your-url/wp-content/plugins/the-events-calendar/vendor/jquery-resize/jquery.ba-resize.min.js?ver=1.1'></script>
    
    <script type='text/javascript'>
    /* <![CDATA[ */
    var tribe_js_config = {"permalink_settings":"\/%year%\/%monthnum%\/%day%\/%postname%\/","events_post_type":"tribe_events","events_base":"http:\/\/<?php echo $post->ATTR_TRIBE_CAL['hostname_url'];?>\/events\/"};
    /* ]]> */
    </script>
    
    <script type='text/javascript' src='https://your-url/wp-content/plugins/the-events-calendar/src/resources/js/tribe-events.min.js?ver=4.1.3'></script>
    
    <script type='text/javascript' src='https://your-url/wp-content/plugins/the-events-calendar/src/resources/js/tribe-events-bar.min.js?ver=4.1.3'></script>
    
    <script type='text/javascript' src='https://your-url/wp-content/plugins/LayerSlider/static/js/greensock.js?ver=1.11.8'></script>
    <script type="text/javascript">
    jQuery(document).ready(function($) {
    	$("#<?php echo $post->ATTR_TRIBE_CAL['target_id'];?>").addClass("events-gridview events-archive tribe-events-style-full tribe-events-style-theme tribe-theme-parent-lms tribe-theme-child-lms-child page-template-tpl-events-php singular customize-support tribe-is-responsive");
    });
    </script>
    
    <div class="container">
    		<?php $now = date_i18n( 'Y-m-01' ) ?>
    		<?php echo tribe_events_before_html(); ?>
    		<?php
    			//tribe_get_view();
    			tribe_show_month( array( 'eventDate' => $now ) )
    		?>
    		<?php echo tribe_events_after_html(); ?>
    </div>

    Which means inside a post/page/w/e you can do this:

    <div id="monthview">
    		[custom_tribe_calendar target_id="monthview"]
      </div>

    It will surely break with newer updates. And chances are, you’ll want to use the official shortcode via Pro version. But this is certainly a means to an end, a temporary solution for the free users out there.

    Thread Starter ensemblebd

    (@ensemblebd)

    Actually it just straight up does nothing on latest version of wordpress.

    [gallery size="full" ids="15,14,13,12,11,10" orderby="rand"]
    converts to:
    [wcfgallery size="full" ids="15,14,13,12,11,10" orderby="rand"]
    which does absolutely nothing. Blank output on the page.

    I tried removing parameters, though that shouldn’t have any bearing.
    [wcfgallery ids="15,14,13,12,11,10" ]

    Nothing. Just nothing. Will not be purchasing pro, as it doesn’t operate.

Viewing 15 replies - 16 through 30 (of 46 total)