Changeset 5084


Ignore:
Timestamp:
03/08/10 22:35:31 (10 years ago)
Author:
Eric
Message:

[NBC_UserAdvManager] Pre-2.14.0

  • Improving upgrade process
  • Removing obsolete files
  • Bug 1467 : Pending FCK Editor functions because there is still a problem with special characters transformed to code. They are not correctly displayed in email received and i'ven't found a solution at this time.
  • Bug 1488 fixed : When an admin creates an account, an information email is always sent to created user if this option is enabled.
Location:
extensions/NBC_UserAdvManager/trunk
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php

    r5073 r5084  
    7171// +----------------------------------------------------------+ 
    7272 
    73 /* Standby because this may cause too many problems with (;) in text fields */ 
    74 $toolbar = 'Basic'; 
     73/* Pending because this may cause problems with special characters in emails */ 
     74/*$toolbar = 'Basic'; 
    7575$width = '750px'; 
    7676$height = '300px'; 
    7777$areas = array(); 
    7878array_push( $areas,'UAM_MailInfo_Text','UAM_ConfirmMail_Text','UAM_GhostTracker_ReminderText','UAM_ConfirmMail_ReMail_Txt1','UAM_ConfirmMail_ReMail_Txt2'); 
    79   
     79 
    8080if (function_exists('set_fckeditor_instance')) 
     81{ 
     82  $fcke_config = unserialize($conf['FCKEditor']); 
     83  foreach($areas as $area) 
     84  { 
     85    if (!isset($fcke_config[$area])) 
     86    { 
     87      $fcke_config[$area] = false; 
     88    } 
     89  } 
     90  $conf['FCKEditor'] = serialize($fcke_config); 
     91 
    8192  set_fckeditor_instance($areas, $toolbar, $width, $height); 
     93}*/ 
    8294 
    8395 
  • extensions/NBC_UserAdvManager/trunk/admin/global.tpl

    r5073 r5084  
    123123          </li> 
    124124{/if} 
     125<!-- 
    125126{if 'FCK_PATH'|@defined} 
    126127  <div style="text-align:right;"> 
     
    128129  </div> 
    129130{/if} 
     131--> 
    130132        </ul> 
    131133 
     
    155157          </li> 
    156158{/if} 
     159<!-- 
    157160{if 'FCK_PATH'|@defined} 
    158161  <div style="text-align:right;"> 
     
    160163  </div> 
    161164{/if} 
     165--> 
    162166        </ul> 
    163167 
     
    224228        </li> 
    225229{/if} 
     230<!-- 
    226231{if 'FCK_PATH'|@defined} 
    227232  <div style="text-align:right;"> 
     
    229234  </div> 
    230235{/if} 
     236--> 
    231237 
    232238{if $UAM_CONFIRMMAIL_REMAIL_TRUE} 
     
    245251        </li> 
    246252{/if} 
     253<!-- 
    247254{if 'FCK_PATH'|@defined} 
    248255  <div style="text-align:right;"> 
     
    250257  </div> 
    251258{/if} 
     259--> 
    252260        </ul> 
    253261      </ul> 
     
    287295          </li> 
    288296{/if} 
     297<!-- 
    289298{if 'FCK_PATH'|@defined} 
    290299  <div style="text-align:right;"> 
     
    292301  </div> 
    293302{/if} 
     303--> 
    294304        </ul> 
    295305     
  • extensions/NBC_UserAdvManager/trunk/changelog.txt.php

    r5064 r5084  
    148148            Evolution 1485 - The admin's can choose if the validation of registration have to be sent to users created by them 
    149149            Improving obsolete files cleaning 
     150            Evolution 1488 - When an admin creates an account an information email is always sent to created user 
    150151            Code simplification - All variables are changed from "UserAdvManager" to "UAM" 
    151152*/ 
  • extensions/NBC_UserAdvManager/trunk/include/functions.inc.php

    r5064 r5084  
    9898    } 
    9999  } 
     100 
     101/* ******************************************************** */ 
     102/* **** Pending code since to find how to make it work **** */ 
     103/* ******************************************************** */ 
     104// Testing if FCK Editor is used. Then decoding htmlchars to avoid problems with pwg_mail() 
     105/*$areas = array(); 
     106array_push( $areas,'UAM_MailInfo_Text','UAM_ConfirmMail_Text'); 
     107 
     108if (function_exists('set_fckeditor_instance')) 
     109{ 
     110  $fcke_config = unserialize($conf['FCKEditor']); 
     111  foreach($areas as $area) 
     112  { 
     113    if (isset($fcke_config['UAM_MailInfo_Text']) and $fcke_config['UAM_MailInfo_Text'] = true) 
     114    { 
     115      $infos1_perso = html_entity_decode($infos1_perso,ENT_QUOTES,UTF-8); 
     116    } 
     117     
     118    if (isset($fcke_config['UAM_ConfirmMail_Text']) and $fcke_config['UAM_ConfirmMail_Text'] = true) 
     119    { 
     120      $infos2_perso = html_entity_decode($infos2_perso,ENT_QUOTES,UTF-8); 
     121    } 
     122  } 
     123}*/ 
     124 
    100125 
    101126/* Sending the email with subject and contents */ 
  • extensions/NBC_UserAdvManager/trunk/maintain.inc.php

    r5064 r5084  
    280280function upgrade_213() 
    281281{ 
    282   $data = explode(';', $conf['nbc_UserAdvManager']); 
     282        global $conf; 
     283   
     284  $conf_UAM = explode(';', $conf['nbc_UserAdvManager']); 
     285 
     286  $upgrade_UAM = array("'".$conf_UAM[0]."'","'".$conf_UAM[1]."'","'".$conf_UAM[2]."'",$conf_UAM[3],$conf_UAM[4],$conf_UAM[5],"'".$conf_UAM[6]."'","'".$conf_UAM[7]."'","'".$conf_UAM[8]."'",$conf_UAM[9],"'".$conf_UAM[10]."'","'".$conf_UAM[11]."'","'".$conf_UAM[12]."'","'".$conf_UAM[13]."'","'".$conf_UAM[14]."'","'".$conf_UAM[15]."'","'".$conf_UAM[16]."'","'".$conf_UAM[17]."'","'".$conf_UAM[18]."'","'".$conf_UAM[19]."'","'".$conf_UAM[20]."'",'false'); 
    283287 
    284288  $query = ' 
    285289UPDATE '.CONFIG_TABLE.' 
    286   SET value = "'.addslashes(serialize($data)).'" 
     290  SET value = "'.addslashes(serialize($upgrade_UAM)).'" 
    287291  WHERE param = "nbc_UserAdvManager" 
    288292;'; 
Note: See TracChangeset for help on using the changeset viewer.