Title: forceagainstsomething's Replies | WordPress.org

---

# forceagainstsomething

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [advanced search functionality?](https://wordpress.org/support/topic/advanced-search-functionality/)
 *  [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/advanced-search-functionality/#post-396156)
 * I just started working on a plugin like that last night. I’ve got it here: [http://www.headzoo.com/avsearch.zip](http://www.headzoo.com/avsearch.zip)
 * Right now it only works if you have the Sidebar Widgets plugin installed. Contact
   me using my site’s contact form, [http://www.headzoo.com/contact](http://www.headzoo.com/contact),
   and let me know what kinds of things you’d want in a plugin like this.
 * – Sean
    [http://www.headzoo.com](http://www.headzoo.com)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Using $wpdb-> to access a custom table](https://wordpress.org/support/topic/using-wpdb-gt-to-access-a-custom-table/)
 *  [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/using-wpdb-gt-to-access-a-custom-table/#post-394688)
 * Yeah, I do this for most of my plugins that require their own table. At the top
   of the plugin, just doing this:
 * $wpdb->myplugintable = $table_prefix . ‘myplugintable’;
 * Works just fine.
 * – Sean
    [http://www.headzoo.com](http://www.headzoo.com)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Need Plugin: Categorize Pages](https://wordpress.org/support/topic/need-plugin-categorize-pages/)
 *  [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/need-plugin-categorize-pages/#post-395420)
 * I might look into this. It seems this request keeps popping up, enough so that
   I would think the WP devs already have something like this in the works. But 
   who knows…
 * – Sean
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [New WP Plugin API Cheat Sheet](https://wordpress.org/support/topic/new-wp-plugin-api-cheat-sheet/)
 *  Thread Starter [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/new-wp-plugin-api-cheat-sheet/#post-395830)
 * I thought about that too. Or even when you click on a specific action/filter/
   function, it slides down to reveal a description. Maybe… we’ll see.
 * – Sean
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Your Top 10 plugins list?](https://wordpress.org/support/topic/your-top-10-plugins-list/)
 *  [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/your-top-10-plugins-list/#post-395326)
 * I’d have to say Spam Karma for sure, cause not having a spam protection plugin
   is like walking into a lions den wearing a steak suit.
    Sidebar Widgets is another
   must have. My own plugin, Edit N Place, because it lets you edit your blog post
   on the front page of your blog. Ultimate Tag Warrior for all your tagging needs.
   And although technically it’s a theme, K2 is another must have in my opinion.
 * – Sean
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [New Plugin: Live](https://wordpress.org/support/topic/new-plugin-live/)
 *  Thread Starter [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/new-plugin-live/#post-395258)
 * Howdy all,
    I just put up v0.2. This one makes the plugin a bit prettier, and
   it shows the referring page for page hits.
 * – Sean
    [http://www.headzoo.com](http://www.headzoo.com)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [ONE link to ONE random post](https://wordpress.org/support/topic/one-link-to-one-random-post/)
 *  [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/one-link-to-one-random-post/#post-393727)
 * “Warning: there are multiple articles on how ORDER BY RAND() is pretty evil, 
   and NOT something you want to do constantly.”
 * To be perfectly honest, anything that the RAND() function does is likely a drop
   in the bucket when it comes to WP’s poor queries. A RAND() query is like a bad
   pebble in a big pile of bad rocks when it comes to WP.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Feedwordpress no link in the single page](https://wordpress.org/support/topic/feedwordpress-no-link-in-the-single-page/)
 *  [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/feedwordpress-no-link-in-the-single-page/#post-395250)
 * Check the theme you’re using. It’s built into the theme what is shown in the 
   sidebar on the index page, and on single pages.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Different themes for different resolutions plugin](https://wordpress.org/support/topic/different-themes-for-different-resolutions-plugin/)
 *  [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/different-themes-for-different-resolutions-plugin/#post-393711)
 * kentl,
    I would strongly suggest you just let this idea go. You are not even 
   remotely close to being the first person to think of this, not by a very, very,
   very long shot. But you’ll notice that it’s not being done. Why? Because it’s
   just not worth it.
 * It *can* be done if you really want. You can use JavaScript in the head of the
   document to redirect the visitor to a specific URL for their resolution.
 * – Sean
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [ONE link to ONE random post](https://wordpress.org/support/topic/one-link-to-one-random-post/)
 *  [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/one-link-to-one-random-post/#post-393710)
 * Oh hell.. here:
 * [http://www.headzoo.com/randpost.zip](http://www.headzoo.com/randpost.zip)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [ONE link to ONE random post](https://wordpress.org/support/topic/one-link-to-one-random-post/)
 *  [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/one-link-to-one-random-post/#post-393709)
 * Oops, the last line in the function should be this:
 * return $content . “
   [Random Post](https://wordpress.org/support/users/forceagainstsomething/replies/$link?output_format=md)“;
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [ONE link to ONE random post](https://wordpress.org/support/topic/one-link-to-one-random-post/)
 *  [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/one-link-to-one-random-post/#post-393708)
 * MySQL already has a RAND() function that you can use for this. This plugin only
   requires 1 query. Here is the whole plugin. Just copy and paste into a file with
   a PHP extension, and put it in your plugins directory:
 * <?php
    /** Plugin Name: Random Post Author: Sean Hickey Description: Display 
   a link to a random post */ $randpost_results = $wpdb->get_results(“SELECT ID 
   FROM $wpdb->posts WHERE post_status = ‘publish’ ORDER BY RAND() LIMIT 20”, ARRAY_A);
   $randpost_counter = 0; add_action(‘the_content’, ‘randpost_theContent’); function
   randpost_theContent($content) { global $randpost_counter, $randpost_results, 
   $post; $thisPostID = $post->ID; $stopper = 0; $randPostID = $thisPostID; while(
   $randPostID == $thisPostID) { $randPostID = $randpost_results[$randpost_counter][‘
   ID’]; $randpost_counter++; $stopper++; if ($stopper > 20) break; } $link = get_permalink(
   $randPostID); return $content . “[Random Post](https://wordpress.org/support/users/forceagainstsomething/replies/$link?output_format=md)“;}
 * ?>
 * – Sean
    [http://www.headzoo.com](http://www.headzoo.com)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Plugin Doesn’t Show Up in Plugins Page](https://wordpress.org/support/topic/plugin-doesnt-show-up-in-plugins-page/)
 *  [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/plugin-doesnt-show-up-in-plugins-page/#post-395133)
 * I’m not actually sure the site’s search is working. For the past couple days,
   I’ve gotten no results for *anything* I search for, even things I search for 
   all the time.
 * As for your problem, have you tried looking closely at the directory structure
   of a working blog, with the one that’s not working?
 * – Sean
    [http://www.headzoo.com](http://www.headzoo.com)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [New Plugin: Live](https://wordpress.org/support/topic/new-plugin-live/)
 *  Thread Starter [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/new-plugin-live/#post-395131)
 * Oops. My bad. 🙂 I’ll have to take a look at the documentation again.
 * The only thing stopping the plugin from working with WP 1.5, is 1.5 doesn’t include
   the Ajax scripts that the plugin uses. You can download the scripts yourself 
   from:
 * [http://twilightuniverse.com/resources/code/sack/](http://twilightuniverse.com/resources/code/sack/)
 * Just put the scripts in /wp-includes/js, and add this to the adminjs.php script
   included with the plugin:
 * <script type=”text/javascript” src=”<?php echo get_bloginfo(‘url’); ?>/wp-includes/
   js/tw-sack.js”></script>
 * Everything should work after that.
 * – Sean
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [plugins not working](https://wordpress.org/support/topic/plugins-not-working-1-2/)
 *  [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years ago](https://wordpress.org/support/topic/plugins-not-working-1-2/#post-390149)
 * KaySue,
    Plugins are written by lots of different people, and they are all unique.
   Where you configure them also depends on the plugin. Many plugins, after you 
   activate them, will place a new menu under the top Options menu. So after activating
   the plugin, click the Options tab, and look for a sub tab for that plugin.
 *  You do need to activate the plugins. Just uploading them is not enough. From
   the Plugins menu, you will see a list of all *installed* plugins… just because
   they are installed doesn’t mean they are activated. You must click the “Activate”
   link in the far right column. On the plugins menu, you see the rows of installed
   plugins. If the row is grey or white colored, the plugin is *not* activated. 
   If it is green, it is activated.

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

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