Title: lxg's Replies | WordPress.org

---

# lxg

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

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

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/mastermind/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/mastermind/replies/page/3/?output_format=md)…
[7](https://wordpress.org/support/users/mastermind/replies/page/7/?output_format=md)
[8](https://wordpress.org/support/users/mastermind/replies/page/8/?output_format=md)
[9](https://wordpress.org/support/users/mastermind/replies/page/9/?output_format=md)
[→](https://wordpress.org/support/users/mastermind/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Fancybox for WordPress] Multiple Galleries on One Page](https://wordpress.org/support/topic/plugin-fancybox-for-wordpress-1/)
 *  [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-fancybox-for-wordpress-1/#post-2900512)
 * I had the same issue today, I solved it like this: On the plugin settings page,
   go to the “Galleries” tab and select “Use a custom expression to apply FancyBox”.
   Then paste the following code into the textarea:
 *     ```
       var gCount = 0;
       jQuery('div.gallery').each(function(k, $gallery){
           ++gCount;
           jQuery(thumbnails).each(function(k2, thumb){
               var $thumb = jQuery(thumb);
               if ($thumb.closest($gallery).length)
               {
                   $thumb.addClass("fancybox").attr("rel","fancybox"+gCount).getTitle();
               }
           });
       });
       ```
   
 * NB: There are dozens of forum post related to this issue, however they relate
   to different implementations of Fancybox plugins for WP. This fix refers only
   to the “Fancybox for WordPress” plugin found at [http://wordpress.org/extend/plugins/fancybox-for-wordpress/](http://wordpress.org/extend/plugins/fancybox-for-wordpress/).
 * Sorry for digging up a 7 months old post, but this issue seems to bother quite
   a lot of people, so I thought a fix might be helpful.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Same term in new taxonomy – how?](https://wordpress.org/support/topic/same-term-in-new-taxonomy-how/)
 *  Thread Starter [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/same-term-in-new-taxonomy-how/#post-2273012)
 * Ok, got it … I didn’t know that `term_exists()` is comparing by _name_, not by
   _slug_. Turned out that one term started with a lowercase letter, while the new
   one was uppercase.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Same term in new taxonomy – how?](https://wordpress.org/support/topic/same-term-in-new-taxonomy-how/)
 *  Thread Starter [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/same-term-in-new-taxonomy-how/#post-2273010)
 * Wow, that’s weird … for one term, WordPress reuses the existing term entry, for
   another term it creates a new slug. :-/ Let’s go bug hunting …
 *   Forum: [Alpha/Beta/RC](https://wordpress.org/support/forum/alphabeta/)
    In 
   reply to: [network upgrade failing on ssl only site with self-singed cert](https://wordpress.org/support/topic/network-upgrade-failing-on-ssl-only-site-with-self-singed-cert/)
 *  [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/network-upgrade-failing-on-ssl-only-site-with-self-singed-cert/#post-1926234)
 * We had the same situation, the solution is:
 * Create a MU plugin with the following content
 *     ```
       <?php
       add_filter('https_ssl_verify', '__return_false');
       add_filter('https_local_ssl_verify', '__return_false');
       ?>
       ```
   
 * and try again. 🙂
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Make custom post type primary post type](https://wordpress.org/support/topic/make-new-post-type-primary-post-type/)
 *  Thread Starter [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/make-new-post-type-primary-post-type/#post-1989621)
 * I found a solution for the Permalink issue: I have set `'_builtin'=>true` in 
   the `register_post_type()` call.
 * I know it’s marked as internal feature and not recommended for plugin developers,
   but this exactly the feature that solved my problem.
 * All other problems are all solved, too.
 *   Forum: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
   
   In reply to: [Codex home messed up [solved]](https://wordpress.org/support/topic/codex-home-messed-up/)
 *  Thread Starter [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/codex-home-messed-up/#post-1398463)
 * Ok, somebody did have a look quite quickly. 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Search is recognizing pages as posts](https://wordpress.org/support/topic/search-is-recognizing-pages-as-posts/)
 *  [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/search-is-recognizing-pages-as-posts/#post-1063524)
 * _Bit of an old post, but I think that there are enough people with the same problem,
   so I’ll just post the solution._
 * You must know that this behaviour is on purpose. But the solution is quite simple.
   Put the following code into a file named `dontsearchpages.php`, upload it to 
   your plugins directory and activate it on the Plugins page of your blog.
 *     ```
       <?php
   
       /*
       Plugin Name: Don't search pages
       Plugin URI: http://lxg.de
       Description: Disable searching of pages.
       Version: 0.1
       Author: Alex Günsche
       Author URI: http://lxg.de
       */
   
       function lxg_dontsearchpages($query)
       {
       	if (is_search())
       		$query = str_replace
       			("AND wp_posts.post_type != 'revision'",
       			"AND wp_posts.post_type != 'revision' AND wp_posts.post_type != 'page'",
       			$query);
   
       	return $query;
       }
   
       add_filter('posts_where', 'lxg_dontsearchpages');
   
       ?>
       ```
   
 * Tested with WP 2.9.1 – may not work with earlier or later versions, as this is
   quite a dirty hack.
 * Inspired by an early WordPress plugin called Search Pages – which did the opposite
   of this one, back when WordPress _didn’t_ search posts. 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Cannot access settings – (contact form)](https://wordpress.org/support/topic/cannot-access-settings-contact-form/)
 *  [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/cannot-access-settings-contact-form/#post-1188106)
 * I had the same problem. The plugin has always worked for me, but I now installed
   it on a new blog. (On my other blogs, I didn’t even realize that the options 
   page didn’t work.)
 * The solution is simple, because it’s basically a little bug, which only in newer
   WP versions causes the loading of the page to fail.
 * In the file `wp-contactform.php`, almost at the bottom, replace
 * `add_action('admin_head', 'wpcf_add_options_page');`
 * with
 * `add_action('admin_menu', 'wpcf_add_options_page');`
 * and you’re done.
 * Btw, you might also want to set the plugin’s version number to 999, elsewise 
   it will always suggest an upgrade … however, if you upgrade, you’ll get a different
   plugin than WP Contact Form III.
 * ***
 * Still a fan of WPCF III — simple and does the job.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: WP Super Cache] Caches 404 pages incorrectly](https://wordpress.org/support/topic/plugin-wp-super-cache-caches-404-pages-incorrectly/)
 *  [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [18 years ago](https://wordpress.org/support/topic/plugin-wp-super-cache-caches-404-pages-incorrectly/#post-756676)
 * Just to support Ashley a bit … 😉 The same problem with SuperCache occurs at 
   a customer of mine.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[New plugin monetizing idea] Donations Cloud](https://wordpress.org/support/topic/new-plugin-monetizing-idea-donations-cloud/)
 *  Thread Starter [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [18 years ago](https://wordpress.org/support/topic/new-plugin-monetizing-idea-donations-cloud/#post-743727)
 * [Version 0.1.1 is available](http://www.zirona.com/software/wordpress-donations-cloud/)—
   now with widgets support.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [How to do an auto login with WP 2.5?](https://wordpress.org/support/topic/how-to-do-an-auto-login-with-wp-25/)
 *  [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [18 years ago](https://wordpress.org/support/topic/how-to-do-an-auto-login-with-wp-25/#post-744014)
 * Use single quotes, elsewise `"$foo"` will output the value of the variable `$
   foo`.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[New plugin monetizing idea] Donations Cloud](https://wordpress.org/support/topic/new-plugin-monetizing-idea-donations-cloud/)
 *  Thread Starter [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [18 years ago](https://wordpress.org/support/topic/new-plugin-monetizing-idea-donations-cloud/#post-743520)
 * Glad you like it. 🙂
 * If you try it out, I’d be glad to hear about your experience.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [new plugins](https://wordpress.org/support/topic/new-plugins/)
 *  [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/new-plugins/#post-572188)
 * Maybe the plugins eat too much memory, and/or your host has too few memory for
   PHP.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [RFC: A professional WordPress API](https://wordpress.org/support/topic/rfc-a-professional-wordpress-api/)
 *  [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [19 years ago](https://wordpress.org/support/topic/rfc-a-professional-wordpress-api/#post-559401)
 * LesBessant: I agree, but I just couldn’t leave that first post uncommented.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [RFC: A professional WordPress API](https://wordpress.org/support/topic/rfc-a-professional-wordpress-api/)
 *  [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [19 years ago](https://wordpress.org/support/topic/rfc-a-professional-wordpress-api/#post-559399)
 * jnt72: This is nonsense.
 * The DB tables are prefixed because this allows having tables for more than one
   application in one database. It is merely a bonus for people who have limited
   hosting ressources.
 * The PHP functions/variables/etc. don’t have to be prefixed, as those descriptors
   don’t collide with other applications. And it’s up to the theme/plugin authors
   to prefix their descriptors, as they write code based on the core system.
 * > _Other solution would be to encapsulate the whole WordPress-thingy in a class(
   > yes, a bit like $wpdb) and ONE single, global instance provides all methods/
   > data. Would be a much cleaner interface imho._
 * Go home, kid.

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

1 [2](https://wordpress.org/support/users/mastermind/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/mastermind/replies/page/3/?output_format=md)…
[7](https://wordpress.org/support/users/mastermind/replies/page/7/?output_format=md)
[8](https://wordpress.org/support/users/mastermind/replies/page/8/?output_format=md)
[9](https://wordpress.org/support/users/mastermind/replies/page/9/?output_format=md)
[→](https://wordpress.org/support/users/mastermind/replies/page/2/?output_format=md)