Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Funkateer

    (@funkateer)

    I figured it out by myself. Instead of using the WP Cloudy Shortcode inside Visual Composer Plugin put the following code inside the functions.php of your theme:

    add_shortcode('pp_cloudy', 'wpc_field');
    function wpc_field($atts){
    	extract(shortcode_atts(array(
    		'id' => 1
    		), $atts)
    	);
    
    	$id = $atts['id'];
    	$weather = do_shortcode('[wpc-weather id="'.$id.'"]');
    
    	return $weather;
    }

    and register the new shortcode inside Visual Composer Plugin:

    [pp_cloudy id="4290"]

    That′s it. Thanks anyways ??

    I have the same notices on several installations. Seems that it doesn′t bother anything but the notices are annoying while debugging.

    If anybody has a hint for us..I would appreciate it!

    Thx and keep up the good work!

    I have Slidedeck & NextGen installed and recognize the same issues here. No slide animation and the navigation has disappeared, too.

    Thread Starter Funkateer

    (@funkateer)

    Okay, I′ve managed to have access to the php-generated array for the Supersized slides.
    Inside my jQuery-script the array is type of string. This has to be converted.

    But please take a look at this function:

    function changeSupersizedSlides(postID){
    	var new_slides = jQuery(".slides_"+postID).html();
    	new_slides.replace(/"/ig,'"');
    		var type = typeof(new_slides);
    	console.log("changeSupersizedSlides var new_slides type of = "+type);
    	//var subarray = new_slides.replace("[","").replace("]","");
    	var myArray = [];
    	var parsedJson = jQuery.parseJSON(new_slides);
    	myArray.push({
    	    image: parsedJson.image,
    	    title: parsedJson.title,
    	    thumb: parsedJson.thumb,
    	    url: parsedJson.url
    	});
    	console.log("changeSupersizedSlides myArray[2] = "+myArray[2].image);
    }

    But the code breaks at:
    var parsedJson = jQuery.parseJSON(subarray);
    with this error:
    SyntaxError: JSON Parse error: Expected '}'

    What′s wrong here?

    @mcguive7: Awesome, have been looking for a solution for days! Now it′s as easy as this, unbelievable.

    Thank you and keep up the good work!

    Hello Fish,

    I have a similiar problem unfortunately. At least the plugin doesn′t seem to accept images greater than 1024px width (for pages?). The loader.gif shows up while uploading. After this disappears the thumbnail is not showing up and the chosen bg image on the specific page won′t show up either.
    Does your plugin have resolution restrictions or any other issues depending on WordPress 3.5x ?

    Any help from you would be very appreciated! ??

    Thank you in advance!

    Jens

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