Ignore:
Timestamp:
Jun 10, 2010, 9:43:05 PM (14 years ago)
Author:
vdigital
Message:

2.1.b fixes first release bugs:

  • Default user level is fixed
  • Default selectors review ( photoWidget could not be supported )
  • Lightbox, HD Shadowbox and akBookStyle are supported
  • Merge of selectors ( default and customized ) is fixed
  • jQuery generated has been reviewed and simplified
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rightClick/rightClick_protect.php

    r6502 r6515  
    99        function  rightClick_protect() {
    1010                global $template, $user, $conf;
    11                 if (!isset($conf['rightClick_level'])) list ($Maxlvl) = array_slice($conf['available_permission_levels'],-1);
     11                if (!isset($conf['rightClick_level'])) $Maxlvl = max($conf['available_permission_levels']);
    1212                else $Maxlvl = $conf['rightClick_level'];
    1313                if ($user['level'] >= $Maxlvl) return;
    14                 $default = array( '#theImage img', '#photoWidget', 'img#akPicture', 'img#cboxPhoto', 'img#sb-body-inner', );
     14                $default = array( '#theImage img', '#akPicture', '#colorbox', '#sb-container', );
    1515                if (!isset($conf['rightClick_selectors'])) $conf['rightClick_selectors'] = array();
    16                 $conf['rightClick_selectors'] = array_unique( $default + $conf['rightClick_selectors'] );
     16                $conf['rightClick_selectors'] = array_unique( array_merge($default, $conf['rightClick_selectors']) );
    1717               
    1818                $template->set_filenames(array(
Note: See TracChangeset for help on using the changeset viewer.