Apparence de divers liens (template index_body)
2 participants
Forum gratuit : Le forum des forums actifs :: Entraide & Support... :: Problème avec un script, un code :: Archives des problèmes avec un code
Page 1 sur 1 • Partagez
Apparence de divers liens (template index_body)
Détails techniques
Version du forum : phpBB2
Poste occupé : Administrateur
Navigateur(s) concerné(s) : Google Chrome
Capture d'écran du problème :
- Voir l'image:
Personnes concernées par le problème : Tous les utilisateurs
Lien du forum : (lien masqué, vous devez poster pour le voir)
Description du problème
Bonjour à tous !Voilà un petit moment que je galère à régler l'apparence de différents liens de mon forum, entre autres les liens ayant pour intitulés originaux les suivants (les intitulés ont été modifiés grâce à du Javascript) : "Voir les nouveaux messages depuis votre dernière visite", "Voir ses messages", "Voir les messages sans réponses", "Top 20 des posteurs du forum" et "Supprimer les cookies du forum".
Je les ai tous regroupé dans le template index_body et j'ai créé deux div pour les séparer (la première ligne placée juste avant les catégories du forum et la seconde après ces dernières - cf. screen) . Le problème est que quelque chose cloche quelque part, étant donné que je ne parviens pas à modifier l'aspect des liens (j'aimerais dans l'idéal qu'ils soient réglés à 7px et appliquer un letter-spacing - la même apparence que le petit texte en footer de mes catégories "HOOFBEATS 2017"). Avez-vous une idée de comment parvenir à ce résultat ?
Voici le CSS utilisé :
Les liens du haut
- Code:
.blocLKSTOP {
font-family: montserrat;
font-size: 7px !important;
letter-spacing: 1px;
margin-bottom: -3px;
margin-top: 5px;
text-transform: uppercase;
padding-bottom: 10px;
padding-top: 10px;
text-align:center;
background:#ffffff;
}
Les liens du bas
- Code:
.blocLKSBOTTOM {
font-family: montserrat;
font-size: 7px !important;
letter-spacing: 1px;
margin-top: -10px;
margin-bottom: -3px;
text-transform: uppercase;
padding-bottom: 10px;
padding-top: 10px;
text-align:center;
background:#ffffff;
}
Et voici mon index_body :
- Code:
{JAVASCRIPT}
<!-- BEGIN message_admin_index -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
<!-- BEGIN message_admin_titre -->
<tr>
<td class="catHead" height="28"><span class="cattitle">{message_admin_index.message_admin_titre.MES_TITRE}</span></td>
</tr>
<!-- END message_admin_titre -->
<!-- BEGIN message_admin_txt -->
<tr>
<td class="row1" rowspan="3" align="center" valign="middle">
<div class="gensmall">{message_admin_index.message_admin_txt.MES_TXT}</div>
</td>
</tr>
<!-- END message_admin_txt -->
</table>
<!-- END message_admin_index -->
<!-- BEGIN disable_viewonline -->
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr><td><div class="QEEL"><!-- TITRE --><div class="tleQEEL"><a class="cattitle" href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></div><!-- STATISTIQUES --><div class="stsQEEL">{NEWEST_USER}<br/>{TOTAL_POSTS}<br/>{TOTAL_USERS}</div><!-- EN LIGNE --><div class="onlineQEEL"><table>▬ <b>En ligne</b> : <span id="LINEUS">{LOGGED_IN_USERS_LIST}</span><script type="text/javascript">document.getElementById('LINEUS').innerHTML=document.getElementById('LINEUS').innerHTML.replace(/Utilisateurs enregistrés :/,"");</script></table></div><div class="dayQEEL"><table>{L_CONNECTED_MEMBERS}</table></div></div><!-- GROUPES --><div class="blocGQEEL">{GROUP_LEGEND}</div>
</td></tr></table>
<!-- END disable_viewonline -->
<div class="blocLKSTOP"><!-- BEGIN switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> ♢
<a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a> ♢
<!-- END switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></div>
<!-- BEGIN switch_user_login_form_header -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
<!-- BEGIN switch_fb_connect_no -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
<tr>
<td class="row1" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="genmed">{L_USERNAME}:</span> </td>
<td><input class="post" type="text" size="10" name="username"/> </td>
<td>
<input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
<span class="gensmall">{L_AUTO_LOGIN}</span>
</td>
</tr>
<tr>
<td><span class="genmed">{L_PASSWORD}:</span> </td>
<td><input class="post" type="password" size="10" name="password"/> </td>
<td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- END switch_fb_connect_no -->
<!-- BEGIN switch_fb_connect -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
<tr>
<td valign="top" width="100%" class="row1" align="center">
<table width="100%">
<tr>
<td width="55%" valign="middle" align="right">
<table class="right">
<tr>
<td><span class="genmed">{L_USERNAME}:</span> </td>
<td><input class="post" type="text" size="10" name="username"/> </td>
<td>
<input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
<span class="gensmall">{L_AUTO_LOGIN}</span>
</td>
</tr>
<tr>
<td><span class="genmed">{L_PASSWORD}:</span> </td>
<td><input class="post" type="password" size="10" name="password"/> </td>
<td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
</tr>
</table>
</td>
<td width="10%" align="center" valign="middle">
<span class="genmed fb_or">{switch_user_login_form_header.switch_fb_connect.L_OR}</span>
</td>
<td width="35%" class="align_gauche"><fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" scope="{switch_user_login_form_footer.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_footer.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- END switch_fb_connect -->
</form>
<!-- END switch_user_login_form_header -->
{CHATBOX_TOP}
{BOARD_INDEX}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!-- BEGIN switch_delete_cookies -->
<a href="{switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall">{switch_delete_cookies.L_DELETE_COOKIES}</a>
<!-- END switch_delete_cookies -->
<center> <!-- BEGIN switch_user_logged_in -->
<div class="blocLKSBOTTOM">
<span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a> ♢
<!-- END switch_user_logged_in -->
</span>
<span class="gensmall">
<a href="{U_OVERALL_POSTERS}" class="gensmall">{L_OVERALL_POSTERS}</a> ♢
<!-- BEGIN switch_on_index -->
<!-- BEGIN switch_delete_cookies -->
<a href="{switch_on_index.switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall">{switch_on_index.switch_delete_cookies.L_DELETE_COOKIES}</a>
<!-- END switch_delete_cookies -->
<!-- END switch_on_index -->
</span>
</div>
</center>
</table>
<!-- BEGIN switch_user_login_form_footer -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
<!-- BEGIN switch_fb_connect_no -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
<tr>
<td class="row1" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="genmed">{L_USERNAME}:</span> </td>
<td><input class="post" type="text" size="10" name="username"/> </td>
<td>
<input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
<span class="gensmall">{L_AUTO_LOGIN}</span>
</td>
</tr>
<tr>
<td><span class="genmed">{L_PASSWORD}:</span> </td>
<td><input class="post" type="password" size="10" name="password"/> </td>
<td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- END switch_fb_connect_no -->
<!-- BEGIN switch_fb_connect -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
<tr>
<td valign="top" width="100%" class="row1" align="center">
<table width="100%">
<tr>
<td width="55%" valign="middle">
<table class="right">
<tr>
<td><span class="genmed">{L_USERNAME}:</span> </td>
<td><input class="post" type="text" size="10" name="username"/> </td>
<td>
<input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
<span class="gensmall">{L_AUTO_LOGIN}</span>
</td>
</tr>
<tr>
<td><span class="genmed">{L_PASSWORD}:</span> </td>
<td><input class="post" type="password" size="10" name="password"/> </td>
<td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
</tr>
</table>
</td>
<td width="10%" align="center" valign="middle">
<span class="genmed fb_or">{switch_user_login_form_footer.switch_fb_connect.L_OR}</span>
</td>
<td width="35%" class="align_gauche"><fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" scope="{switch_user_login_form_footer.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_footer.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- END switch_fb_connect -->
</form>
<!-- END switch_user_login_form_footer -->
{CHATBOX_BOTTOM}
<br clear="all" />
<!-- BEGIN switch_legend -->
<table border="0" cellspacing="3" cellpadding="0" align="center">
<tr>
<td align="center" width="20"><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td></td>
<td align="center" width="20"><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" /></td>
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td> </td>
<td align="center" width="20"><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" /></td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
<!-- END switch_legend -->
{AUTO_DST}
<!-- BEGIN switch_fb_index_login -->
<div id="fb-root"></div>
<script>
FB.init({
appId : {switch_fb_index_login.FACEBOOK_APP_ID},
cookie : true,
xfbml : true,
oauth : true,
version : 'v2.3'
});
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<!-- END switch_fb_index_login -->
Merci d'avance pour votre aide
Dernière édition par pinke le Lun 6 Mar 2017 - 5:57, édité 3 fois
Re: Apparence de divers liens (template index_body)
bonsoir pinke
il manque un tous petit détail dans votre css .. pour agir sur des liens en (a) <a href="{U_MARK_READ}" class="gensmall"> il faut ajouté a votre css le (a)
comme ceci
cdl,
il manque un tous petit détail dans votre css .. pour agir sur des liens en (a) <a href="{U_MARK_READ}" class="gensmall"> il faut ajouté a votre css le (a)
comme ceci
- Code:
.blocLKSTOP a {
font-family: montserrat;
font-size: 7px !important;
letter-spacing: 1px;
margin-bottom: -3px;
margin-top: 5px;
text-transform: uppercase;
padding-bottom: 10px;
padding-top: 10px;
text-align:center;
background:#ffffff;
}
.blocLKSBOTTOM a {
font-family: montserrat;
font-size: 7px !important;
letter-spacing: 1px;
margin-top: -10px;
margin-bottom: -3px;
text-transform: uppercase;
padding-bottom: 10px;
padding-top: 10px;
text-align:center;
background:#ffffff;
}
cdl,
Invité- Invité
Re: Apparence de divers liens (template index_body)
Je vous remercie, ça fonctionne pour les liens du haut, mais pour les liens du bas, le ♢ ne prend pas la taille demandée (apperçu) !
Re: Apparence de divers liens (template index_body)
hum !! c'est marrant ça chez moi c'est le contraire qui se passe ...
les liens du haut ne sont pas inpacté.
les liens du haut >>
les liens du bas >>
vous pouvez remarqué que sur les liens en (a) du bas il sont entourer d'un span
voici donc surement la cause du probléme ?
les liens du haut ne sont pas inpacté.
les liens du haut >>
- Code:
<div class="blocLKSTOP"><!-- BEGIN switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> ♢
<a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a> ♢
<!-- END switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></div>
les liens du bas >>
- Code:
<div class="blocLKSBOTTOM">
<span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a> ♢
<!-- END switch_user_logged_in -->
</span>
<span class="gensmall">
<a href="{U_OVERALL_POSTERS}" class="gensmall">{L_OVERALL_POSTERS}</a> ♢
<!-- BEGIN switch_on_index -->
<!-- BEGIN switch_delete_cookies -->
<a href="{switch_on_index.switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall">{switch_on_index.switch_delete_cookies.L_DELETE_COOKIES}</a>
vous pouvez remarqué que sur les liens en (a) du bas il sont entourer d'un span
- Code:
<span class="gensmall">
voici donc surement la cause du probléme ?
Invité- Invité
Re: Apparence de divers liens (template index_body)
Bonsoir,
Si je puis me permettre une remarque : un internaute moyen ne s'arrêtera pas très longtemps sur votre forum qui est, en l'état, particulièrement difficile à lire.
Cordialement,
Walt
Si je puis me permettre une remarque : un internaute moyen ne s'arrêtera pas très longtemps sur votre forum qui est, en l'état, particulièrement difficile à lire.
Cordialement,
Walt
Walt- Modéractif
-
Messages : 6081
Inscrit(e) le : 08/09/2015
Re: Apparence de divers liens (template index_body)
R-max a écrit:hum !! c'est marrant ça chez moi c'est le contraire qui se passe ...
les liens du haut ne sont pas inpacté.
les liens du haut >>
- Code:
<div class="blocLKSTOP"><!-- BEGIN switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> ♢
<a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a> ♢
<!-- END switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></div>
les liens du bas >>
- Code:
<div class="blocLKSBOTTOM">
<span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a> ♢
<!-- END switch_user_logged_in -->
</span>
<span class="gensmall">
<a href="{U_OVERALL_POSTERS}" class="gensmall">{L_OVERALL_POSTERS}</a> ♢
<!-- BEGIN switch_on_index -->
<!-- BEGIN switch_delete_cookies -->
<a href="{switch_on_index.switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall">{switch_on_index.switch_delete_cookies.L_DELETE_COOKIES}</a>
vous pouvez remarqué que sur les liens en (a) du bas il sont entourer d'un spanet pas ceux du haut .
- Code:
<span class="gensmall">
voici donc surement la cause du probléme ?
Effectivement, c'était ça qui bloquait Le problème est donc résolu. Merci pour votre aide et bonne journée à vous !
Walt a écrit:Bonsoir,
Si je puis me permettre une remarque : un internaute moyen ne s'arrêtera pas très longtemps sur votre forum qui est, en l'état, particulièrement difficile à lire.
Cordialement,
Walt
Bonjour, mon forum est actuellement en construction et je n'ai pas fini de travailler sur les couleurs. Je vous remercie néanmoins pour votre remarque.
Sujets similaires
» Comment enlever ces liens ( template )
» Template, mettre les liens des sous forum à droite
» Problème d'apparence des liens survolés et des liens cliqués sur page d'accueil et pop-up ?
» Template.
» template ? CSS ?
» Template, mettre les liens des sous forum à droite
» Problème d'apparence des liens survolés et des liens cliqués sur page d'accueil et pop-up ?
» Template.
» template ? CSS ?
Forum gratuit : Le forum des forums actifs :: Entraide & Support... :: Problème avec un script, un code :: Archives des problèmes avec un code
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum