Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Hello, I use JavaScript to set the price, based on the selection of a drop-down box.
    In this case there’s no way to pass the hash check.
    So I temporarily commented out the line wp_die('Error! The price field may have been tampered. Security check failed.');
    I would be grateful if you could add an option in preferences to disable the price check, in my case it would be very useful.
    Thank you

    Hello, after disabling the plugin qtranslate-X v3.4.6.4 the preview button works again.
    Unfortunately I cannot disable this plugin. Is there a fix for this?
    Thank you for your support

    In my case the error is:

    ReferenceError: autosave is not defined
    error source line:
    /wp-content/plugins/alo-easymail/inc/alo-easymail-backend.js?ver=4.4.2
    line 113 column 7
    -> autosave();

    Note: if you get crossdomain policy errors, just modify the code as follows:

    // get video player URL
    $obj -> watchURL = 'https://www.youtube.com/watch?v=' . $media -> {'items'}[0] -> {'id'};
    //$obj -> watchURL = 'https://www.youtube-nocookie.com/embed/' . $media -> items[0] -> id;

    Hi, this should work as expected:

    <?php
    /**
     * Helper Class for Youtube API
     *
     * @author - Praveen Rajan
     */
    class CVGYoutubeAPI {
    
    	/**
    	 * Initializes values
    	 * @author Praveen Rajan
    	 */
    	function CVGYoutubeAPI() {
    
    	}
    
    	/**
    	 * Returns Youtube video ID
    	 * @author Praveen Rajan
    	 */
    	function getPatternFromUrl($url) {
    
    		$url = $url . '&';
    		$pattern = '/v=(.+?)&+/';
    		preg_match($pattern, $url, $matches);
    
    		return ($matches[1]);
    	}
    
    	/**
    	 * Parses Youtube video to get details of video
    	 * @author Praveen Rajan
    	 */
    	function parseVideoEntry($entry) {
    		$obj = new stdClass;
    
    		// get nodes in media: namespace for media information
    		$media = $entry ;
    		$obj -> title = $media -> items[0]->snippet->title;
    		$obj -> description = $media -> items[0] -> snippet -> description;
    
    		// get video player URL
    		//$obj -> watchURL = 'https://www.youtube.com/watch?v=' . $media -> {'items'}[0] -> {'id'};
    		$obj -> watchURL = 'https://www.youtube-nocookie.com/embed/' . $media -> items[0] -> id;
    
    		// get video thumbnail
    		$obj -> thumbnailURL = $media -> items[0] -> snippet -> thumbnails -> default -> url;
    
    		// get <yt:duration> node for video length
    		$obj -> length = ISO8601ToSeconds ( $media -> items[0] -> contentDetails -> duration );
    
    		// get <yt:stats> node for viewer statistics
    		$obj -> viewCount = $media -> items[0] -> statistics -> viewCount;
    
    		// get <gd:rating> node for video ratings
    		$gd = $media -> items[0] -> statistics -> likeCount;
    		if ( $gd > 0 ) {
    			$obj -> rating = $media -> items[0] -> statistics -> likeCount;
    		} else {
    			$obj -> rating = 0;
    		}
    
    		// get <gd:comments> node for video comments
    			$obj -> commentsURL = 'https://www.youtube.com/watch?v=' . $media -> items[0] -> id;
    			$obj -> commentsCount = $media -> items[0] -> statistics -> commentCount;
    
    		// get feed URL for video responses
    			$obj -> responsesURL = 'https://www.youtube.com/watch?v=' . $media -> items[0] -> id;
    
    		// get feed URL for related videos
    			$obj -> relatedURL = '';
    
    		// return object to caller
    		return $obj;
    	}
    
    	/**
    	 * Returns Youtube video details
    	 * @author Praveen Rajan
    	 */
    	function youtube_video_details($vid) {        
    
        $key_id='your-api-key';
        $url = "https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,statistics,status&key=". $key_id ."&id=". $vid;
    
    		// set JSON video data fetching URL
    		//$feedURL = 'https://gdata.youtube.com/feeds/api/videos/' . $vid;
    
    		$entry = json_decode(file_get_contents($url,0,null,null),false);
    
    		// parse video entry
    		$video = $this -> parseVideoEntry($entry);
    
    			return $video;
    
    	}
    }
    
    /**
     * Convert ISO 8601 values like PT15M33S
     * to a total value of seconds.
     *
     * @param string $ISO8601
     */
    function ISO8601ToSeconds($ISO8601)
    {
        preg_match('/\d{1,2}[H]/', $ISO8601, $hours);
        preg_match('/\d{1,2}[M]/', $ISO8601, $minutes);
        preg_match('/\d{1,2}[S]/', $ISO8601, $seconds);
    
        $duration = [
            'hours'   => $hours ? $hours[0] : 0,
            'minutes' => $minutes ? $minutes[0] : 0,
            'seconds' => $seconds ? $seconds[0] : 0,
        ];
    
        $hours   = substr($duration['hours'], 0, -1);
        $minutes = substr($duration['minutes'], 0, -1);
        $seconds = substr($duration['seconds'], 0, -1);
    
        $toltalSeconds = ($hours * 60 * 60) + ($minutes * 60) + $seconds;
    
        return $toltalSeconds;
    }
    ?>

    Just replace your-API-key with your real Youtube API key ??

    [removed]

    Same here, I cannot insert popup content anymore (in admin).
    I get these errors:

    TypeError: tmp is undefined
    tmp.id = ‘qtrans_textarea_’+tmp.id;
    options…min.php (linea 2970, col 3)

    ReferenceError: kopa_variable is not defined
    error source line:
    text: kopa_variable.i18n.grid,

    NOTE: I’m using qTranslate plugin

    Can you please fix it? Thanks

    Thanks guys! I downgraded to WordPress 4.0 and it works again (I followed instructions at https://www.betterhostreview.com/downgrade-wordpress-earlier-version.html).
    I hope the CVG plugin will be updated soon because our websites can’t stay without it.

    I have the same problem: every time I try to insert an image, the code is added into the tab of another language.
    This is very frustrating.

    I hope it will be fixed asap! Thanks

    Thread Starter niente0

    (@niente0)

    Ok, I’ll try to explain better. Here (https://oi60.tinypic.com/2lk7139.jpg) you see 2 custom sidebars I created, one that is associated to single pages in “projects” category, the other for single pages in “studios” category.
    Here are the “Sidebar location” settings for each of the two sidebars:
    https://oi61.tinypic.com/x5pp48.jpg
    https://oi58.tinypic.com/2hdw205.jpg

    Now, the “Sidebar_right_studios” is shown correctly in pages belonging to the “Studios” category.
    The “Sidebar_right_projects” is not shown in pages of the “Project” category, instead the default right sidebar is shown.

    Thread Starter niente0

    (@niente0)

    Hello,
    it seems that with v2.0.9 this problem was solved. Thank you.

    [FYI There are still some problems which make this plugin unusable: I created 2 custom right sidebars, and assigned them to all “single articles” of two different categories. The sidebar for the first category is correctly replaced, but there is no way to make the second sidebar appear while displaying an article belonging to the second category (default sidebar is always shown) ]

    Kind regards

    Hello, I have the same identical issue. Options are hidden and I cannot select them. I’m using WP 3.9.1 with Architecto 1.0 theme.

    Hello, I solved modifying footer.php in this way:

    window.onload = function() {
    // Because the 'wp_localize_script' method makes everything a string
    	infinite_scroll = jQuery.parseJSON(infinite_scroll);
    
    	jQuery( infinite_scroll.contentSelector ).infinitescroll( infinite_scroll, function(newElements, data, url) { eval(infinite_scroll.callback); });
    };
    Thread Starter niente0

    (@niente0)

    A little update: I replaced the minified version of lazy.js with the standard version (direct link), then I commented out lines 172-186, replacing them with “callback();“. It seems to work. I think lazy.js was using an hack for Firefox in order to know if the css loading was complete, but this hack does not work anymore on FF 26. These are the lines I commented out in lazy.js:

    var hostname = location.hostname.replace('www.',''),
                    hrefHostname = /http:/.test(href) ? /^(\w+:)?\/\/([^\/?#]+)/.exec( href )[2] : hostname;
                hostname != hrefHostname && $.browser.mozilla ?
                    callback()
                    :
                    //stylesheet is from the same domain or it is not firefox
                    (function(){
                        try {
                            link.sheet.cssRules;
                        } catch (e) {
                            cssTimeout = setTimeout(arguments.callee, 20);
                            return;
                        };
                        callback();
                    })();

    I replaced them just with
    callback();

    Thread Starter niente0

    (@niente0)

    I also completely removed the Supercache plugin, I thought it was solved because the translation worked for some minutes. Then it stopped again.

    Translation on Chrome is almost real-time, in Firefox there is no sign of activity. ??

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