
Mod : board3 portal 1.0.6
voilà ! après avoir cherché un peut partout (enfin je pense

pas moyen de trouver comment ajouter des blocs customisable sur mon portail !
d origine il y en a 2 installés : 1 sur la colonne de gauche et 1 sur la colonne du milieu .
j aimerai savoir comment en rajouter 2 ou 3 que ce soit à droite , au centre , à gauche.
je me doute que si je duplique dans : /www/Forums/portal/block/custom.php le code suivant sa ne fonctionne pas (ce serait trop facile

si quelqu'un a la solution je suis preneur

Code : Tout sélectionner
// Small Box
if ($portal_config['portal_custom_small'])
{
if ($portal_config['portal_custom_small_bbcode'])
{
$message_parser = new parse_message($portal_config['portal_custom_code_small']);
$message_parser->parse($allow_bbcode, $allow_urls, $allow_smilies);
$text_small = $message_parser->message;
$bbcode_uid = $message_parser->bbcode_uid;
$bbcode_bitfield = $message_parser->bbcode_bitfield;
// Generate text for display and assign template vars
$bbcode_options = OPTION_FLAG_BBCODE + OPTION_FLAG_SMILIES + OPTION_FLAG_LINKS;
$text_small = generate_text_for_display($text_small, $bbcode_uid, $bbcode_bitfield, $bbcode_options);
$template->assign_vars(array(
'PORTAL_CUSTOM_SMALL_CODE' => $text_small,
));
}
else
{
$template->assign_vars(array(
'PORTAL_CUSTOM_SMALL_CODE' => htmlspecialchars_decode($portal_config['portal_custom_code_small'],ENT_QUOTES),
));
}
$template->assign_vars(array(
'S_CUSTOM_SMALL' => true,
'PORTAL_CUSTOM_SMALL_HEADLINE' => $portal_config['portal_custom_small_headline'],
));
}
?>
@+