vafrcor
Forum Replies Created
-
Forum: Plugins
In reply to: How can I create FULL WIDTH Twitter Timeline on responsive site?I have tried your JavaScript solution and it works!
But we must know when the Twitter Widget has fully loaded.
I suggest to use “setInterval” to check periodically and patch the iframe-timeline using your JavaScript code. Don’t forget to remove “setInterval” after your hack code already triggered.Below is my code
var interval=null; var patched=false; function patchTimeline(){ interval= setInterval(function(){ var windowWidth=jQuery(window).width(); if((windowWidth >= 768) && (windowWidth <= 1024)){ if(patched===false){ if(jQuery('#tweets iframe.twitter-timeline').length > 0){ var head = $('#tweets iframe.twitter-timeline').contents().find('head'); head.append('<style type="text/css">.timeline { max-width: 100% !important; width: 100% !important; } .timeline .stream { max-width: none !important; width: 100% !important; }</style>'); patched=true; } }else{ removeInterval(); } }else{ removeInterval(); } },3000); // do this interval for every 3 seconds } function removeInterval(){ interval=null; } jQuery(document).ready(function(){ patchTimeline(); });
Forum: Plugins
In reply to: [Quick Donation For WooCommerce] WP Admin/WC Order/Detail erroryou’re welcome
Forum: Plugins
In reply to: [Quick Donation For WooCommerce] Error in BackendBased on my experience, the error shown caused by WooCommerce Cart Class is not loaded on WP Admin pages.
Below is modified method:
/** * Check's For Donation Product Exist In Cart * @returns Boolean True|False */ public function donation_exsits(){ global $woocommerce; $r=false; if(is_object($woocommerce->cart)){ if(sizeof($woocommerce->cart->get_cart()) > 0){ foreach($woocommerce->cart->get_cart() as $cart_item_key => $values){ $_product = $values['data']; if($_product->id == $this->donation_id){ $r= true; } } } } else{ //# On WP Administration page (WC Cart Class is not loaded) // stay return FALSE } return $r; }
Forum: Plugins
In reply to: [Image Regenerate & Select Crop] Resize hang up – Internal server ErrorI tried to activate WP_DEBUG + WP_DEBUG_LOG, but there is no debug.log file created under wp-content (i have tested multiple times).
but the last Ajax response can be read at >> https://pastebin.com/QSP7BJKx
for last success Ajax response can be read at >> https://pastebin.com/uqBug1tt
At the last response, the javascript for continue the process was not generated.
any idea about this?
Forum: Plugins
In reply to: [Image Regenerate & Select Crop] Resize hang up – Internal server ErrorThank you for quick response, the details are:
– I tried to regenerate image from new image size (added from theme function) –> dimension is 114p x 114px (crop from left-top)
– The problem was happened when I regenerate from “Image Regenerate & Select Crop Settings” page (Popup Modal for Regenerate process).
– Never try this plugin “wp-cli extension” before.
– My Browser >> Mozilla Firefox 37.0.1 (Linux – Xubuntu 14.04)
– I set 0777 for “/wp-content/upload” directory
– My Server Engine is Apache
– PHP Curl extension is already installedI tried your plugin on new fresh WP (v 4.1.1) and there is no problem at all.
If this problem caused by another plugin that exhaust the server resources or some code restriction for continous request on a minute, may be I need to disable all the plugin first ??
any other sugestion?
Forum: Plugins
In reply to: [My YouTube Channel] DeviceSupport "bug" in v2.x (pre-3.0 announcement)We will wait for the updates. Thank You very much Sir.
Forum: Plugins
In reply to: [My YouTube Channel] SHOW "No items [Check here why]" at version 2.4.2.1For JSON File from widget contact support:
{ "date": "Mon, 27 Apr 2015 23:43:02 +0000", "server": "Apache/2.4.9 (Unix) OpenSSL/1.0.1g PHP/5.4.27 mod_perl/2.0.8-dev Perl/v5.16.3", "php": "5.4.27", "wp": "4.1.1", "ytc": "2.4.2.1", "redux": "N/A", "url": "https://habibiecenter3.dev", "widget_id": "youtube-channel-2", "title": "Our Video", "class": "", "channel": "UCUqXlNHlx9lrt4CDhvIIHPg", "vidqty": "1", "playlist": "", "use_res": "0", "cache_time": "0", "only_pl": false, "getrnd": "on", "maxrnd": "1", "goto_txt": "The Habibie Center", "showgoto": false, "popup_goto": "2", "showtitle": "on", "showvidesc": "on", "descappend": "…", "videsclen": "0", "width": "306", "responsive": "on", "to_show": "thumbnail", "no_thumb_title": false, "autoplay": false, "autoplay_mute": false, "norel": false, "modestbranding": false, "controls": false, "fixnoitem": false, "ratio": "3", "fixyt": "", "hideinfo": "", "hideanno": "", "themelight": "", "debugon": "", "userchan": "", "enhprivacy": "" }