Cela n'a pas été intégré.
Bien à vous,
Modérateur: Equipe



Open: language/en/common.php
Find
Tip: This may be a partial find and not the whole line.
- Code: Tout sélectionner
?>
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select All
- Code: Tout sélectionner
$lang = array_merge($lang, array(
'EXPAND_CAT_DISPLAY' => 'Expand this category',
'EXPAND_CAT_HIDE' => 'Hide this category',
));



ALTER TABLE phpbb_forums ADD default_display tinyint(1) NOT NULL DEFAULT 1; dE('forum_rules_options', 1); dE('forum_cat_options', -1); dE('forum_rules_options', -1); dE('forum_cat_options', -1); dE('forum_rules_options', 1); dE('forum_cat_options', 1); <dl>
<dt><label for="display_active">{L_DISPLAY_ACTIVE_TOPICS}:</label><br /><span>{L_DISPLAY_ACTIVE_TOPICS_EXPLAIN}</span></dt>
<dd><label><input type="radio" class="radio" name="display_active" value="1"<!-- IF S_DISPLAY_ACTIVE_TOPICS --> id="display_active" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
<label><input type="radio" class="radio" name="display_active" value="0"<!-- IF not S_DISPLAY_ACTIVE_TOPICS --> id="display_active" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
</dl> <dl>
<dt><label for="forum_style">{L_DEFAULT_DISPLAY}:</label><br /><span>{L_DEFAULT_DISPLAY_EXPLAIN}</span></dt>
<dd><label><input type="radio" class="radio" name="default_display" value="1"<!-- IF S_DEFAULT_DISPLAY --> id="default_display" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
<label><input type="radio" class="radio" name="default_display" value="0"<!-- IF not S_DEFAULT_DISPLAY --> id="default_display" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
</dl> // Empty category
if ($row['parent_id'] == $root_data['forum_id'] && $row['forum_type'] == FORUM_CAT)
{ $cat_aff_stat = request_var($config['cookie_name'].'_cat_'.$row['forum_id'].'_aff_stat', intval($row['default_display']),false,true); 'DISPLAY_CAT' => (isset($_COOKIE[$config['cookie_name'].'_display_cat_c'.$row['forum_id']])) ? 'none' : 'block',
'DISPLAY_CAT_LINK' => (isset($_COOKIE[$config['cookie_name'].'_display_cat_c'.$row['forum_id']])) ? '<a href="javascript:show_details(\'c'.$row['forum_id'].'\');" title="'.$user->lang['EXPAND_CAT_DISPLAY'].'">+</a>' : '<a href="javascript:show_details(\'c'.$row['forum_id'].'\');" title="'.$user->lang['EXPAND_CAT_HIDE'].'">-</a>', 'DISPLAY_CAT' => ($cat_aff_stat) ? 'block' : 'none',
'DISPLAY_CAT_LINK' => ($cat_aff_stat) ? '<a href="javascript:show_details(\'cat_'.$row['forum_id'].'\');" title="'.$user->lang['EXPAND_CAT_HIDE'].'">-</a>' : '<a href="javascript:show_details(\'cat_'.$row['forum_id'].'\');" title="'.$user->lang['EXPAND_CAT_DISPLAY'].'">+</a>', 'forum_password_unset' => request_var('forum_password_unset', false), 'default_display' => request_var('default_display', true), 'forum_password_confirm'=> '', 'default_display' => true, 'S_CAN_COPY_PERMISSIONS' => ($action != 'edit' || empty($forum_id) || ($auth->acl_get('a_fauth') && $auth->acl_get('a_authusers') && $auth->acl_get('a_authgroups') && $auth->acl_get('a_mauth'))) ? true : false, 'S_DEFAULT_DISPLAY' => ($forum_data['default_display']) ? true : false, 'EXPAND_CAT_DISPLAY' => 'Expand this category',
'EXPAND_CAT_HIDE' => 'Hide this category', ?>
$lang = array_merge($lang, array(
'EXPAND_CAT_DISPLAY' => 'Expand this category',
'EXPAND_CAT_HIDE' => 'Hide this category',
)); ));
?>
'DEFAULT_DISPLAY' => 'Expand this category by default',
'DEFAULT_DISPLAY_EXPLAIN' => 'Expand categories MOD\'s configuration', 'EXPAND_CAT_DISPLAY' => 'Étendre cette catégorie',
'EXPAND_CAT_HIDE' => 'Masquer cette catégorie', ?>
$lang = array_merge($lang, array(
'EXPAND_CAT_DISPLAY' => 'Étendre cette catégorie',
'EXPAND_CAT_HIDE' => 'Masquer cette catégorie',
)); ));
?>
'DEFAULT_DISPLAY' => 'Étendre la catégorie par défaut',
'DEFAULT_DISPLAY_EXPLAIN' => 'Configuration du MOD Étendre les catégories', <script type="text/javascript">
function show_details(id)
{
if(document.getElementById(id).style.display == 'none')
{
//Display
document.getElementById(id).style.display = 'block';
//Change link
document.getElementById('phpbb_cat_'+id).innerHTML = '<a href="javascript:show_details(\''+id+'\');" title="{L_EXPAND_CAT_HIDE}">-</a>';
//Delete cookie
document.cookie = '{COOKIE_NAME}_display_cat_'+id+'=0;expires=Thu, 01-Jan-1970 00:00:01 GMT;';
}
else
{
//Don't display
document.getElementById(id).style.display = 'none';
//Change link
document.getElementById('phpbb_cat_'+id).innerHTML = '<a href="javascript:show_details(\''+id+'\');" title="{L_EXPAND_CAT_DISPLAY}">+</a>';
//Create cookie
document.cookie = '{COOKIE_NAME}_display_cat_'+id+'=1;';
}
}
</script><script type="text/javascript">
function show_details(id)
{
if(document.getElementById(id).style.display == 'none')
{
//Display
document.getElementById(id).style.display = 'block';
//Change link
document.getElementById('phpbb_'+id).innerHTML = '<a href="javascript:show_details(\''+id+'\');" title="{L_EXPAND_CAT_HIDE}">-</a>';
//Delete cookie
document.cookie = '{COOKIE_NAME}_'+id+'_aff_stat=1;';
}
else
{
//Don't display
document.getElementById(id).style.display = 'none';
//Change link
document.getElementById('phpbb_'+id).innerHTML = '<a href="javascript:show_details(\''+id+'\');" title="{L_EXPAND_CAT_DISPLAY}">+</a>';
//Create cookie
document.cookie = '{COOKIE_NAME}_'+id+'_aff_stat=0;';
}
}
</script><span id="phpbb_cat_c{forumrow.FORUM_ID}" style="font-size:18px;margin-right:8px;">{forumrow.DISPLAY_CAT_LINK}</span> <span id="phpbb_cat_{forumrow.FORUM_ID}" style="font-size:18px;margin-right:8px;">{forumrow.DISPLAY_CAT_LINK}</span> <div id="c{forumrow.FORUM_ID}" style="display:{forumrow.DISPLAY_CAT};"> <div id="cat_{forumrow.FORUM_ID}" style="display:{forumrow.DISPLAY_CAT};"> 

phpbb-frforum
microJaP a écrit:Le choix d'affichage par défaut d'une catégorie n'apparait que lorsque que l'on transforme un forum en catégorie et donc seulement avant l'enregistrement de la modification : Copie d'écran.












Retourner vers MODs indépendants de la base
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 3 invités