PDA

View Full Version : Filter Issues


Billspaintball
01-26-2008, 02:43 AM
Most of my GALs only show if the filter is set to "Auto-Links & Dictionary".
Is there anyway to make this the default filter setting?

I did try just disabling the filter but that meant pretty much nothing was shown in glossary.php.

Morgan
01-26-2008, 10:49 PM
Untested but in the gal_class_vb_db_dictionary file, look for the following and change the default to what is in case two:

function fetch_view_clause($view = 0)
{
$view = intval($view);
$and = '';

switch ($view)
{
case 1:
$and = " AND status = 1 AND asdic = 0 AND asgal = 1 ";
break;

case 2:
$and = " AND status = 1 AND (asdic = 1 OR asgal = 1) ";
break;

case 3:
$and = " AND status = 3 AND asdic = 1 ";
break;

case 4:
$and = " AND status = 0 AND asdic = 1 ";
break;

default:
$and = " AND status = 1 AND asdic = 1 AND asgal = 0 ";

}

return $and;
}