Les avertissements suivants se sont produits :
Warning [2] Undefined array key 0 - Line: 1640 - File: showthread.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 1640 errorHandler->error_callback
/showthread.php 915 buildtree




Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
Gabarit module Calendar
#9
Comme promis, voici la soiultion, j'ai testé cela fonctionne :
I' had the same problem. The solution for me was to use inline=0 in calendar tag, and inline=1 for the month prev/next links.
I did this by changing two lines 343 nad 351 in function.displaycalendar.php, I replaced "$inline" for true Smiley
It's not elegant but for now works fine Smiley
Bref, pour ceux que shakespeare n'inspire pas :
Le code originel :
Citation :$parms = array();
$parms['use_session'] = $use_session;
$parms['year'] = $next_month['year'];
$parms['month'] = $next_month['month'];
if( isset($parameters['lang']) )
{
$parms['lang'] = $parameters['lang'];
}
$navigation['next'] = $module->CreateURL($id,'default',$returnid,
$parms,$inline);
$navigation['ni_next'] = $module->CreateURL($id,'default',$returnid,
$parms,false);

$parms['year'] = $prev_month['year'];
$parms['month'] = $prev_month['month'];
$navigation['prev'] = $module->CreateURL($id,'default',$returnid,
$parms,$inline);
$navigation['ni_prev'] = $module->CreateURL($id,'default',$returnid,
$parms,false);
Le code modifié :
Citation :$parms = array();
$parms['use_session'] = $use_session;
$parms['year'] = $next_month['year'];
$parms['month'] = $next_month['month'];
if( isset($parameters['lang']) )
{
$parms['lang'] = $parameters['lang'];
}
$navigation['next'] = $module->CreateURL($id,'default',$returnid,
$parms,true);
$navigation['ni_next'] = $module->CreateURL($id,'default',$returnid,
$parms,false);

$parms['year'] = $prev_month['year'];
$parms['month'] = $prev_month['month'];
$navigation['prev'] = $module->CreateURL($id,'default',$returnid,
$parms,true);
$navigation['ni_prev'] = $module->CreateURL($id,'default',$returnid,
$parms,false);
Voilà, j'espère que ça servira.
@agiwebconseil | tutos vidéos sur cmsms
Répondre


Messages dans ce sujet

Atteindre :


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