URGENT ET IMPORTANT: tinyMCE et iManager
Résolu
matmar08120
Messages postés
140
Date d'inscription
Statut
Membre
Dernière intervention
-
TVorace -
TVorace -
Bonjour,
Je veux permettre l'upload d'image avec l'editeur tinyMCe avec le plugin imanager qui permet cette solution.
Le probleme est que quand je clique sur l'icone imanager dans le traitement de texte rien ne se passe. Voici ce que j'ai fait:
J'ai lu la doc de imanager qui me disait d' effectuer cette tâche:
tinyMCE.init({
...
plugins : "imanager",
theme_advanced_buttons3_add : "imanager",
...
});
ensuite il me demande en anglais ceci:
tinyMCE interface
-----------------
copy the provided interface file: tinyMCE.editor_plugin.js file into your iManager plugin
directory and rename it to "editor_plugin.js". Make a copy of it and rename it to editor_plugin_src.js.
je comprends qu'il faut copié le fichier 'tinyMCE.editor_plugin.js' dans le repertoire d'imanager et le renommer par 'editor_plugin.js'..
Mais je suis trèes nul en anglais.lol si quelqu'un peut m'aider pour cette partie :) merci
//autre partie
2. Permission settings
---------------------------------------------------
Make sure the following directories have writing
permission (chmod to 0755):
iManager/scripts/phpThumb/cache - should there be any files already, please delete those!!!
iManager/temp
all the image libraries you set up in the iManager config file!
J'ai supprimer les fichiers dans ces deux repertoires.
Je pense qu'il fallait le faire d'apres mon anglais lol
3. Configuration: Mon répertoire ou je sauvegarderais mes fichiers se nomme "fichiers" j'ai donc adapter la config à ma version
---------------------------------------------------
Check configuration settings
The configuration of iManager if fairly easy - it depends a little
on what wysiwyg editor you're using
Setting up image libraries:
---------------------------
You can set up your image libraries in two ways (static or dynamically):
- static: set your libraries like:
$cfg['ilibs'] = array (
array (
'value' => '/dev/pictures/',
'text' => 'Site Pictures',
),
array (
'value' => '/dev/images/',
'text' => 'Gallery',
),
);
- dynamically: set your libraries like:
uncomment the following line in your config file - the following settings will
automatically override the static libary settings
$cfg['ilibs_dir'] = array('/dev/pictures/','/dev/images/');
The aforementioned main directories will be scanned for sub-directories and
all directories found will be listed as directories.
Ma configuration:
//-------------------------------------------------------------------------
// use static image libraries
$cfg['ilibs'] = array ( // image library path with slashes; absolute from root directory e.g. '/pictures/'
array ( // please make sure that the directories have write permissions
'value' => '/fichiers/', //mon repertoire est à la racine du site
'text' => 'Fichiers',
),
/*array ( // cette partie je les desactivé
'value' => '/images/',
'text' => 'Gallery',
), */
);
//-------------------------------------------------------------------------
// use dynamic image libraries - if $cfg['ilibs_inc'] is set, static image libraries above are ignored
// image directories to be scanned
$cfg['ilibs_dir'] = array('/fichiers/'); // image library path with slashes; absolute from root directory e.g. '/pictures/' - please make sure that the directories have write permissions
$cfg['ilibs_dir_show'] = true; // show top library (true) or only sub-dirs (false)
$cfg['ilibs_inc'] = realpath(dirname(__FILE__) . '/../scripts/rdirs.php'); // file to include in ibrowser.php (useful for setting $cfg['ilibs] dynamically
//-------------------------------------------------------------------------
// you shouldn't need to make any changes to the config variable beyond this line!
//-------------------------------------------------------------------------
$osslash = ((strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') ? '\\' : '/');
$cfg['ver'] = '1.2.8 - build 02012008'; // iManager version
//$cfg['root_dir'] = realpath((getenv('DOCUMENT_ROOT') && ereg('^'.preg_quote(realpath(getenv('DOCUMENT_ROOT'))), realpath(__FILE__))) ? getenv('DOCUMENT_ROOT') : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace($osslash, '/', dirname(__FILE__))));
$cfg['root_dir'] = ((@$_SERVER['DOCUMENT_ROOT'] && file_exists(@$_SERVER['DOCUMENT_ROOT'] . $_SERVER['PHP_SELF'])) ? $_SERVER['DOCUMENT_ROOT'] : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace('\\', '/', realpath('.'))));
$cfg['base_url'] = 'http://localhost/site/modules/tiny_mce/plugins/';//' . $_SERVER['SERVER_NAME']; //chemin de mon site ou se situe le plugin // base url; e.g. 'http://localhost/'
//$cfg['main_dir'] = dirname($_SERVER['PHP_SELF']); // iManager main dir; e.g. '/www/home'
$cfg['main_dir'] = ereg_replace("//", "/", dirname($_SERVER['PHP_SELF']));
$cfg['scripts'] = $cfg['main_dir'] . '/scripts/'; // scripts dir; e.g. '/www/home/scripts/'
$cfg['fonts'] = dirname($_SERVER['PHP_SELF']) . '/fonts/'; // ttf font dir; absolute path
$cfg['mask'] = dirname($_SERVER['PHP_SELF']) . '/masks/'; // mask dir; absolute path
$cfg['olay'] = dirname($_SERVER['PHP_SELF']) . '/olays/'; // overlay dir; absolute path
$cfg['mark'] = dirname($_SERVER['PHP_SELF']) . '/wmarks/'; // watermarks dir; absolute path
$cfg['pop_url'] = $cfg['scripts'] . 'popup.php'; // popup dir; relative to /script dir
$cfg['temp'] = realpath(dirname(__FILE__) . '/../temp'); // temp dir; e.g. 'D:/www/temp'
Je veux permettre l'upload d'image avec l'editeur tinyMCe avec le plugin imanager qui permet cette solution.
Le probleme est que quand je clique sur l'icone imanager dans le traitement de texte rien ne se passe. Voici ce que j'ai fait:
J'ai lu la doc de imanager qui me disait d' effectuer cette tâche:
tinyMCE.init({
...
plugins : "imanager",
theme_advanced_buttons3_add : "imanager",
...
});
ensuite il me demande en anglais ceci:
tinyMCE interface
-----------------
copy the provided interface file: tinyMCE.editor_plugin.js file into your iManager plugin
directory and rename it to "editor_plugin.js". Make a copy of it and rename it to editor_plugin_src.js.
je comprends qu'il faut copié le fichier 'tinyMCE.editor_plugin.js' dans le repertoire d'imanager et le renommer par 'editor_plugin.js'..
Mais je suis trèes nul en anglais.lol si quelqu'un peut m'aider pour cette partie :) merci
//autre partie
2. Permission settings
---------------------------------------------------
Make sure the following directories have writing
permission (chmod to 0755):
iManager/scripts/phpThumb/cache - should there be any files already, please delete those!!!
iManager/temp
all the image libraries you set up in the iManager config file!
J'ai supprimer les fichiers dans ces deux repertoires.
Je pense qu'il fallait le faire d'apres mon anglais lol
3. Configuration: Mon répertoire ou je sauvegarderais mes fichiers se nomme "fichiers" j'ai donc adapter la config à ma version
---------------------------------------------------
Check configuration settings
The configuration of iManager if fairly easy - it depends a little
on what wysiwyg editor you're using
Setting up image libraries:
---------------------------
You can set up your image libraries in two ways (static or dynamically):
- static: set your libraries like:
$cfg['ilibs'] = array (
array (
'value' => '/dev/pictures/',
'text' => 'Site Pictures',
),
array (
'value' => '/dev/images/',
'text' => 'Gallery',
),
);
- dynamically: set your libraries like:
uncomment the following line in your config file - the following settings will
automatically override the static libary settings
$cfg['ilibs_dir'] = array('/dev/pictures/','/dev/images/');
The aforementioned main directories will be scanned for sub-directories and
all directories found will be listed as directories.
Ma configuration:
//-------------------------------------------------------------------------
// use static image libraries
$cfg['ilibs'] = array ( // image library path with slashes; absolute from root directory e.g. '/pictures/'
array ( // please make sure that the directories have write permissions
'value' => '/fichiers/', //mon repertoire est à la racine du site
'text' => 'Fichiers',
),
/*array ( // cette partie je les desactivé
'value' => '/images/',
'text' => 'Gallery',
), */
);
//-------------------------------------------------------------------------
// use dynamic image libraries - if $cfg['ilibs_inc'] is set, static image libraries above are ignored
// image directories to be scanned
$cfg['ilibs_dir'] = array('/fichiers/'); // image library path with slashes; absolute from root directory e.g. '/pictures/' - please make sure that the directories have write permissions
$cfg['ilibs_dir_show'] = true; // show top library (true) or only sub-dirs (false)
$cfg['ilibs_inc'] = realpath(dirname(__FILE__) . '/../scripts/rdirs.php'); // file to include in ibrowser.php (useful for setting $cfg['ilibs] dynamically
//-------------------------------------------------------------------------
// you shouldn't need to make any changes to the config variable beyond this line!
//-------------------------------------------------------------------------
$osslash = ((strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') ? '\\' : '/');
$cfg['ver'] = '1.2.8 - build 02012008'; // iManager version
//$cfg['root_dir'] = realpath((getenv('DOCUMENT_ROOT') && ereg('^'.preg_quote(realpath(getenv('DOCUMENT_ROOT'))), realpath(__FILE__))) ? getenv('DOCUMENT_ROOT') : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace($osslash, '/', dirname(__FILE__))));
$cfg['root_dir'] = ((@$_SERVER['DOCUMENT_ROOT'] && file_exists(@$_SERVER['DOCUMENT_ROOT'] . $_SERVER['PHP_SELF'])) ? $_SERVER['DOCUMENT_ROOT'] : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace('\\', '/', realpath('.'))));
$cfg['base_url'] = 'http://localhost/site/modules/tiny_mce/plugins/';//' . $_SERVER['SERVER_NAME']; //chemin de mon site ou se situe le plugin // base url; e.g. 'http://localhost/'
//$cfg['main_dir'] = dirname($_SERVER['PHP_SELF']); // iManager main dir; e.g. '/www/home'
$cfg['main_dir'] = ereg_replace("//", "/", dirname($_SERVER['PHP_SELF']));
$cfg['scripts'] = $cfg['main_dir'] . '/scripts/'; // scripts dir; e.g. '/www/home/scripts/'
$cfg['fonts'] = dirname($_SERVER['PHP_SELF']) . '/fonts/'; // ttf font dir; absolute path
$cfg['mask'] = dirname($_SERVER['PHP_SELF']) . '/masks/'; // mask dir; absolute path
$cfg['olay'] = dirname($_SERVER['PHP_SELF']) . '/olays/'; // overlay dir; absolute path
$cfg['mark'] = dirname($_SERVER['PHP_SELF']) . '/wmarks/'; // watermarks dir; absolute path
$cfg['pop_url'] = $cfg['scripts'] . 'popup.php'; // popup dir; relative to /script dir
$cfg['temp'] = realpath(dirname(__FILE__) . '/../temp'); // temp dir; e.g. 'D:/www/temp'
5 réponses
PROBLEME TROUVE. Ceci vient de Firefox. Avec Internet Explorer, ça fonctionne. Enfin a moitié, j'arrive à parcourir le serveur mais au moment de l'upload d'un fichier, il met un erreur. Je pense mal avoir configurer mon config.inc (fichier de configuration de imanager)
J'ai donc besoin d'aide. merci
cette partie frepertoire image . le mien se situe à la racine du repertoire du site 'site'
il se nomme 'fichiers'.
comment editer le chemin dans le fichier de conf
//-------------------------------------------------------------------------
// use static image libraries
$cfg['ilibs'] = array ( // image library path with slashes; absolute from root directory e.g. '/pictures/'
array ( // please make sure that the directories have write permissions
'value' => '/../fichiers/',
'text' => 'Fichiers',
),
array (
'value' => '/../fichiers/',
'text' => 'Fichiers',
),
);
seconde partie:
Quels sont les chemins à configurer SVP
le plugin i manager se siture dans le rep:
www/site/modules/tiny_mce/plugins/imanager/
J utilise Wamp: www/site/.
Je rappelle que mon dossier contenant ma librairie d'images est à la racine du site:
www/site/fichiers/
//-------------------------------------------------------------------------
// use dynamic image libraries - if $cfg['ilibs_inc'] is set, static image libraries above are ignored
// image directories to be scanned
$cfg['ilibs_dir'] = array('/../fichiers'); // image library path with slashes; absolute from root directory e.g. '/pictures/' - please make sure that the directories have write permissions
$cfg['ilibs_dir_show'] = true; // show top library (true) or only sub-dirs (false)
$cfg['ilibs_inc'] = realpath(dirname(__FILE__) . '/../scripts/rdirs.php'); // file to include in ibrowser.php (useful for setting $cfg['ilibs] dynamically
//-------------------------------------------------------------------------
// you shouldn't need to make any changes to the config variable beyond this line!
//-------------------------------------------------------------------------
$osslash = ((strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') ? '\\' : '/');
$cfg['ver'] = '1.2.8 - build 02012008'; // iManager version
//$cfg['root_dir'] = realpath((getenv('DOCUMENT_ROOT') && ereg('^'.preg_quote(realpath(getenv('DOCUMENT_ROOT'))), realpath(__FILE__))) ? getenv('DOCUMENT_ROOT') : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace($osslash, '/', dirname(__FILE__))));
$cfg['root_dir'] = ((@$_SERVER['DOCUMENT_ROOT'] && file_exists(@$_SERVER['DOCUMENT_ROOT'] . $_SERVER['PHP_SELF'])) ? $_SERVER['DOCUMENT_ROOT'] : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace('\\', '/', realpath('.'))));
$cfg['base_url'] = 'http://' . $_SERVER['SERVER_NAME']; // base url; e.g. 'http://localhost/'
//$cfg['main_dir'] = dirname($_SERVER['PHP_SELF']); // iManager main dir; e.g. '/www/home'
$cfg['main_dir'] = ereg_replace("//", "/", dirname($_SERVER['PHP_SELF']));
$cfg['scripts'] = $cfg['main_dir'] . '/scripts/'; // scripts dir; e.g. '/www/home/scripts/'
$cfg['fonts'] = dirname($_SERVER['PHP_SELF']) . '/fonts/'; // ttf font dir; absolute path
$cfg['mask'] = dirname($_SERVER['PHP_SELF']) . '/masks/'; // mask dir; absolute path
$cfg['olay'] = dirname($_SERVER['PHP_SELF']) . '/olays/'; // overlay dir; absolute path
$cfg['mark'] = dirname($_SERVER['PHP_SELF']) . '/wmarks/'; // watermarks dir; absolute path
$cfg['pop_url'] = $cfg['scripts'] . 'popup.php'; // popup dir; relative to /script dir
$cfg['temp'] = realpath(dirname(__FILE__) . '/../temp'); // temp dir; e.g. 'D:/www/temp'
Merci à tous pour votre aide
J'ai donc besoin d'aide. merci
cette partie frepertoire image . le mien se situe à la racine du repertoire du site 'site'
il se nomme 'fichiers'.
comment editer le chemin dans le fichier de conf
//-------------------------------------------------------------------------
// use static image libraries
$cfg['ilibs'] = array ( // image library path with slashes; absolute from root directory e.g. '/pictures/'
array ( // please make sure that the directories have write permissions
'value' => '/../fichiers/',
'text' => 'Fichiers',
),
array (
'value' => '/../fichiers/',
'text' => 'Fichiers',
),
);
seconde partie:
Quels sont les chemins à configurer SVP
le plugin i manager se siture dans le rep:
www/site/modules/tiny_mce/plugins/imanager/
J utilise Wamp: www/site/.
Je rappelle que mon dossier contenant ma librairie d'images est à la racine du site:
www/site/fichiers/
//-------------------------------------------------------------------------
// use dynamic image libraries - if $cfg['ilibs_inc'] is set, static image libraries above are ignored
// image directories to be scanned
$cfg['ilibs_dir'] = array('/../fichiers'); // image library path with slashes; absolute from root directory e.g. '/pictures/' - please make sure that the directories have write permissions
$cfg['ilibs_dir_show'] = true; // show top library (true) or only sub-dirs (false)
$cfg['ilibs_inc'] = realpath(dirname(__FILE__) . '/../scripts/rdirs.php'); // file to include in ibrowser.php (useful for setting $cfg['ilibs] dynamically
//-------------------------------------------------------------------------
// you shouldn't need to make any changes to the config variable beyond this line!
//-------------------------------------------------------------------------
$osslash = ((strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') ? '\\' : '/');
$cfg['ver'] = '1.2.8 - build 02012008'; // iManager version
//$cfg['root_dir'] = realpath((getenv('DOCUMENT_ROOT') && ereg('^'.preg_quote(realpath(getenv('DOCUMENT_ROOT'))), realpath(__FILE__))) ? getenv('DOCUMENT_ROOT') : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace($osslash, '/', dirname(__FILE__))));
$cfg['root_dir'] = ((@$_SERVER['DOCUMENT_ROOT'] && file_exists(@$_SERVER['DOCUMENT_ROOT'] . $_SERVER['PHP_SELF'])) ? $_SERVER['DOCUMENT_ROOT'] : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace('\\', '/', realpath('.'))));
$cfg['base_url'] = 'http://' . $_SERVER['SERVER_NAME']; // base url; e.g. 'http://localhost/'
//$cfg['main_dir'] = dirname($_SERVER['PHP_SELF']); // iManager main dir; e.g. '/www/home'
$cfg['main_dir'] = ereg_replace("//", "/", dirname($_SERVER['PHP_SELF']));
$cfg['scripts'] = $cfg['main_dir'] . '/scripts/'; // scripts dir; e.g. '/www/home/scripts/'
$cfg['fonts'] = dirname($_SERVER['PHP_SELF']) . '/fonts/'; // ttf font dir; absolute path
$cfg['mask'] = dirname($_SERVER['PHP_SELF']) . '/masks/'; // mask dir; absolute path
$cfg['olay'] = dirname($_SERVER['PHP_SELF']) . '/olays/'; // overlay dir; absolute path
$cfg['mark'] = dirname($_SERVER['PHP_SELF']) . '/wmarks/'; // watermarks dir; absolute path
$cfg['pop_url'] = $cfg['scripts'] . 'popup.php'; // popup dir; relative to /script dir
$cfg['temp'] = realpath(dirname(__FILE__) . '/../temp'); // temp dir; e.g. 'D:/www/temp'
Merci à tous pour votre aide
J'ai eu le même problème que toi il y a 30 minutes ^^.
Cependant tu peux y remédier en modifiant les droit de ton dossier "fichiers" :
Clique droit sur celui ci, puis propriété, onglet sécurité.
Essaie de modifier les droits du "compte invité internet" en acceptant l'écriture et la modification du dossier par cet utilisateur. Ça devrait marcher. Par contre au niveau sécurité de ton site, je ne sais pas si c'est très très bon de faire cela... Mais bon... Ça marche ! Tchou
Cependant tu peux y remédier en modifiant les droit de ton dossier "fichiers" :
Clique droit sur celui ci, puis propriété, onglet sécurité.
Essaie de modifier les droits du "compte invité internet" en acceptant l'écriture et la modification du dossier par cet utilisateur. Ça devrait marcher. Par contre au niveau sécurité de ton site, je ne sais pas si c'est très très bon de faire cela... Mais bon... Ça marche ! Tchou
Bonjour,
Je cherche en vain imanager.
Je vois que vous l'avez installé.
Vous ne pourriez pas me dépanner d'un lien valide pour le télécharger?
Merci beaucoup d'avance!!!
Je cherche en vain imanager.
Je vois que vous l'avez installé.
Vous ne pourriez pas me dépanner d'un lien valide pour le télécharger?
Merci beaucoup d'avance!!!
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question