This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

deancs

Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Author
    Replies
  • in reply to: Google Analyticator update breaks Widgets screen #8022
    deancs
    Participant

    I use this plugin with wpJumpStart without any problems. I authenticate with google to provide both the graph reporting as well as tracking code management.

    Other plugins deployed with it are; ThemeBlvd set of plugins, backupbuddy, contactform7, contact form DB, limit login attempts, PizzazWP Slider Plus, ReallySimpleCaptcha, WooCommerce, SEO by Yoast, Shareaholic, respond.js, Widgets reloaded, maintenance mode.

    in reply to: custom slide not being saved #1530
    deancs
    Participant

    Hi Jason

    Thanks for the update, I’ll await the update.

    in reply to: news-scroller plugin #1372
    deancs
    Participant

    I have substituted your more elegant code and all is working.

    Thanks for the quick response.

    in reply to: news-scroller plugin #1325
    deancs
    Participant

    And on the third try he sees the note about pasting code…use pre tag

    <?php if( $instance['image'] == 'show' ) : ?>
    	<?php 
    		$image = '';
    		$image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'grid_6' ); 
    		if ($image[0] != '') : ?>
    			
    			
    			
    		<?php endif; ?>									
    <?php endif; ?>
    in reply to: news-scroller plugin #1324
    deancs
    Participant

    Code is not displayed correctly, try this;

    <?php if( $instance[\’image\’] == \’show\’ ) : ?>
    <?php
    $image = \’\’;
    $image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), \’grid_6\’ );
    if ($image[0] != \’\’) : ?>


    <?php endif; ?>
    <?php endif; ?>

    in reply to: Mailpress and news scroller plugin #584
    deancs
    Participant

    Thankyou for the response. I have tried the enqueue script, but hadn’t used the dependency parameter for jquery. Optimistically I made the change but the result was the same. On the wineries page if you hover over a winery name on the left it highlights the winery location on the map on the right. The location on the map, along with other details are stored as a custom fields on the post for each winery. To do this I call two custom shortcodes which generate html and the JS required for the jquery-maphighlight functionality. My assumption is with enqueue script these would be loaded before any shortcodes in the body are executed, however based on the error message it seems the in page JS is being executed before the enqueue script. I would like to solve the problem as I would really prefer to work within the WP and theme conventions but its all getting complicated. This question is waaaayyy outside the realm of theme support so a ‘leave it to you’ response would be fine 🙂

    In my WP page I have;

    [raw]
    [two_third][listWineries][/two_third]
    [one_third last]
    [wineryMap]
    [/one_third]
    [clear]
    [/raw]

    In my functions.php I have the following;

    function listWineries_func( $atts, $content = null ) {

    $wParams = shortcode_atts( array(‘category’ => ‘Wineries’),$atts );
    $wCategory = $wParams[‘category’];

    $outHTML = ‘

    phone
    web
    area
    Services

    ‘;
    $outJS = ”;

    $kvvURL = get_bloginfo(‘url’);
    query_posts(‘category_name=’.$wCategory.’&order=ASC&orderby=title’);
    while ( have_posts() ) : the_post();
    $wTitle = get_the_title();
    $wLink = get_permalink();
    $tmp = get_post_custom_values(‘phone’,$post->ID);
    $wPhone = $tmp[0];
    $tmp = get_post_custom_values(‘url’,$post->ID);
    $wURL = $tmp[0];
    $tmp = get_post_custom_values(‘area’,$post->ID);
    $wArea = $tmp[0];
    $tmp = get_post_custom_values(‘mapID’,$post->ID);
    $wMapID = $tmp[0];

    $outHTML .= ‘‘. $wTitle . ‘‘ .$wPhone .’‘.$wURL.’‘.$wArea.”;

    $outJS .=’doMap(\’#’.$wMapID.’lnk\’,\’#’.$wMapID.’1\’);’;

    $posttags = get_the_tags();
    if ($posttags) {
    foreach($posttags as $tag) {

    switch ($tag->name) {
    case “accommodation”:
    case “wifi”:
    case “coffee”:
    case “food”:
    case “cellardoor”:
    case “cellardoor-check”:
    case “buyonline”:
    $outHTML .= ‘name . ‘.png” alt=”‘ . $tag->name . ‘” title=”‘.$tag->name.'”/>’;
    break;
    }
    }
    }

    $outHTML .= ”;
    endwhile;
    $outHTML .= ”;
    $outHTML .= ”;
    $outHTML .= ‘function doMap( myLink, myArea) {$(myLink).mouseover(function(e) {$(myArea).mouseover();}).mouseout(function(e) {$(myArea).mouseout();}).click(function(e) { e.preventDefault(); });}’;
    $outHTML .= ‘$(function() {$(\’.mymap\’).maphilight({“stroke”:false,”fillColor”:”ff0000″,”fillOpacity”:0.7});’;
    $outHTML .= $outJS;
    $outHTML .= ‘});’;
    wp_reset_query();

    return $outHTML;
    }
    add_shortcode( ‘listWineries’, ‘listWineries_func’ );

    function wineryMap_func () {

    $kvvURL = get_bloginfo(‘url’);
    $outHTML = ”;
    $outHTML .= ”;

    query_posts(‘category_name=Wineries&order=ASC&orderby=title’);
    while ( have_posts() ) : the_post();
    $wTitle = get_the_title();
    $tmp = get_post_custom_values(‘mapCoords’,$post->ID);
    $wMapCoord = $tmp[0];
    $tmp = get_post_custom_values(‘mapID’,$post->ID);
    $wMapID = $tmp[0];

    $outHTML .= ”;
    $outHTML .= ”;
    endwhile;
    $outHTML .= ”;
    wp_reset_query();
    return $outHTML;
    }
    add_shortcode( ‘wineryMap’, ‘WineryMap_func’ );

    • This reply was modified 10 years, 3 months ago by deancs.
    in reply to: Mailpress and news scroller plugin #546
    deancs
    Participant

    Thanks Jason. I appreciate its not a problem with the news-scroller. Based on your comments I have read up a bit more on mailpress. It turns out there is an option where you can specify jquery is preloaded and it doesnt include it the widget code . If I select this option then things work correctly.

    In relation to jquery being loaded in the head – yes thats me. I use jquery maphighlight on one of the pages and I cant workout how to enqueue jquery-maphight so it works properly – work in progress I am afraid.

    in reply to: Mailpress and news scroller plugin #513
    deancs
    Participant

    Further to my query The site is http://www.kvv.com.au if anyone wants to see whats going on…thanks

Viewing 8 replies - 1 through 8 (of 8 total)