Title: KalleL's Replies | WordPress.org

---

# KalleL

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

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

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/kallel/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/kallel/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/kallel/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/kallel/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[BJ Lazy Load] "Skip images with classes" option doesn't work](https://wordpress.org/support/topic/skip-images-with-classes-option-doesnt-work/)
 *  [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/skip-images-with-classes-option-doesnt-work/#post-6515429)
 * This still doesn’t work in 1.0.6
 * Adding for example “no-lazy” to “Skip images with classes” doesn’t work!
 * This is such a basic feature and if the author doesn’t have time to fix this 
   bug I would recommend to unpublish the plugin completely.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[qTranslate X] Showing the default language if the content is not translated yet](https://wordpress.org/support/topic/showing-the-default-language-if-the-content-is-not-translated-yet/)
 *  Thread Starter [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/showing-the-default-language-if-the-content-is-not-translated-yet/#post-5848842)
 * By setting `$show_available = false;` in the beginning of `function qtranxf_use_block(
   $lang, $blocks, $show_available=false, $show_empty=false)` the default language
   is automatically viewed instead of the language list.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[qTranslate X] Showing the default language if the content is not translated yet](https://wordpress.org/support/topic/showing-the-default-language-if-the-content-is-not-translated-yet/)
 *  Thread Starter [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/showing-the-default-language-if-the-content-is-not-translated-yet/#post-5848833)
 * It looks like there are a solution for this problem:
 * _Replacing $q\_config[‘not\_available’][$lang] with $lang\_text on line 1306 
   at the end of the qtranxf\_use\_block function in qtranslate\_core.php works 
   well for this._
 * Can you please add this functionality to qTranslate X?
    This is such a basic 
   feature and we really need to add this as soon as possible!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SlimStat Analytics] After upgrading to 3.9.7 slimstat stops collecting data](https://wordpress.org/support/topic/after-upgrading-to-397-slimstat-stops-collecting-data/)
 *  Thread Starter [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/after-upgrading-to-397-slimstat-stops-collecting-data/#post-5860756)
 * After much testing, I have come to the conclusion that the problem was related
   to our cache plugin and not Slimstat. So you can close this issue and set is 
   as resolved.
 * I am sorry for reporting it as a Slimstat issue since it really was not a problem
   in Slimstat but a problem with our cache plugin. My apologies!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SlimStat Analytics] After upgrading to 3.9.7 slimstat stops collecting data](https://wordpress.org/support/topic/after-upgrading-to-397-slimstat-stops-collecting-data/)
 *  Thread Starter [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/after-upgrading-to-397-slimstat-stops-collecting-data/#post-5860676)
 * Yes, we do. But I emptied all caches.
 * After downgrading to 3.9.6 Slimstat started collecting data again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[qTranslate X] Showing the default language if the content is not translated yet](https://wordpress.org/support/topic/showing-the-default-language-if-the-content-is-not-translated-yet/)
 *  Thread Starter [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/showing-the-default-language-if-the-content-is-not-translated-yet/#post-5848653)
 * Ok! It would be great if this was a priority as it is a very basic feature.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SlimStat Analytics] Unable to uninstall WP Slimstat from DB](https://wordpress.org/support/topic/unable-to-uninstall-wp-slimstat-from-db/)
 *  Thread Starter [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/unable-to-uninstall-wp-slimstat-from-db/#post-5838208)
 * Sending me a copy of your network add-on would be a great way to say thank you
   for helping you find the bugs in your uninstall code 😉
 * And you would also get QA for free 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SlimStat Analytics] Unable to uninstall WP Slimstat from DB](https://wordpress.org/support/topic/unable-to-uninstall-wp-slimstat-from-db/)
 *  Thread Starter [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/unable-to-uninstall-wp-slimstat-from-db/#post-5838204)
 * Great! 🙂
 * It would be great if the capability under Permissions > Reports could be set 
   to “Publish_posts”. Currently it is being set automatically to “activate_plugins”
   with is not optimal in a WordPress network.
 * I would be more than happy to also help you test the Network Settings & Network
   View if you can send me a copy of those add-ons.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SlimStat Analytics] Unable to uninstall WP Slimstat from DB](https://wordpress.org/support/topic/unable-to-uninstall-wp-slimstat-from-db/)
 *  Thread Starter [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/unable-to-uninstall-wp-slimstat-from-db/#post-5838142)
 * Using $`GLOBALS['wpdb']->get_blog_prefix($id)` in _slimstat\_uninstall_ and passing
   the _id_ for each blog to `slimstat_uninstall($_wpdb = '', $id)` took care of
   the problem.
 * `$GLOBALS['wpdb']->prefix` just doesn’t work. It just return “wp_”.
    I do not
   know why?
 * Also, since you are using “AND deleted = 0 AND spam = 0” there might be tables
   left in the database making it impossible to remove wp_slim_content_info and 
   some other tables because of foreing keys.
 * I modified your uninstall script and now it runs correct:
 *     ```
       <?php
       // Avoid direct access to this piece of code
       if (!defined('WP_UNINSTALL_PLUGIN')) exit;
   
       $slimstat_options = get_option('slimstat_options', array());
   
       if (!empty($slimstat_options['addon_custom_db_dbuser']) && !empty($slimstat_options['addon_custom_db_dbpass']) && !empty($slimstat_options['addon_custom_db_dbname']) && !empty($slimstat_options['addon_custom_db_dbhost'])){
       	$slimstat_wpdb = new wpdb($slimstat_options['addon_custom_db_dbuser'], $slimstat_options['addon_custom_db_dbpass'], $slimstat_options['addon_custom_db_dbname'], $slimstat_options['addon_custom_db_dbhost']);
       }
       else {
       	$slimstat_wpdb = $GLOBALS['wpdb'];
       }
   
       if (function_exists('is_multisite') && is_multisite()) {
       	$blogids = $GLOBALS['wpdb']->get_col($GLOBALS['wpdb']->prepare("
       		SELECT blog_id
       		FROM $wpdb->blogs
       		WHERE site_id = %d", $GLOBALS['wpdb']->siteid));
   
       	foreach ($blogids as $blog_id) {
       		switch_to_blog($blog_id);
       		slimstat_uninstall($slimstat_wpdb, $blog_id);
       	}
       	restore_current_blog();
       }
       else{
       	slimstat_uninstall($slimstat_wpdb);
       }
   
       $slimstat_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->base_prefix}slim_browsers");
       $slimstat_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->base_prefix}slim_screenres");
       $slimstat_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->base_prefix}slim_content_info");
   
       function slimstat_uninstall($_wpdb = '', $id){
       	// Goodbye data...
   
       	$_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->get_blog_prefix($id)}slim_outbound");
       	$_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->get_blog_prefix($id)}slim_stats");
   
       	// Goodbye options...
       	delete_option('slimstat_options');
       	delete_option('slimstat_visit_id');
       	delete_option('slimstat_filters');
   
       	$GLOBALS['wpdb']->query("DELETE FROM {$GLOBALS['wpdb']->get_blog_prefix($id)}usermeta WHERE meta_key LIKE '%wp-slimstat%'");
   
       	// Remove scheduled autopurge events
       	wp_clear_scheduled_hook('wp_slimstat_purge');
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SlimStat Analytics] Unable to uninstall WP Slimstat from DB](https://wordpress.org/support/topic/unable-to-uninstall-wp-slimstat-from-db/)
 *  Thread Starter [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/unable-to-uninstall-wp-slimstat-from-db/#post-5838135)
 * That’s strange!
 * I don’t know why it works for you and not for us.
    We have a standard network
   install and we have not change anything manually in the database.
 * Maybe a WordPress bug?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SlimStat Analytics] Unable to uninstall WP Slimstat from DB](https://wordpress.org/support/topic/unable-to-uninstall-wp-slimstat-from-db/)
 *  Thread Starter [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/unable-to-uninstall-wp-slimstat-from-db/#post-5838105)
 * The error message I receive is: “Cannot delete or update a parent row: a foreing
   key constraint fails for DROP TABLE IF EXISTS wp_slim_browsers” and also “Cannot
   delete or update a parent row: a foreing key constraint fails for DROP TABLE 
   IF EXISTS wp_slim_content_info”.
 * After doing some simple debugging:
 * DROP TABLE IF EXISTS wp_slim_outbound
    DROP TABLE IF EXISTS wp_slim_stats DROP
   TABLE IF EXISTS wp_slim_outbound DROP TABLE IF EXISTS wp_slim_stats DROP TABLE
   IF EXISTS wp_slim_outbound DROP TABLE IF EXISTS wp_slim_stats …
 * A correct uninstall code should generate:
 * DROP TABLE IF EXISTS wp_1_slim_outbound
    DROP TABLE IF EXISTS wp_1_slim_stats
   DROP TABLE IF EXISTS wp_2_slim_outbound DROP TABLE IF EXISTS wp_2_slim_stats 
   DROP TABLE IF EXISTS wp_3_slim_outbound DROP TABLE IF EXISTS wp_3_slim_stats …
 * QA, QA, QA !!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SlimStat Analytics] Unable to uninstall WP Slimstat from DB](https://wordpress.org/support/topic/unable-to-uninstall-wp-slimstat-from-db/)
 *  Thread Starter [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/unable-to-uninstall-wp-slimstat-from-db/#post-5838085)
 * Okay!
 * But can this be related to that we are running WP Slimstat as a WordPress network
   install?
 * I can without problem login to MySql and delete the tables manually, but it is
   obviously something wrong with the uninstall script since no tables are deleted
   when we try and uninstall the plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[mqTranslate] Cannot insert images in text editor](https://wordpress.org/support/topic/cannot-insert-images-in-text-editor/)
 *  [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/cannot-insert-images-in-text-editor/#post-4903344)
 * Version 2.9: “Fixed mislocation of inserted media in the wrong languages when
   using the text editor.”
 * I can confirm that this error is not fixed in version 2.9
 * The problem still exists when calling the send_to_editor function.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[BJ Lazy Load] Option to disable BJ Lazy Load on external loaded images?](https://wordpress.org/support/topic/option-to-disable-bj-lazy-load-on-external-loaded-images/)
 *  Thread Starter [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/option-to-disable-bj-lazy-load-on-external-loaded-images/#post-4790168)
 * Trying one more time and hoping that the Author add this basic(?) functionality:
 * It works great with images but is it also possible you can add this option to
   iframes?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[mqTranslate] Cannot insert images in text editor](https://wordpress.org/support/topic/cannot-insert-images-in-text-editor/)
 *  [KalleL](https://wordpress.org/support/users/kallel/)
 * (@kallel)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cannot-insert-images-in-text-editor/#post-4903335)
 * When is this bug going to be fixed?

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

1 [2](https://wordpress.org/support/users/kallel/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/kallel/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/kallel/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/kallel/replies/page/2/?output_format=md)