Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter circular one

    (@davidmcnee)

    Hi Daniel

    WordPress v 4 and ACF Pro v 5.0.8.

    Another thing I’d suggest is adding a hard coded “None” option and also allowing a default to be set.

    I also added something like this

    foreach( $GLOBALS['wp_registered_sidebars'] as $sidebar ) {
    	$sbid = $sidebar['id'];
    	if( $sbid != 'sidebar-3' && $sbid != 'sidebar-4') {
    		$selected = $field['value'] == $sbid ? 'selected="selected"' : ''; ?>
    		<option <?php echo $selected; ?> value='<?php echo $sbid; ?>'><?php echo $sidebar['name']; ?></option>
    
    <?php
    } }

    to remove sidebars reserved for footer widget areas in the theme. I think this is something that most users would need to do. I would add a multi select field in the options to select sidebars to be excluded. I can code it up if you like?

    Cheers

    The quiz is supposed to be triggered on document ready. You could try creating a function and calling it once the AAPL has completed.

    The code that starts the quiz is in WpProQuiz_View_FrontQuiz.php at line 152

    The js files?

    There’s a few js files and images not being found, you should fix those first. Use firebug to see what files aren’t found and check the urls in the reload code box are correct.

    Change that to

    jQuery.getScript("http://dev.examtimequiz.com/wp-content/plugins/et-shortcodes/js/et_shortcodes_frontend.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("http://dev.examtimequiz.com/wp-includes/js/jquery/ui/jquery.ui.core.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("http://dev.examtimequiz.com/wp-includes/js/jquery/ui/jquery.ui.widget.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("http://dev.examtimequiz.com/wp-includes/js/jquery/ui/jquery.ui.mouse.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("http://dev.examtimequiz.com/wp-includes/js/jquery/ui/jquery.ui.sortable.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("http://dev.examtimequiz.com/wp-content/plugins/wp-pro-quiz/js/wpProQuiz_front.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("http://dev.examtimequiz.com/wp-content/plugins/wp-pro-quiz/js/jquery.ui.touch-punch.min.js", function(data, textStatus, jqxhr){ });

    Just had a look, add this to the start of every getScript url

    http://dev.examtimequiz.com/

    yeah check the last reply for the quiz and tabs, add that code to the AAPL box and i’ll have a look

    For the quiz try putting this in the AAPL reload code box

    jQuery.getScript("wp-includes/js/jquery/ui/jquery.ui.core.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-includes/js/jquery/ui/jquery.ui.widget.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-includes/js/jquery/ui/jquery.ui.mouse.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-includes/js/jquery/ui/jquery.ui.sortable.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/wp-pro-quiz/js/wpProQuiz_front.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/wp-pro-quiz/js/jquery.ui.touch-punch.min.js", function(data, textStatus, jqxhr){ });

    And to get the elegant themes tabbed menu working try adding this too

    jQuery.getScript("wp-content/plugins/et-shortcodes/js/et_shortcodes_frontend.js", function(data, textStatus, jqxhr){ });

    For the share buttons to share the current page you need to update the site title and serve up the right url to the sharing scripts. Facebook has it’s own meta tags for sharing and these need to be updated too. At the moment it will always show the details of the first page entered.

    This might not be the best way but it works for me. On every page include this code within the loop

    <div class="opengraph-details" style="display:none;">
    	<?php echo "<meta property='og:site_name' content='". get_bloginfo('name') ."'/>";
    	echo "<meta property='og:url' content='" . get_permalink() . "'/>"; // Gets the permalink to the post/page
    	echo "<meta property='og:title' content='" . get_the_title() . "'/>"; // Gets the page title
    	echo "<meta property='og:type' content='article'/>"; // Sets the content type to be article.
    	echo "<meta property='og:description' content='" . get_the_excerpt() . "' />";
    	if(has_post_thumbnail( $post->ID )) {
    		thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' );
    		echo "<meta property='og:image' content='" . esc_attr( $thumbnail[0] ) . "'/>";
    	} ?>
    </div>

    Then in advanced ajax page loader plugin directory find the file ajax-page-loader.js and after line 254 add this

    jQuery('head meta[property="og:site_name"]').remove();
    jQuery('head meta[property="og:url"]').remove();
    jQuery('head meta[property="og:title"]').remove();
    jQuery('head meta[property="og:type"]').remove();
    jQuery('head meta[property="og:description"]').remove();
    jQuery('head meta[property="og:image"]').remove();
    jQuery('div.opengraph-details').contents().appendTo('head');

    It removes the facebook opengraph meta tags and replaces them with the current page info once the page has successfully loaded.

    The actual share urls are generated with PHP. The easiest way to have them share the current page URL would be to either move the widget into the main content area, at the top or bottom of a post so they’re reloaded by AAPL.

    If that’s not an option then you could replace them with jQuery.

    This is untested but something like this should work. To change the facebook share url do something like

    var windowLocation = window.location.href.replace(window.location.hash, '');
    var facebookLink = 'https://www.facebook.com/sharer/sharer.php?u='+ windowLocation;
    jQuery('a.synved-social-provider-facebook').attr('href', facebookLink);

    And repeat for all the other links

    circular one

    (@davidmcnee)

    Use firebug to see if there’s any error messages in the console panel.

    For the share bar this code is being added to the head

    jQuery(document).ready(function($) { $('.sharebar').sharebar({horizontal:'true',swidth:'70',minwidth:1025,position:'left',leftOffset:35,rightOffset:10}); });

    To start with i’d add that to aapl reload codes, changing all “$” to “jQuery”

    I’d need to see the site with the plugins activated to help further.

    CHeers

    circular one

    (@davidmcnee)

    Hi yeah, sorry noticed that after i’d posted.

    The getscript code above though will work to reload any plugins js files. Just find the files in the plugin folder and replace the paths then paste it into the reload code box in aapl settings. Check the source of a page after a refresh to see if the plugin is adding any js code into the html. If it has then copy that code and paste it in the reload box too.

    circular one

    (@davidmcnee)

    For the other plugins you mentioned just look in the plugin folder for the js files and use the above code to reload them, just replace the paths

    circular one

    (@davidmcnee)

    I’m using the below codes to reload the js files but the add to cart variation function doesn’t always reload

    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js", function(data, textStatus, jqxhr) {});
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/add-payment-method.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/add-payment-method.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/cart.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/cart.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/checkout.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/country-select.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/country-select.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/single-product.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/single-product.min.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.js", function(data, textStatus, jqxhr){ });
    jQuery.getScript("wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js", function(data, textStatus, jqxhr){ });

    Let me know if it works for you

    Hi Mike

    I didn’t figure out what the problem was but I just used the plugin Users to CSV ( I think it was that one anyway! ) and imported the file into mailchimp with no problems. Autochimp is adding new users to mailing lists fine.

    Cheers

    David

    Hi Steve

    Did you ever solve this problem? I’m getting the same thing.

    Cheers

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