PBLM Installation 1.12 à 2.2.5 - Module EventsManager 1.2.7

Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
#1
Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~
#~ Version du CMS: 2.2.5
#~ Url du site : .../...
#~ Hébergeur / Soft : VPS - OVH - UBUNTU 14 - PLESK 12
#~ Informations Système :
#~ ----------------------------------------------
#~ Cms Version: 2.2.5
#~ Installed Modules:
#~ AceEditor2: 1.05
#~ AdminSearch: 1.0.4
#~ AireLibs: 1.3.2
#~ CGExtensions: 1.59.1
#~ CGFBPost: 1.1.3
#~ CGNotifier: 1.1
#~ CGSimpleSmarty: 2.1.7
#~ CMSContentManager: 1.1.6
#~ CMSMailer: 6.2.14
#~ Captcha: 0.5.5
#~ CmsJobManager: 0.1.2
#~ DesignManager: 1.1.4
#~ EventsManager: 1.2.7
#~ FileManager: 1.6.5
#~ FilePicker: 1.0.2
#~ FormBrowser: 0.5
#~ FormBuilder: 0.8.1.6
#~ FrontEndUsers: 2.8.1
#~ GoogleMaps: 0.2.1
#~ JQueryTools: 1.4.0.3
#~ LISE: 1.3.1
#~ LISEFAQ: 1.3.1
#~ LISEFormateur: 1.3.1
#~ LISEFormation: 1.3.1
#~ LISELieux: 1.3.1
#~ LISESession: 1.3.1
#~ LISESophroanalystes: 1.3.1
#~ LISETemoignage: 1.3.1
#~ LessCSS: 2.7
#~ MenuManager: 1.50.3
#~ MicroTiny: 2.2.2
#~ ModuleManager: 2.1.3
#~ Navigator: 1.0.8
#~ News: 2.51.3
#~ Search: 1.51.2
#~ TemplateExternalizer: 2.1.6
#~ ThemeManager: 1.1.8
#~ ToolBox: 1.3.11
#~ Config Information:
#~ php_memory_limit:
#~ max_upload_size: 16000000
#~ url_rewriting: mod_rewrite
#~ page_extension: .html
#~ query_var: page
#~ auto_alias_content: true
#~ locale:
#~ set_names: true
#~ timezone: Europe/Paris
#~ permissive_smarty: true
#~ Php Information:
#~ phpversion: 5.6.33
#~ md5_function: On (Vrai)
#~ json_function: On (Vrai)
#~ gd_version: 2
#~ tempnam_function: On (Vrai)
#~ magic_quotes_runtime: Off (Faux)
#~ E_ALL: 22527
#~ E_STRICT: 0
#~ E_DEPRECATED: 0
#~ test_file_timedifference: Aucune différence de date du système trouvée
#~ test_db_timedifference: Aucune différence de date du système trouvée
#~ create_dir_and_file: 1
#~ memory_limit: 128M
#~ max_execution_time: 120
#~ register_globals: Off (Faux)
#~ output_buffering: 4096
#~ disable_functions:
#~ open_basedir:
#~ test_remote_url: Valable
#~ file_uploads: On (Vrai)
#~ post_max_size: 20M
#~ upload_max_filesize: 16M
#~ session_save_path: /var/lib/php5 (1733)
#~ session_use_cookies: On (Vrai)
#~ xml_function: On (Vrai)
#~ xmlreader_class: On (Vrai)
#~ check_ini_set: On (Vrai)
#~ curl: On
#~ Performance Information:
#~ allow_browser_cache: Off (Faux)
#~ browser_cache_expiry: 60
#~ php_opcache: On (Vrai)
#~ smarty_cache: Off (Faux)
#~ smarty_compilecheck: Off (Faux)
#~ auto_clear_cache_age: Off (Faux)
#~ Server Information:
#~ Server Software: Apache
#~ Server Api: cgi-fcgi
#~ Server Os: Linux 3.10.23-xxxx-std-ipv6-64-vps On x86_64
#~ Server Db Type: MySQL (mysqli)
#~ Server Db Version: 5.5.46
#~ Server Db Grants: Trouvé un privilège "GRANT ALL" qui semble être adapté
#~ Permission Information:
#~ tmp: /var/www/vhosts/2018.sophro-analyse.eu/httpdocs/tmp (0755)
#~ tmp_cache: /var/www/vhosts/2018.sophro-analyse.eu/httpdocs/tmp/cache (0755)
#~ templates_c: /var/www/vhosts/2018.sophro-analyse.eu/httpdocs/tmp/templates_c (0755)
#~ modules: /var/www/vhosts/2018.sophro-analyse.eu/httpdocs/modules (0755)
#~ uploads: /var/www/vhosts/2018.sophro-analyse.eu/httpdocs/uploads (0755)
#~ Masque de création de fichier (umask) : /var/www/vhosts/2018.sophro-analyse.eu/httpdocs/tmp/cache (0755)
#~ config_file: 0644
#~ ----------------------------------------------
#~~~~~ FIN BLOC A NE PAS SUPPRIMER ~~~~~



