vonsch
Forum Replies Created
-
Forum: Plugins
In reply to: [HTML5 Responsive FAQ] random display / limit of elements?Solved it. If you prefer to reach the same result, just add
to include/hrf-faq.php
$faq_params = shortcode_atts( array( 'category' => '', 'title' => '', 'limit' => '', 'random' => '', ), $attr );
$faq_args = array( 'post_type' => 'hrf_faq', 'post_status' => 'publish', 'posts_per_page' => empty($faq_params['limit']) ? -1 : $faq_params['limit'], 'orderby' => filter_var($faq_params['random'], FILTER_VALIDATE_BOOLEAN) ? 'rand' : 'menu_order', 'order' => 'ASC', );
Then you get 2 more parameters
[hrf_faq limit=”5″ random=”yes”]Forum: Plugins
In reply to: [qTranslate X] Woocommerce 2.4.13 and qtranslateWhat is the actual issue? I have 2.3.13 and qtranslate works fine with that.
Forum: Plugins
In reply to: [SparkPost] WP compatibilityNo, as I wrote following the update the problem disappeared.
Forum: Plugins
In reply to: [ALO EasyMail Newsletter] day limitI did set an external cron, this quasi cron of WP is very unreliable.
Still, assume that my mailserver can handle 10k a day, 100 in a batch. In the current code you take the minimum of the 10k/batch vs. max. batch. Assume that 5 min. cron is OK.
// so... how much recipients for this interval? // (86400 = seconds in a day) $day_rate = alo_em_get_dayrate(); $tot_recs = max ( floor( ( $day_rate * $diff_time / 86400 ) ) , 1 ); // not over the limit $limit_recs = min ( $tot_recs, alo_em_get_batchrate () );
$tot_recs = max ( floor ( 10000 * 300/86400), 1) = 34
$limit_recs = min(34, 200) = 34.Thus the daily limit does not allow me to reach the batch limit.
Also, have 2 other ideas:
– it would be good to automatically remove the addresses where the mail is not delivered and
– to add number of unsubscribed users to the stats page – for the given newsletterForum: Plugins
In reply to: qtranslate and revolution slider – Multilingual SliderNaturally. The new versions of Revolution Slider do already have support for the different qTranslate forks.
Forum: Plugins
In reply to: qtranslate and revolution slider – Multilingual SliderYou have multiple options. One slider per language – requires no modification – or only certain slides change, but then you need to tune revslider code. By now the new versions of revslider have native support for qTranslate-X.
Forum: Plugins
In reply to: qtranslate and revolution slider – Multilingual SliderJust a note to maadrimosharef solution. Perhaps it is better to use an exception for the admin page, otherwise editing the text is a nightmare on the admin page. So my modified code looks like, this allows to view the unchanged language, but only on the admin page. (The code is for qTranslate-X.)
public function getLayers(){ $this->validateInited(); if ( is_admin() ) { $qtranslatedLayers = $this->arrLayers; } else { $qtranslatedLayers = qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage($this->arrLayers); } return($qtranslatedLayers); }
Had a problem with the redirection in WC2.2. class-wc-custom_payment_gateway_x.php should look like this to have even the cart redirection.
// Remove cart
//$woocommerce->cart->empty_cart();
WC()->cart->empty_cart();// Return thankyou redirect
return array(
‘result’ => ‘success’,
‘redirect’ => $this->get_return_url( $order )
);