Title: Felix's Replies | WordPress.org

---

# Felix

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[EWWW Image Optimizer] Bulk Optimize Import to DB interrupted](https://wordpress.org/support/topic/bulk-optimize-import-to-db-interrupted/)
 *  Thread Starter [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/bulk-optimize-import-to-db-interrupted/#post-5042822)
 * Sorry for the late reply.
 * For final validating, I like to use [JSLint](http://www.jslint.com/). However,
   you will most likely have to change the default options for your code to pass.
   It will always be best to adjust the options so that the code passes instead 
   of ignoring errors.
 * It will be easier for you if you have some Linting in your Editor. You could 
   for example use SublimeLinter for [Sublime Text 3](http://www.sublimetext.com/3)
   with the [gjslint](https://sublime.wbond.net/packages/SublimeLinter-gjslint) 
   plugin (Interface for Google Closure Linter).
 * If you need any help or more resources, I can email you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[EWWW Image Optimizer] Bulk Optimize Import to DB interrupted](https://wordpress.org/support/topic/bulk-optimize-import-to-db-interrupted/)
 *  Thread Starter [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/bulk-optimize-import-to-db-interrupted/#post-5042642)
 * Haha, cool I was looking at the code and couldn’t find any updates so I modified
   it myself.
 * It’s running now and working quite well. I will update the plugin when it’s done
   with all posts and try out your method.
 * You might want to consider optimizing the whole eio. It’s pretty confusing from
   a code style point of view and also doesn’t pass validation.
 * Good job tho, don’t get me wrong 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[EWWW Image Optimizer] Bulk Optimize Import to DB interrupted](https://wordpress.org/support/topic/bulk-optimize-import-to-db-interrupted/)
 *  Thread Starter [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/bulk-optimize-import-to-db-interrupted/#post-5042557)
 * Okay, cool!
 * Looking forward to see what you come up with.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Theme Test Drive] Malware Warning!](https://wordpress.org/support/topic/malware-warning/)
 *  Thread Starter [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/malware-warning/#post-3830196)
 * Well the authors site is called in the plugin, thus affecting any admin who opens
   the plugins settings page. That’s why I brought it to attention.
 * Thank you
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Theme Test Drive] Malware Warning!](https://wordpress.org/support/topic/malware-warning/)
 *  Thread Starter [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/malware-warning/#post-3830193)
 * Naw, I’m not hacked. The plugin settings page contains an iframe at the authors
   website (latest version after re-install)
 * `http://prelovac.com/plugin/news.php?id=5&utm_source=plugin&utm_medium=plugin&
   utm_campaign=Theme%252BTest%252BDrive`
 * Is the origin of the malware warning. Try this url in Chrome. It’s straight from
   the plugin.
 * The author should maybe take a look at that.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Infinitly many pages](https://wordpress.org/support/topic/infinitly-many-pages/)
 *  Thread Starter [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [13 years ago](https://wordpress.org/support/topic/infinitly-many-pages/#post-3710877)
 * hmm, sorry can’t make the code public. I doubt that the problem has anything 
   to do with the code surrounding the main query because the same template is also
   used by the category and tag and search pages and those don’t have the problem.
   They are using the unmodified query.
 * `if (have_posts()) : while (have_posts()) : the_post();`
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Infinitly many pages](https://wordpress.org/support/topic/infinitly-many-pages/)
 *  Thread Starter [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [13 years ago](https://wordpress.org/support/topic/infinitly-many-pages/#post-3710831)
 * Thanks for the advice. Changed all non-main loops to use WP_Query. However, both
   errors keep occurring.
 * They also only appear on the main page and the popular page.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Infinitly many pages](https://wordpress.org/support/topic/infinitly-many-pages/)
 *  Thread Starter [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [13 years ago](https://wordpress.org/support/topic/infinitly-many-pages/#post-3710783)
 * I have a few other queries before that one on the same page, yes.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Infinitly many pages](https://wordpress.org/support/topic/infinitly-many-pages/)
 *  Thread Starter [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [13 years ago](https://wordpress.org/support/topic/infinitly-many-pages/#post-3710750)
 *     ```
       wp_reset_query();
   
       $args = array(
           'category_name' => 'test',
           'posts_per_page' => 12,
           'meta_key' => 'post_views_count',
           'orderby' => 'meta_value_num',
           'order' => 'DESC',
           'paged' => $paged
       );
   
       query_posts($args); while (have_posts()): the_post();
       ```
   
 * ^This
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Images only for registered](https://wordpress.org/support/topic/images-only-for-registered/)
 *  [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/images-only-for-registered/#post-3568040)
 * Well you can use that php snippet to do almost anything. Here is what it would
   look like if you want your image to only display to logged in users. Note that
   this will only work in your template and not for posted content
 *     ```
       global $user_ID; if( $user_ID ) { if( current_user_can('level_0') ) {
   
        echo '<img src="intro10.jpg">';
   
        } else {
   
        echo 'you have to be logged in to see this picture';
   
        }
       }
       ```
   
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Images only for registered](https://wordpress.org/support/topic/images-only-for-registered/)
 *  [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/images-only-for-registered/#post-3568031)
 * You can use this code to display content according to user levels in your theme:
 *     ```
       global $user_ID; if( $user_ID ) { if( current_user_can('level_10') ) {
   
        // stuff only level 10 users can see
   
        } else {
   
        // stuff everyone else can see
   
        }
       }
       ```
   
 * level_10 targets page admins. For all user levels check this page:
    [http://codex.wordpress.org/User_Levels](http://codex.wordpress.org/User_Levels)
 * To check if a user is simply restricted you should use level_0
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Fields Creator] add_post_meta for repeater fields?](https://wordpress.org/support/topic/add_post_meta-for-repeater-fields/)
 *  Thread Starter [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/add_post_meta-for-repeater-fields/#post-3568374)
 * I got this to work with update_post_meta and the multi array value
 * array( array ( “field” => “value , … ) ).
 * However, when I do the same with add_post_meta, WCK will not recognize the data.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[EWWW Image Optimizer] jpeg tran installed but not recognized?](https://wordpress.org/support/topic/jpeg-tran-installed-but-not-recognized-1/)
 *  Thread Starter [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/jpeg-tran-installed-but-not-recognized-1/#post-3283575)
 * I tried installing pngout and gifsicle for testing if they would work (I don’t
   actually need them).
 * However, EWWW did not recognize them.
 * Also, since the last update, it says, that there is an update for jpegtran which
   I also can’t seem to get working either by manual or automatic installation.
 * It’s probably something with the server. Thanks for helping nevertheless!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[EWWW Image Optimizer] jpeg tran installed but not recognized?](https://wordpress.org/support/topic/jpeg-tran-installed-but-not-recognized-1/)
 *  Thread Starter [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/jpeg-tran-installed-but-not-recognized-1/#post-3283573)
 * Thanks for your answer!
 * Sadly, I still experience the same problem. The status report gives an “OK” on
   everything except for “mime_content_type(): MISSING”.
 * The processing will still “work” but there won’t be any savings.
 * This is true for original uploads, bulk optimization and single optimization (
   tested with unoptimized large jpgs).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Fields Creator] Conditional statement with array value always false](https://wordpress.org/support/topic/conditional-statement-with-array-value-always-false/)
 *  Thread Starter [Felix](https://wordpress.org/support/users/ltse/)
 * (@ltse)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/conditional-statement-with-array-value-always-false/#post-3260244)
 * Thanks for your reply. Sadly, that method will always return a true (might be
   the php version and isset problem with multidimensional arrays?)
 * Anyway, this will do the trick even though it’s not pretty:
 *     ```
       <?php $info = get_post_meta($post->ID, 'info', true);  foreach($info as $info) { 
   
        if ($info['test']) { echo 'true'; } else { echo 'false'; }
   
         }  ?>
       ```
   

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

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