diff options
-rw-r--r-- | phpfspot_cfg.php.dist | 5 | ||||
-rw-r--r-- | phpfspot_tmpl.php | 2 | ||||
-rw-r--r-- | themes/default/templates/header.tpl | 2 | ||||
-rw-r--r-- | themes/default/templates/search.tpl | 2 |
4 files changed, 9 insertions, 2 deletions
diff --git a/phpfspot_cfg.php.dist b/phpfspot_cfg.php.dist index 3583560..f002aeb 100644 --- a/phpfspot_cfg.php.dist +++ b/phpfspot_cfg.php.dist @@ -89,6 +89,11 @@ class PHPFSPOT_CFG { */ var $use_lightbox = true; + /* Use Ajax Auto Completion for tag search. Maybe, if you have a slow + connectivity for the server, it's a good idea to turn it off. + */ + var $use_autocomplete = true; + /* logging = display || errorlog || logfile */ var $logging = "display"; diff --git a/phpfspot_tmpl.php b/phpfspot_tmpl.php index 52c983e..3fdf2ac 100644 --- a/phpfspot_tmpl.php +++ b/phpfspot_tmpl.php @@ -40,6 +40,8 @@ class PHPFSPOT_TMPL extends Smarty { if(isset($parent->cfg->use_lightbox) && $parent->cfg->use_lightbox == true) $this->assign('use_lightbox', 'true'); + if(isset($parent->cfg->use_autocomplete) && $parent->cfg->use_autocomplete == true) + $this->assign('use_autocomplete', 'true'); } // __construct() diff --git a/themes/default/templates/header.tpl b/themes/default/templates/header.tpl index 72257df..e946a5b 100644 --- a/themes/default/templates/header.tpl +++ b/themes/default/templates/header.tpl @@ -14,7 +14,7 @@ <script type="text/javascript" src="lightbox2/js/lightbox.js"></script> <link rel="stylesheet" href="lightbox2/css/lightbox.css" type="text/css" media="screen" /> { /if } - { if ! $use_autocomplete } + { if $use_autocomplete } <script src="autosuggest/js/bsn.AutoSuggest_2.1.3_comp.js"></script> <link rel="stylesheet" href="autosuggest/css/autosuggest_inquisitor.css" type="text/css" media="screen" charset="utf-8" /> { /if } diff --git a/themes/default/templates/search.tpl b/themes/default/templates/search.tpl index ee9a7e1..f983c40 100644 --- a/themes/default/templates/search.tpl +++ b/themes/default/templates/search.tpl @@ -7,7 +7,7 @@ <tr> <td>Tag:</td> <td> - { if ! $use_autocomplete } + { if $use_autocomplete } <input type="text" name="searchfor_tag" id="searchfor_tag" value="{$searchfor_tag}" size="15" acdropdown="true" autocomplete_list="url:rpc.php?action=getxmltaglist&search=[S]&length=10" /> { literal } <script type="text/javascript"> |