to the div containing each individual entry, thus getting something like:
Then add:
=$filterz_html_code?>
anywhere in your page (e.g. sidebar) to output the filterz buttons.
I'm working on offering a cleaner interface to set the meta-filterz, right now you must enter them manually in the array (cf example).
drDave wants to extend his warmest thanks to his master Guinea Pig^W^W Beta-Tester: RandyWalker (http://RandyWalker.net) as well as Skippy (http://skippy.net) and Masquerade
Version: 1.2b
Author: drDave
Author URI: http://unknowngenius.com/blog/
wp-filterz configuration ERROR: can open preference file. Need a file named wp-filterz-prefs.php located in the wp-content folder. See instructions for details.
";
return;
}
if (!isset($sup_selector))
$sup_selector = ".blog"; // div containing your posts divs (can be left empty)
if (!isset($start_unchecked))
$start_unchecked = true;
if (!isset($filterz))
$filterz_html_code = "wp-filterz configuration ERROR: you need to provide a set of meta-filters in a valid preference file (wp-filterz-prefs.php) located in the wp-content folder. See instructions for details.
";
$browser = SniffBrowser();
if (($browser['dom'] == "NS") || ($browser['dom'] == "W3C"))
{
$rules = "cssRules";
}
elseif($browser['dom'] == "IE")
{
$rules = "rules";
}
else // no can do...
{
$filterz_html_code = "This section contains a cool dynamic filtering feature for this site, but it is hidden because your browser is not supported (needs Mozilla 6+ or MSIE 5+ compatible browser). Sorry. A LITTLE BIRD TELLS ME YOUR BROWSER IS '" . print_r($browser, true) . "'
Please contact me if your browser is not correctly detected.
";
return;
}
if ($help)
$filterz_html_code = $help;
else
$filterz_html_code = "Checking the boxes below will dynamically filter out content that doesn't fit your interests.
Check to hide:";
$filterz_html_code .= "";
?>
= 4 ||
$type == 'Explorer' && $vers >= 3 ||
$type == 'Opera' && $vers >= 3) {
$browser['css'] = 1;
if ($type == 'Netscape' && $vers >= 5 ||
$type == 'Explorer' && $vers >= 6 ||
$type == 'Opera' && $vers >= 4) {
$browser['css'] = 2;}}
// detect DOM version
$browser['dom'] = '0';
if ($type == 'Explorer' && $vers >= 4 && $browser['platform'] == 'Windows') {
// note: it is unknown which DOM model future versions of Explorer will use
$browser['dom'] = 'IE';}
elseif ($type == 'Opera' && $vers >= 5) {
$browser['dom'] = 'W3C';}
elseif ($type == 'Netscape') {
if ($vers >= 5) $browser['dom'] = 'W3C';
elseif ($vers >= 4) $browser['dom'] = 'NS';}
// return array of answers
return $browser;}
function filterz_class()
{
$categories = get_the_category();
foreach($categories as $this_cat)
echo " cat", $this_cat->category_id, "x";
echo "\" id=\"block-";
the_ID();
}
add_action('wp_head', 'echo_headers');
?>