Bonjour,

Toujours dans le cadre d'une mise à jour de CMSMS de la 1.12 à 2.2.5, j'ai un module qui fonctionne partiellement.

Le module EventsManager sert à gérer un planning de formation et de stage. Nous utilisons le module depuis 2 version du site et son remplacement serait générateur d'un long travail de développement et de formation pour les utilisateurs du site.

Dans le gestionnaire de modules, EventsManager semble installé. Sur le site, les intégrations du module dans les pages fonctionnent normalement si ce n'est une erreur de template (qui n’existait pas avant). Cependant quand j'essaye d'accéder au Module dans l'admin, celui-ci affiche une page blanche avec seulement une liste des catégories de fonctions du module :

Evénements
Champs extra
Catégories
Gabarits de sommaire
Gabarits de détail
Gabarits d'inscription
Gabarits de listes d'inscrits
E-Mails
Préférences

Si je regarde dans "A propos" du Gestionnaire de module, j'obtiens l'affichage d'une erreur qui semble impliquer le module CGExtensions :

À propos du module EventsManager


Auteur : AireLibre <contact@airelibre.fr>

Version : 1.2.7

Historique des changements :
config['root_path'],'modules', 'CGExtensions','CGExtensions.module.php'); if( !is_readable( $cgextensions ) ) { echo '
ERROR: The CGExtensions module could not be found.
'; return; } require_once($cgextensions); class EventsManager extends CGExtensions { function GetName() { return 'EventsManager'; } function GetFriendlyName() { $name = $this->GetPreference('menuname'); if (empty($name)) $name = $this->Lang('friendlyname'); return $name; } function GetVersion() { return '1.2.7'; } function GetHelp() { $main_help = $this->Lang('help'); $examples_help = $this->Lang('help_examples'); $tabs_top = $this->StartTabHeaders(); $tabs_top .= $this->SetTabHeader('main_help', $this->Lang('main_help_tab')); $tabs_top .= $this->SetTabHeader('examples_help', $this->Lang('examples_help_tab')); $tabs_top .= $this->EndTabHeaders(); $total_help = $tabs_top; $total_help .= $this->StartTabContent() . $this->StartTab('main_help') . $main_help . $this->EndTab() . $this->StartTab('examples_help') . $examples_help . $this->EndTab() . $this->EndTabContent(); return $total_help; } function GetAuthor() { return 'AireLibre'; } function GetAuthorEmail() { return 'contact@airelibre.fr'; } function GetChangeLog() { return file_get_contents(__FILE__).'/doc/changelog.html'; } function MinimumCMSVersion() {return '1.10';} //function MaximumCMSVersion() {return '1.11';} function InstallPostMessage() { return $this->Lang('postinstall'); } function UninstallPreMessage() {return $this->Lang('preuninstall'); } function UninstallPostMessage() { return $this->Lang('postuninstall'); } function IsPluginModule() { return true; } function HasAdmin() { return true; } function GetAdminSection() { return 'content'; } function GetAdminDescription () { return $this->Lang('admindescription'); } function GetEventDescription($eventname) { return $this->lang('eventdesc_'.$eventname);} function GetEventHelp($eventname) { return $this->lang('eventhelp_'.$eventname); } function VisibleToAdminUser() {return true;} function GetDependencies() { return (array('AireLibs'=>'1.3', 'CGExtensions'=>'1.24', 'FrontEndUsers'=>'1.16')); } // Non API function - Defined to handle the rights easier (with a default value) function HasPermission($perm = 'Use EventsManager') { return parent::CheckPermission($perm); } function InitializeFrontend() { $this->RegisterModulePlugin(); $this->RestrictUnknownParams(); /* Routes - URL Rewriting */ // Detail : /prefix/event_id/returnid/alias $urlprefix = $this->GetPrefix('events'); // With detail template $this->RegisterRoute('/' . $urlprefix . '\/(?P[0-9]+)\/(?P[0-9]+)\/(?P.*?)\/d,(?P.*?)$/', array('action'=>'detail')); // Classic link $this->RegisterRoute('/' . $urlprefix . '\/(?P[0-9]+)\/(?P[0-9]+)\/(?P.*?)$/', array('action'=>'detail')); // Registration : /prefix/registerurlprefix/event_id/returnid/alias $registerurlprefix = $this->GetPrefix('register'); if (empty($registerurlprefix)) $registerurlprefix = 'register'; // With registration template $this->RegisterRoute('/'.$urlprefix . '\/' . $registerurlprefix . '\/(?P[0-9]+)\/(?P[0-9]+)\/(?P.*?)\/d,(?P.*?)$/', array('action'=>'register')); // Classic link $this->RegisterRoute('/'.$urlprefix . '\/' . $registerurlprefix . '\/(?P[0-9]+)\/(?P[0-9]+)\/(?P.*?)$/', array('action'=>'register')); /* Params */ $this->SetParameterType('event_id', CLEAN_INT); $this->SetParameterType('detailpage', CLEAN_INT); $this->SetParameterType('submit', CLEAN_STRING); $this->SetParameterType('cancel', CLEAN_STRING); $this->SetParameterType('nb_persons', CLEAN_INT); $this->SetParameterType('junk',CLEAN_STRING); $this->SetParameterType('orig_url',CLEAN_STRING); $this->SetParameterType('category',CLEAN_STRING); $this->SetParameterType('category_id', CLEAN_INT); $this->SetParameterType('status',CLEAN_STRING); $this->SetParameterType('show',CLEAN_STRING); $this->SetParameterType('start_datetime', CLEAN_STRING); $this->SetParameterType('end_datetime', CLEAN_STRING); $this->SetParameterType('myevents', CLEAN_STRING); $this->SetParameterType('sortby', CLEAN_STRING); $this->SetParameterType('sortorder', CLEAN_STRING); $this->SetParameterType('allow_notconnected', CLEAN_INT); $this->SetParameterType('redirectdetail', CLEAN_INT); $this->SetParameterType('overquotanb', CLEAN_INT); $this->SetParameterType('overquotatotal', CLEAN_INT); // Templates $this->SetParameterType('summarytemplate', CLEAN_STRING); $this->SetParameterType('detailtemplate', CLEAN_STRING); $this->SetParameterType('registrationtemplate', CLEAN_STRING); $this->SetParameterType('registrationslisttemplate', CLEAN_STRING); } function SetParameters() { $this->CreateParameter('action','default',$this->Lang('param_action')); $this->CreateParameter('event_id', '0', $this->Lang('param_event_id')); $this->CreateParameter('detailpage', '-1', $this->Lang('param_detailpage')); $this->CreateParameter('category_id', '0', $this->Lang('param_category_id')); $this->CreateParameter('category', '', $this->Lang('param_category')); $this->CreateParameter('status', 'published', $this->Lang('param_status')); $this->CreateParameter('show', 'all', $this->Lang('param_show')); $this->CreateParameter('start_datetime', '', $this->Lang('param_start_datetime')); $this->CreateParameter('end_datetime', '', $this->Lang('param_end_datetime')); $this->CreateParameter('myevents', 'false', $this->Lang('param_myevents')); $this->CreateParameter('sortby', 'name', $this->Lang('param_sortby')); $this->CreateParameter('sortorder', 'ASC', $this->Lang('param_sortorder')); $this->CreateParameter('allow_notconnected', '0', $this->Lang('param_allow_notconnected')); $this->CreateParameter('redirectdetail', '0', $this->Lang('param_redirectdetail')); $this->CreateParameter('overquotanb'); $this->CreateParameter('overquotatotal'); // Templates $this->CreateParameter('summarytemplate', '', $this->Lang('param_summarytemplate')); $this->CreateParameter('detailtemplate', '', $this->Lang('param_detailtemplate')); $this->CreateParameter('registrationtemplate', '', $this->Lang('param_registrationtemplate')); $this->CreateParameter('registrationslisttemplate', '', $this->Lang('param_registrationslisttemplate')); } function InitializeAdmin() { $this->SetParameters(); } function GetHeaderHTML() { $config = cmsms()->GetConfig(); $userid = get_userid(); $smarty = cmsms()->GetSmarty(); $lang = get_preference($userid, 'default_cms_language'); // Localization $isocode = 'en'; if ($lang != 'en_US') $isocode = substr($lang, 0, strpos($lang, '_')); $smarty->assign('datepicker_lang', $isocode); return $this->ProcessTemplate('admin_header.tpl'); } function SearchReindex(&$module) { $events = EventsManager_events_ops::get_events(); foreach ($events as $event) { $module->AddWords($this->GetName(), $event->id, '', $event->name.' '.$event->description); } } function SearchResult ($returnid, $id, $attr='') { $result = array(); $event = new EventsManager_event($id); $result[0] = $this->GetFriendlyName(); $result[1] = $event->name; $detailpage = $this->GetPreference('dflt_detailpage', $returnid); if ($detailpage == -1) $detailpage = $returnid; $aliased_title = munge_string_to_url($event->name); $url_prefix = $this->GetPreference('urlprefix', 'events'); if (empty($url_prefix)) $url_prefix = 'events'; $prettyurl = $url_prefix.'/'.$event->id.'/'.$detailpage.'/'.$aliased_title; $result[2] = $this->CreateFrontendLink($id, $detailpage, 'detail', '', array('event_id'=>$event->id), '', true, $inline, '', '', $prettyurl); return $result; } // Get the prefixes function GetPrefix($type='events') { $prefix = ''; switch ($type) { case 'events': $prefix = $this->GetPreference('urlprefix', 'events'); if (empty($prefix)) $prefix = 'events'; break; case 'register': $prefix = $this->GetPreference('registerurlprefix', 'register'); if (empty($prefix)) $prefix = 'register'; break; } return $prefix; } // Preparation / Tests for the E-commerce integration function get_product_info($event_id) { $event = new EventsManager_event($event_id); $obj = new cg_ecomm_productinfo(); $obj->set_product_id($event->id); $obj->set_name($event->name); $obj->set_weight(0); $obj->set_sku(0); $obj->set_price($event->price); $obj->set_taxable(0); $obj->set_type(cg_ecomm_productinfo::TYPE_PRODUCT); return $obj; } } ?>/doc/changelog.html

Le module CGExtensions est bien installé en version 1.59.1.

Le module étant ancien, se pourrait-iol qu'il ne soit plus compatible avec cette version de CGExtensions ?

Quelqu'un a-t-il déjà rencontré ce problème ? Une solution ?

Merci.
Répondre
#1
Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~
#~ Version du CMS: 2.2.5
#~ Url du site : .../...
#~ Hébergeur / Soft : VPS - OVH - UBUNTU 14 - PLESK 12
#~ Informations Système :
#~ ----------------------------------------------
#~ Cms Version: 2.2.5
#~ Installed Modules:
#~ AceEditor2: 1.05
#~ AdminSearch: 1.0.4
#~ AireLibs: 1.3.2
#~ CGExtensions: 1.59.1
#~ CGFBPost: 1.1.3
#~ CGNotifier: 1.1
#~ CGSimpleSmarty: 2.1.7
#~ CMSContentManager: 1.1.6
#~ CMSMailer: 6.2.14
#~ Captcha: 0.5.5
#~ CmsJobManager: 0.1.2
#~ DesignManager: 1.1.4
#~ EventsManager: 1.2.7
#~ FileManager: 1.6.5
#~ FilePicker: 1.0.2
#~ FormBrowser: 0.5
#~ FormBuilder: 0.8.1.6
#~ FrontEndUsers: 2.8.1
#~ GoogleMaps: 0.2.1
#~ JQueryTools: 1.4.0.3
#~ LISE: 1.3.1
#~ LISEFAQ: 1.3.1
#~ LISEFormateur: 1.3.1
#~ LISEFormation: 1.3.1
#~ LISELieux: 1.3.1
#~ LISESession: 1.3.1
#~ LISESophroanalystes: 1.3.1
#~ LISETemoignage: 1.3.1
#~ LessCSS: 2.7
#~ MenuManager: 1.50.3
#~ MicroTiny: 2.2.2
#~ ModuleManager: 2.1.3
#~ Navigator: 1.0.8
#~ News: 2.51.3
#~ Search: 1.51.2
#~ TemplateExternalizer: 2.1.6
#~ ThemeManager: 1.1.8
#~ ToolBox: 1.3.11
#~ Config Information:
#~ php_memory_limit:
#~ max_upload_size: 16000000
#~ url_rewriting: mod_rewrite
#~ page_extension: .html
#~ query_var: page
#~ auto_alias_content: true
#~ locale:
#~ set_names: true
#~ timezone: Europe/Paris
#~ permissive_smarty: true
#~ Php Information:
#~ phpversion: 5.6.33
#~ md5_function: On (Vrai)
#~ json_function: On (Vrai)
#~ gd_version: 2
#~ tempnam_function: On (Vrai)
#~ magic_quotes_runtime: Off (Faux)
#~ E_ALL: 22527
#~ E_STRICT: 0
#~ E_DEPRECATED: 0
#~ test_file_timedifference: Aucune différence de date du système trouvée
#~ test_db_timedifference: Aucune différence de date du système trouvée
#~ create_dir_and_file: 1
#~ memory_limit: 128M
#~ max_execution_time: 120
#~ register_globals: Off (Faux)
#~ output_buffering: 4096
#~ disable_functions:
#~ open_basedir:
#~ test_remote_url: Valable
#~ file_uploads: On (Vrai)
#~ post_max_size: 20M
#~ upload_max_filesize: 16M
#~ session_save_path: /var/lib/php5 (1733)
#~ session_use_cookies: On (Vrai)
#~ xml_function: On (Vrai)
#~ xmlreader_class: On (Vrai)
#~ check_ini_set: On (Vrai)
#~ curl: On
#~ Performance Information:
#~ allow_browser_cache: Off (Faux)
#~ browser_cache_expiry: 60
#~ php_opcache: On (Vrai)
#~ smarty_cache: Off (Faux)
#~ smarty_compilecheck: Off (Faux)
#~ auto_clear_cache_age: Off (Faux)
#~ Server Information:
#~ Server Software: Apache
#~ Server Api: cgi-fcgi
#~ Server Os: Linux 3.10.23-xxxx-std-ipv6-64-vps On x86_64
#~ Server Db Type: MySQL (mysqli)
#~ Server Db Version: 5.5.46
#~ Server Db Grants: Trouvé un privilège "GRANT ALL" qui semble être adapté
#~ Permission Information:
#~ tmp: /var/www/vhosts/2018.sophro-analyse.eu/httpdocs/tmp (0755)
#~ tmp_cache: /var/www/vhosts/2018.sophro-analyse.eu/httpdocs/tmp/cache (0755)
#~ templates_c: /var/www/vhosts/2018.sophro-analyse.eu/httpdocs/tmp/templates_c (0755)
#~ modules: /var/www/vhosts/2018.sophro-analyse.eu/httpdocs/modules (0755)
#~ uploads: /var/www/vhosts/2018.sophro-analyse.eu/httpdocs/uploads (0755)
#~ Masque de création de fichier (umask) : /var/www/vhosts/2018.sophro-analyse.eu/httpdocs/tmp/cache (0755)
#~ config_file: 0644
#~ ----------------------------------------------
#~~~~~ FIN BLOC A NE PAS SUPPRIMER ~~~~~



Bonjour,

Toujours dans le cadre d'une mise à jour de CMSMS de la 1.12 à 2.2.5, j'ai un module qui fonctionne partiellement.

Le module EventsManager sert à gérer un planning de formation et de stage. Nous utilisons le module depuis 2 version du site et son remplacement serait générateur d'un long travail de développement et de formation pour les utilisateurs du site.

Dans le gestionnaire de modules, EventsManager semble installé. Sur le site, les intégrations du module dans les pages fonctionnent normalement si ce n'est une erreur de template (qui n’existait pas avant). Cependant quand j'essaye d'accéder au Module dans l'admin, celui-ci affiche une page blanche avec seulement une liste des catégories de fonctions du module :

Evénements
Champs extra
Catégories
Gabarits de sommaire
Gabarits de détail
Gabarits d'inscription
Gabarits de listes d'inscrits
E-Mails
Préférences

Si je regarde dans "A propos" du Gestionnaire de module, j'obtiens l'affichage d'une erreur qui semble impliquer le module CGExtensions :

À propos du module EventsManager


Auteur : AireLibre <contact@airelibre.fr>

Version : 1.2.7

Historique des changements :
config['root_path'],'modules', 'CGExtensions','CGExtensions.module.php'); if( !is_readable( $cgextensions ) ) { echo '
ERROR: The CGExtensions module could not be found.
'; return; } require_once($cgextensions); class EventsManager extends CGExtensions { function GetName() { return 'EventsManager'; } function GetFriendlyName() { $name = $this->GetPreference('menuname'); if (empty($name)) $name = $this->Lang('friendlyname'); return $name; } function GetVersion() { return '1.2.7'; } function GetHelp() { $main_help = $this->Lang('help'); $examples_help = $this->Lang('help_examples'); $tabs_top = $this->StartTabHeaders(); $tabs_top .= $this->SetTabHeader('main_help', $this->Lang('main_help_tab')); $tabs_top .= $this->SetTabHeader('examples_help', $this->Lang('examples_help_tab')); $tabs_top .= $this->EndTabHeaders(); $total_help = $tabs_top; $total_help .= $this->StartTabContent() . $this->StartTab('main_help') . $main_help . $this->EndTab() . $this->StartTab('examples_help') . $examples_help . $this->EndTab() . $this->EndTabContent(); return $total_help; } function GetAuthor() { return 'AireLibre'; } function GetAuthorEmail() { return 'contact@airelibre.fr'; } function GetChangeLog() { return file_get_contents(__FILE__).'/doc/changelog.html'; } function MinimumCMSVersion() {return '1.10';} //function MaximumCMSVersion() {return '1.11';} function InstallPostMessage() { return $this->Lang('postinstall'); } function UninstallPreMessage() {return $this->Lang('preuninstall'); } function UninstallPostMessage() { return $this->Lang('postuninstall'); } function IsPluginModule() { return true; } function HasAdmin() { return true; } function GetAdminSection() { return 'content'; } function GetAdminDescription () { return $this->Lang('admindescription'); } function GetEventDescription($eventname) { return $this->lang('eventdesc_'.$eventname);} function GetEventHelp($eventname) { return $this->lang('eventhelp_'.$eventname); } function VisibleToAdminUser() {return true;} function GetDependencies() { return (array('AireLibs'=>'1.3', 'CGExtensions'=>'1.24', 'FrontEndUsers'=>'1.16')); } // Non API function - Defined to handle the rights easier (with a default value) function HasPermission($perm = 'Use EventsManager') { return parent::CheckPermission($perm); } function InitializeFrontend() { $this->RegisterModulePlugin(); $this->RestrictUnknownParams(); /* Routes - URL Rewriting */ // Detail : /prefix/event_id/returnid/alias $urlprefix = $this->GetPrefix('events'); // With detail template $this->RegisterRoute('/' . $urlprefix . '\/(?P[0-9]+)\/(?P[0-9]+)\/(?P.*?)\/d,(?P.*?)$/', array('action'=>'detail')); // Classic link $this->RegisterRoute('/' . $urlprefix . '\/(?P[0-9]+)\/(?P[0-9]+)\/(?P.*?)$/', array('action'=>'detail')); // Registration : /prefix/registerurlprefix/event_id/returnid/alias $registerurlprefix = $this->GetPrefix('register'); if (empty($registerurlprefix)) $registerurlprefix = 'register'; // With registration template $this->RegisterRoute('/'.$urlprefix . '\/' . $registerurlprefix . '\/(?P[0-9]+)\/(?P[0-9]+)\/(?P.*?)\/d,(?P.*?)$/', array('action'=>'register')); // Classic link $this->RegisterRoute('/'.$urlprefix . '\/' . $registerurlprefix . '\/(?P[0-9]+)\/(?P[0-9]+)\/(?P.*?)$/', array('action'=>'register')); /* Params */ $this->SetParameterType('event_id', CLEAN_INT); $this->SetParameterType('detailpage', CLEAN_INT); $this->SetParameterType('submit', CLEAN_STRING); $this->SetParameterType('cancel', CLEAN_STRING); $this->SetParameterType('nb_persons', CLEAN_INT); $this->SetParameterType('junk',CLEAN_STRING); $this->SetParameterType('orig_url',CLEAN_STRING); $this->SetParameterType('category',CLEAN_STRING); $this->SetParameterType('category_id', CLEAN_INT); $this->SetParameterType('status',CLEAN_STRING); $this->SetParameterType('show',CLEAN_STRING); $this->SetParameterType('start_datetime', CLEAN_STRING); $this->SetParameterType('end_datetime', CLEAN_STRING); $this->SetParameterType('myevents', CLEAN_STRING); $this->SetParameterType('sortby', CLEAN_STRING); $this->SetParameterType('sortorder', CLEAN_STRING); $this->SetParameterType('allow_notconnected', CLEAN_INT); $this->SetParameterType('redirectdetail', CLEAN_INT); $this->SetParameterType('overquotanb', CLEAN_INT); $this->SetParameterType('overquotatotal', CLEAN_INT); // Templates $this->SetParameterType('summarytemplate', CLEAN_STRING); $this->SetParameterType('detailtemplate', CLEAN_STRING); $this->SetParameterType('registrationtemplate', CLEAN_STRING); $this->SetParameterType('registrationslisttemplate', CLEAN_STRING); } function SetParameters() { $this->CreateParameter('action','default',$this->Lang('param_action')); $this->CreateParameter('event_id', '0', $this->Lang('param_event_id')); $this->CreateParameter('detailpage', '-1', $this->Lang('param_detailpage')); $this->CreateParameter('category_id', '0', $this->Lang('param_category_id')); $this->CreateParameter('category', '', $this->Lang('param_category')); $this->CreateParameter('status', 'published', $this->Lang('param_status')); $this->CreateParameter('show', 'all', $this->Lang('param_show')); $this->CreateParameter('start_datetime', '', $this->Lang('param_start_datetime')); $this->CreateParameter('end_datetime', '', $this->Lang('param_end_datetime')); $this->CreateParameter('myevents', 'false', $this->Lang('param_myevents')); $this->CreateParameter('sortby', 'name', $this->Lang('param_sortby')); $this->CreateParameter('sortorder', 'ASC', $this->Lang('param_sortorder')); $this->CreateParameter('allow_notconnected', '0', $this->Lang('param_allow_notconnected')); $this->CreateParameter('redirectdetail', '0', $this->Lang('param_redirectdetail')); $this->CreateParameter('overquotanb'); $this->CreateParameter('overquotatotal'); // Templates $this->CreateParameter('summarytemplate', '', $this->Lang('param_summarytemplate')); $this->CreateParameter('detailtemplate', '', $this->Lang('param_detailtemplate')); $this->CreateParameter('registrationtemplate', '', $this->Lang('param_registrationtemplate')); $this->CreateParameter('registrationslisttemplate', '', $this->Lang('param_registrationslisttemplate')); } function InitializeAdmin() { $this->SetParameters(); } function GetHeaderHTML() { $config = cmsms()->GetConfig(); $userid = get_userid(); $smarty = cmsms()->GetSmarty(); $lang = get_preference($userid, 'default_cms_language'); // Localization $isocode = 'en'; if ($lang != 'en_US') $isocode = substr($lang, 0, strpos($lang, '_')); $smarty->assign('datepicker_lang', $isocode); return $this->ProcessTemplate('admin_header.tpl'); } function SearchReindex(&$module) { $events = EventsManager_events_ops::get_events(); foreach ($events as $event) { $module->AddWords($this->GetName(), $event->id, '', $event->name.' '.$event->description); } } function SearchResult ($returnid, $id, $attr='') { $result = array(); $event = new EventsManager_event($id); $result[0] = $this->GetFriendlyName(); $result[1] = $event->name; $detailpage = $this->GetPreference('dflt_detailpage', $returnid); if ($detailpage == -1) $detailpage = $returnid; $aliased_title = munge_string_to_url($event->name); $url_prefix = $this->GetPreference('urlprefix', 'events'); if (empty($url_prefix)) $url_prefix = 'events'; $prettyurl = $url_prefix.'/'.$event->id.'/'.$detailpage.'/'.$aliased_title; $result[2] = $this->CreateFrontendLink($id, $detailpage, 'detail', '', array('event_id'=>$event->id), '', true, $inline, '', '', $prettyurl); return $result; } // Get the prefixes function GetPrefix($type='events') { $prefix = ''; switch ($type) { case 'events': $prefix = $this->GetPreference('urlprefix', 'events'); if (empty($prefix)) $prefix = 'events'; break; case 'register': $prefix = $this->GetPreference('registerurlprefix', 'register'); if (empty($prefix)) $prefix = 'register'; break; } return $prefix; } // Preparation / Tests for the E-commerce integration function get_product_info($event_id) { $event = new EventsManager_event($event_id); $obj = new cg_ecomm_productinfo(); $obj->set_product_id($event->id); $obj->set_name($event->name); $obj->set_weight(0); $obj->set_sku(0); $obj->set_price($event->price); $obj->set_taxable(0); $obj->set_type(cg_ecomm_productinfo::TYPE_PRODUCT); return $obj; } } ?>/doc/changelog.html

Le module CGExtensions est bien installé en version 1.59.1.

Le module étant ancien, se pourrait-iol qu'il ne soit plus compatible avec cette version de CGExtensions ?

Quelqu'un a-t-il déjà rencontré ce problème ? Une solution ?

Merci.
Répondre
#2
Bonjour,
Ce module doit être mis à jour pour fonctionner avec CMSMS 2.x.
Il faudrait contacter le développeur (Airelibre) et peut-être lui proposer de sponsoriser cette mise à jour pour le persuader de dégager du temps de développement pour actualiser ce module bien pratique.
Répondre
#2
Bonjour,
Ce module doit être mis à jour pour fonctionner avec CMSMS 2.x.
Il faudrait contacter le développeur (Airelibre) et peut-être lui proposer de sponsoriser cette mise à jour pour le persuader de dégager du temps de développement pour actualiser ce module bien pratique.
Répondre
#3
Bonsoir,

Est-ce que quelqu'un connait une alternative à ce module ?
Répondre
#3
Bonsoir,

Est-ce que quelqu'un connait une alternative à ce module ?
Répondre
#4
Bonjour à tous,

je dois publier une mise à jour, j'espère le faire rapidement car la version alpha est faite Wink Stay tuned
Répondre
#4
Bonjour à tous,

je dois publier une mise à jour, j'espère le faire rapidement car la version alpha est faite Wink Stay tuned
Répondre
#5
Bonjour,

Merci Aire LIbre. Bon pour moi ce sera trop tard, j'ai mis la main à la pâte et j'ai créé un truc qui va bien pour l'usage du site où ce module était utilisé, mais c'est une bonne nouvelle car ce module est assez complet et vraiment utile et pertinent pour la gestion d'événements.

Pidou46, je n'ai rien vu d'aussi abouti. En revanche, si ton niveau d'exigence est plus bas que les possibilités du module d'Aire Libre, tu peux te débrouiller avec LISE et un peu de dev.

Mimi.
Répondre
#5
Bonjour,

Merci Aire LIbre. Bon pour moi ce sera trop tard, j'ai mis la main à la pâte et j'ai créé un truc qui va bien pour l'usage du site où ce module était utilisé, mais c'est une bonne nouvelle car ce module est assez complet et vraiment utile et pertinent pour la gestion d'événements.

Pidou46, je n'ai rien vu d'aussi abouti. En revanche, si ton niveau d'exigence est plus bas que les possibilités du module d'Aire Libre, tu peux te débrouiller avec LISE et un peu de dev.

Mimi.
Répondre


Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)