Title: vonsch's Replies | WordPress.org

---

# vonsch

  [  ](https://wordpress.org/support/users/vonsch/)

 *   [Profile](https://wordpress.org/support/users/vonsch/)
 *   [Topics Started](https://wordpress.org/support/users/vonsch/topics/)
 *   [Replies Created](https://wordpress.org/support/users/vonsch/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/vonsch/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/vonsch/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/vonsch/engagements/)
 *   [Favorites](https://wordpress.org/support/users/vonsch/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HTML5 Responsive FAQ] random display / limit of elements?](https://wordpress.org/support/topic/random-display-limit-of-elements/)
 *  Thread Starter [vonsch](https://wordpress.org/support/users/vonsch/)
 * (@vonsch)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/random-display-limit-of-elements/#post-15084400)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[qTranslate X] Woocommerce 2.4.13 and qtranslate](https://wordpress.org/support/topic/woocommerce-2-4-13-and-qtranslate/)
 *  [vonsch](https://wordpress.org/support/users/vonsch/)
 * (@vonsch)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-2-4-13-and-qtranslate/#post-8916073)
 * What is the actual issue? I have 2.3.13 and qtranslate works fine with that.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SparkPost] WP compatibility](https://wordpress.org/support/topic/wp-compatibility-1/)
 *  Thread Starter [vonsch](https://wordpress.org/support/users/vonsch/)
 * (@vonsch)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/wp-compatibility-1/#post-8674233)
 * No, as I wrote following the update the problem disappeared.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ALO EasyMail Newsletter] day limit](https://wordpress.org/support/topic/day-limit-1/)
 *  Thread Starter [vonsch](https://wordpress.org/support/users/vonsch/)
 * (@vonsch)
 * [10 years ago](https://wordpress.org/support/topic/day-limit-1/#post-7321455)
 * I 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 newsletter
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [qtranslate and revolution slider – Multilingual Slider](https://wordpress.org/support/topic/qtranslate-and-revolution-slider-multilingual-slider/)
 *  [vonsch](https://wordpress.org/support/users/vonsch/)
 * (@vonsch)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/qtranslate-and-revolution-slider-multilingual-slider/#post-5037065)
 * Naturally. The new versions of Revolution Slider do already have support for 
   the different qTranslate forks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [qtranslate and revolution slider – Multilingual Slider](https://wordpress.org/support/topic/qtranslate-and-revolution-slider-multilingual-slider/)
 *  [vonsch](https://wordpress.org/support/users/vonsch/)
 * (@vonsch)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/qtranslate-and-revolution-slider-multilingual-slider/#post-5037062)
 * You 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [qtranslate and revolution slider – Multilingual Slider](https://wordpress.org/support/topic/qtranslate-and-revolution-slider-multilingual-slider/)
 *  [vonsch](https://wordpress.org/support/users/vonsch/)
 * (@vonsch)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/qtranslate-and-revolution-slider-multilingual-slider/#post-5037060)
 * Just 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);
       		}
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Custom Payment Gateways] How to rirect to Thank You page after order](https://wordpress.org/support/topic/how-to-rirect-to-thank-you-page-after-order/)
 *  [vonsch](https://wordpress.org/support/users/vonsch/)
 * (@vonsch)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/how-to-rirect-to-thank-you-page-after-order/#post-5152080)
 * 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 ) );

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