Changeset 22214


Ignore:
Timestamp:
Apr 15, 2013, 6:08:30 AM (11 years ago)
Author:
rvelices
Message:
 
Location:
extensions/rv_autocomplete
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_autocomplete/admin/config.tpl

    r22201 r22214  
    1010</form>
    1111
    12 <form method="post">
     12<!-- <form method="post">
    1313<fieldset>
    1414<label>Ideal number of suggestions <input type="text" size="2" name="" value="5" readonly></label>
     
    2828</fieldset>
    2929
    30 </form>
     30</form>-->
    3131
    3232</div>
  • extensions/rv_autocomplete/admin/exclude.php

    r22201 r22214  
    99  {
    1010    if (!empty($_POST[$k]))
     11    {
    1112      $rvac_conf[$k] = $_POST[$k];
     13      foreach($rvac_conf[$k] as &$v)
     14      {
     15        $v=intval($v);
     16      }
     17      unset($v);
     18    }
    1219    else
    1320      $rvac_conf[$k] = array();
  • extensions/rv_autocomplete/main.inc.php

    r22201 r22214  
    11<?php /*
    22Plugin Name: RV autocomplete
    3 Version: 0
     3Version: 0.beta
    44Description: Autocompletes the quick search with albums, tags or custom suggestions
     5Plugin URI: http://piwigo.org/ext/extension_view.php?eid=694
    56Author: rvelices
    67Author URI: http://www.modusoptimus.com/
     
    1415
    1516function rvac_get_data_file() {
    16   global $user,$conf;
    17   $f = PWG_COMBINED_DIR.'acds-';
    18   $f .= $conf['rvac_version'];
    19   $keys = array( $user['language'], $user['nb_total_images'] );
    20   $f .= '-'.base_convert(crc32( implode('-', $keys ) ), 10, 36);
    21   $f .= '.js';
    22   return $f;
     17        global $user,$conf;
     18        $f = PWG_COMBINED_DIR.'acds-';
     19        $f .= $conf['rvac_version'];
     20        $keys = array( $user['language'], $user['nb_total_images'], $user['level'], strlen($user['forbidden_categories']) );
     21        $f .= '-'.base_convert(crc32( implode('-', $keys ) ), 10, 36);
     22        $f .= '.js';
     23        return $f;
    2324}
    2425
     
    4142  if ($mb_arr[0]->get_id() != 'menubar' )
    4243    return;
    43   //if (!is_admin()) return;
     44
    4445  global $template;
    4546
Note: See TracChangeset for help on using the changeset viewer.