Il faut survoler le forum pour afficher les sous-forums :
Codes et explications
phpBB2
Pour activer l'affichage des sous-forums, panneau d'administration > Affichage > Page d'accueil > Structure et hiérarchie. Dans le bloc en bas, à "Lien vers les niveaux inférieurs", cocher "oui".
Dans votre panneau d'administration, Affichage > Templates > Général > Overall_header, copiez et collez le code suivant, après l'ouverture de la balise head :
- Code:
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
<link href='http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css' rel='stylesheet' type='text/css'>
Dans votre panneau d'administration, Affichage > Templates > Général > index_box, remplacez l'intégralité du template par le suivant :
- Code:
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td valign="bottom">
<!-- BEGIN switch_user_logged_in -->
<span class="gensmall">{LAST_VISIT_DATE}<br />
{CURRENT_TIME}<br />
</span>
<!-- END switch_user_logged_in -->
<div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</div>
</td>
<td class="gensmall" align="right" valign="bottom">
<!-- BEGIN switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
<a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
</td>
</tr>
</table>
<div class="wrap-cate">
<!-- BEGIN catrow --><!-- BEGIN tablehead --><div class="bloc-cate">
<div class="cate-titre">{catrow.tablehead.L_FORUM}</div>
<!-- END tablehead -->
<!-- BEGIN cathead -->
<!-- BEGIN inc -->
<div class="{catrow.cathead.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></div>
<!-- END inc -->
<!-- END cathead -->
<!-- BEGIN forumrow -->
<div class="forum-wrap">
<div class="forum-titre">
<a href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
<hr />
</div>
<div class="forum-desc">
<div class="forum-desc-content">
{catrow.forumrow.FORUM_DESC}
</div>
</div>
<div class="forum-last">
{catrow.forumrow.LAST_POST}
</div>
<div class="last-link">
</div>
<div class="sous-forum" id="virgule">
{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
</div>
<div class="img-forum">
<img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
</div>
</div>
<!-- END forumrow -->
<!-- BEGIN catfoot -->
<!-- END catfoot -->
<!-- BEGIN tablefoot --></div>
<!-- END tablefoot --><!-- END catrow --></div>
<script type="text/javascript">
$(document).ready(function(){
jQuery('#virgule').html(jQuery('#virgule').html().replace(/, /g,' ◆ ')).removeAttr('id');
$('.forum-wrap').each(function() {
$('.img-forum img[title="Ce forum est verrouillé, vous ne pouvez pas poster, ni répondre, ni éditer les sujets."]').closest('.forum-wrap').addClass('lock');
$('.img-forum img[title="Nouveaux messages"]').closest('.forum-wrap').addClass('new');;
var last = $(this).find(".forum-last").html();
$(last).clone().appendTo( $(this).find( ".last-link" ) );
});
});
</script>
Enfin, dans Affichage > Images et couleurs > Couleurs et dans le petit onglet Feuille de style CSS, collez le code suivant :
- Code:
/*PERSONNALISATION DES CATEGORIES ET FORUMS PAR AWFUL*/
/*Bloc catégorie*/
.bloc-cate {
width: 800px;
display: flex;
flex-wrap: wrap;
padding: 20px;
margin: 0 auto 20px;
font-family: "Open Sans", sans-serif;
}
.cate-titre {
flex: 100%;
margin: -20px -20px 20px;
}
.cate-titre h2 {
font-size: 30px;
color: #dae3e2;
margin: 0;
text-align: center;
text-transform: uppercase;
letter-spacing: -1px;
}
/*Bloc Forum*/
.forum-wrap {
width: 250px;
height: 400px;
box-shadow: 0 0px 0px rgba(50, 50, 90, 0.1), 0 5px 5px rgba(0, 0, 0, 0.07);
border-radius: 5px;
position: relative;
background: #fff;
overflow: hidden;
margin-bottom: 20px;
margin-right: 25px;
transition: all 0.3s;
}
.forum-wrap:hover {
box-shadow: 0 5px 10px rgba(50, 50, 90, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07)
}
.forum-wrap:last-child {
margin-right: 0;
}
/*Apparence des forums avec nouveau message*/
.forum-wrap.new::after {
content: "\f38d";
position: absolute;
bottom: -5px;
font-size: 55px;
left: 20px;
color: #31BFB1;
font-family: Ionicons;
}
.forum-wrap.new::before {
content: "";
height: 0;
width: 0;
border-style: solid;
border-width: 20px 0 0 200px;
border-color: transparent transparent transparent #bef9f3;
position: absolute;
bottom: 0;
}
/*Apparence des forums verrouillés*/
.forum-wrap.lock::after {
content: "\f200";
position: absolute;
bottom: 5px;
font-size: 35px;
left: 15px;
color: #efefef;
font-family: Ionicons;
}
.forum-wrap.lock::before {
content: "";
height: 0;
width: 0;
border-style: solid;
border-width: 20px 0 0 200px;
border-color: transparent transparent transparent #ccc;
position: absolute;
bottom: 0;
}
.forum-wrap a,
.forum-wrap a:hover,
.forum-wrap a:active {
text-decoration: none!important;
}
/*Titre de forum*/
.forum-titre {
position: absolute;
width: 100%;
text-align: center;
top: 190px;
}
.forum-titre a {
font-family: "Playfair Display", serif;
color: #424242;
font-size: 20px;
transition: 0.3s ease-in-out;
}
.forum-titre a:hover {
color: #7d7d7d;
}
.forum-titre hr {
border: 0;
border-top: 1px solid #E6E9EC;
width: 20%;
}
/*Description*/
.forum-desc {
position: absolute;
width: 100%;
height: 100px;
top: 240px;
}
.forum-desc-content {
height: 100%;
width: 100%;
overflow: auto;
text-align: justify;
padding: 0 30px;
font-size: 11px;
line-height: 1.5em;
color: #424242;
box-sizing: border-box;
}
.forum-desc-content img {
position: absolute;
width: 100%;
height: 160px;
top: -240px;
left: 0;
}
/*Dernier message*/
.last-link {
position: absolute;
width: 130px;
bottom: 10px;
right: 0px;
text-decoration: none;
font-size: 0px;
}
.last-link a {
font-size: 10px;
}
.last-link > span > a {
text-transform: uppercase;
font-weight: bold;
color: #009587;
transition: color 0.3s;
}
.last-link > span > a:hover {
color: #22dbca;
}
.last-link > span > a + br,
.img-forum {
display: none;
}
.forum-last {
position: absolute;
top: 170px;
width: 100%;
text-align: center;
text-transform: uppercase;
font-weight: 700;
font-size: 8px;
color: #9aa7ad;
letter-spacing: 2px;
}
.forum-last a,
.forum-last br {
display: none;
}
/*Sous-forums*/
.sous-forum {
position: absolute;
width: 100%;
background: rgba(255, 255, 255, 0.7);
height: 160px;
box-sizing: border-box;
padding: 10px;
opacity: 0;
visibility: hidden;
transition: all 0.3s;
font-size: 8px;
color: #31BFB1;
}
.forum-wrap:hover .sous-forum {
visibility: visible;
opacity: 1;
}
.sous-forum a {
text-transform: uppercase;
font-weight: 700;
font-size: 9px;
color: #5d676c;
margin: 0 2px;
transition: all 0.3s;
}
.sous-forum a:fisrt-child {
margin-left: 0;
}
.sous-forum a:hover {
color: #31BFB1;
}
phpBB3
Pour activer l'affichage des sous-forums, panneau d'administration > Affichage > Page d'accueil > Structure et hiérarchie. Dans le bloc en bas, à "Lien vers les niveaux inférieurs", cocher "oui".
Dans votre panneau d'administration, Affichage > Templates > Général > Overall_header, copiez et collez le code suivant, après l'ouverture de la balise head :
- Code:
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
<link href='http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css' rel='stylesheet' type='text/css'>
Dans votre panneau d'administration, Affichage > Templates > Général > index_box, remplacez l'intégralité du template par le suivant :
- Code:
<ul class="linklist">
<!-- BEGIN switch_user_logged_in -->
<li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> • </li>
<li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a> • </li>
<!-- END switch_user_logged_in -->
<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></li>
<!-- BEGIN switch_user_logged_in -->
<li class="rightside"><a href="{U_MARK_READ}" accesskey="m">{L_MARK_FORUMS_READ}</a></li>
<!-- END switch_user_logged_in -->
</ul>
<!-- BEGIN catrow -->
<!-- BEGIN tablehead -->
<div class="wrap-cate">
<div class="bloc-cate">
<div class="cate-titre">{catrow.tablehead.L_FORUM}</div>
<!-- END tablehead -->
<!-- BEGIN forumrow -->
<div class="forum-wrap">
<div class="forum-titre">
<a href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
<hr />
</div>
<div class="forum-desc">
<div class="forum-desc-content">
{catrow.forumrow.FORUM_DESC}
</div>
</div>
<div class="forum-last">
<!-- BEGIN switch_topic_title -->
<a href="{catrow.forumrow.U_LATEST_TOPIC}" title="{catrow.forumrow.LATEST_TOPIC_TITLE}">
{catrow.forumrow.LATEST_TOPIC_NAME}</a><br />
<!-- END switch_topic_title -->
{catrow.forumrow.USER_LAST_POST}
</div>
<div class="last-link">
</div>
<div class="sous-forum" id="virgule">
{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
</div>
<div class="img-forum">
<img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
</div>
</div>
<!-- END forumrow -->
<!-- BEGIN tablefoot --></div>
<!-- END tablefoot -->
<!-- END catrow --></div>
<script type="text/javascript">
$(document).ready(function(){
jQuery('#virgule').html(jQuery('#virgule').html().replace(/, /g,' ◆ ')).removeAttr('id');
$('.forum-wrap').each(function() {
$('.img-forum img[title="Ce forum est verrouillé, vous ne pouvez pas poster, ni répondre, ni éditer les sujets."]').closest('.forum-wrap').addClass('lock');
$('.img-forum img[title="Nouveaux messages"]').closest('.forum-wrap').addClass('new');;
var last = $(this).find(".forum-last").html();
$(last).clone().appendTo( $(this).find( ".last-link" ) );
});
});
</script>
<!-- BEGIN switch_on_index -->
<ul class="linklist">
<li><a href="{U_TODAY_ACTIVE}">{L_TODAY_ACTIVE}</a> • </li>
<li><a href="{U_TODAY_POSTERS}">{L_TODAY_POSTERS}</a> • </li>
<li class="last"><a href="{U_OVERALL_POSTERS}">{L_OVERALL_POSTERS}</a></li>
<!-- BEGIN switch_delete_cookies -->
<li class="rightside"><a href="{switch_on_index.switch_delete_cookies.U_DELETE_COOKIES}" rel="nofollow">{switch_on_index.switch_delete_cookies.L_DELETE_COOKIES}</a></li>
<!-- END switch_delete_cookies -->
</ul>
<!-- END switch_on_index -->
Enfin, dans Affichage > Images et couleurs > Couleurs et dans le petit onglet Feuille de style CSS, collez le code suivant :
- Code:
/*PERSONNALISATION DES CATEGORIES ET FORUMS PAR AWFUL*/
/*Bloc catégorie*/
.bloc-cate {
width: 800px;
display: flex;
flex-wrap: wrap;
padding: 20px;
margin: 0 auto 20px;
font-family: "Open Sans", sans-serif;
}
.cate-titre {
flex: 100%;
margin: -20px -20px 20px;
}
.cate-titre h2 {
font-size: 30px;
color: #dae3e2;
margin: 0;
text-align: center;
text-transform: uppercase;
letter-spacing: -1px;
}
/*Bloc Forum*/
.forum-wrap {
width: 250px;
height: 400px;
box-shadow: 0 0px 0px rgba(50, 50, 90, 0.1), 0 5px 5px rgba(0, 0, 0, 0.07);
border-radius: 5px;
position: relative;
background: #fff;
overflow: hidden;
margin-bottom: 20px;
margin-right: 25px;
transition: all 0.3s;
}
.forum-wrap:hover {
box-shadow: 0 5px 10px rgba(50, 50, 90, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07)
}
.forum-wrap:last-child {
margin-right: 0;
}
/*Apparence des forums avec nouveau message*/
.forum-wrap.new::after {
content: "\f38d";
position: absolute;
bottom: -5px;
font-size: 55px;
left: 20px;
color: #31BFB1;
font-family: Ionicons;
}
.forum-wrap.new::before {
content: "";
height: 0;
width: 0;
border-style: solid;
border-width: 20px 0 0 200px;
border-color: transparent transparent transparent #bef9f3;
position: absolute;
bottom: 0;
}
/*Apparence des forums verrouillés*/
.forum-wrap.lock::after {
content: "\f200";
position: absolute;
bottom: 5px;
font-size: 35px;
left: 15px;
color: #efefef;
font-family: Ionicons;
}
.forum-wrap.lock::before {
content: "";
height: 0;
width: 0;
border-style: solid;
border-width: 20px 0 0 200px;
border-color: transparent transparent transparent #ccc;
position: absolute;
bottom: 0;
}
.forum-wrap a,
.forum-wrap a:hover,
.forum-wrap a:active {
text-decoration: none!important;
}
/*Titre de forum*/
.forum-titre {
position: absolute;
width: 100%;
text-align: center;
top: 190px;
}
.forum-titre a {
font-family: "Playfair Display", serif;
color: #424242;
font-size: 20px;
transition: 0.3s ease-in-out;
}
.forum-titre a:hover {
color: #7d7d7d;
}
.forum-titre hr {
border: 0;
border-top: 1px solid #E6E9EC;
width: 20%;
margin: 10px auto;
}
/*Description*/
.forum-desc {
position: absolute;
width: 100%;
height: 100px;
top: 240px;
}
.forum-desc-content {
height: 100%;
width: 100%;
overflow: auto;
text-align: justify;
padding: 0 30px;
font-size: 11px;
line-height: 1.5em;
color: #424242;
box-sizing: border-box;
}
.forum-desc-content img {
position: absolute;
width: 100%;
height: 160px;
top: -240px;
left: 0;
}
/*Dernier message*/
.last-link {
position: absolute;
width: 130px;
bottom: 10px;
right: 0px;
text-decoration: none;
font-size: 0px;
}
.last-link a {
font-size: 10px;
}
.last-link > span > a {
text-transform: uppercase;
font-weight: bold;
color: #009587;
transition: color 0.3s;
}
.last-link > span > a:hover {
color: #22dbca;
}
.last-link > span > a + br,
.img-forum {
display: none;
}
.forum-last {
position: absolute;
top: 170px;
width: 100%;
text-align: center;
text-transform: uppercase;
font-weight: 700;
font-size: 8px;
color: #9aa7ad;
letter-spacing: 2px;
}
.forum-last a,
.forum-last br {
display: none;
}
/*Sous-forums*/
.sous-forum {
position: absolute;
width: 100%;
background: rgba(255, 255, 255, 0.7);
height: 160px;
box-sizing: border-box;
padding: 10px;
opacity: 0;
visibility: hidden;
transition: all 0.3s;
font-size: 8px;
color: #31BFB1;
}
.forum-wrap:hover .sous-forum {
visibility: visible;
opacity: 1;
}
.sous-forum a {
text-transform: uppercase;
font-weight: 700;
font-size: 9px;
color: #5d676c;
margin: 0 2px;
transition: all 0.3s;
}
.sous-forum a:fisrt-child {
margin-left: 0;
}
.sous-forum a:hover {
color: #31BFB1;
}
|
|