1 Templates : Bouton pour/et profil rétractable [phpBB2] 23/4/2009, 13:45
Yes !
Merci ZE_Magicien !
EDIT FB : Se réfère à ce tuto
Merci ZE_Magicien !
EDIT FB : Se réfère à ce tuto
Dernière édition par final-blond le 1/11/2009, 15:00, édité 2 fois
Vous n'êtes pas connecté. Connectez-vous ou enregistrez-vous
Aller à la page : 1, 2
Dernière édition par final-blond le 1/11/2009, 15:00, édité 2 fois
<!-- BEGIN displayed -->
<tr class="post">
<td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="150">
<span class="name"><a name="{postrow.displayed.U_POST_ID}"></a><strong>{postrow.displayed.POSTER_NAME}</strong></span><br />
<span class="postdetails poster-profile">
{postrow.displayed.POSTER_RANK}<br />
{postrow.displayed.RANK_IMAGE}{postrow.displayed.POSTER_AVATAR}<br /><br />
<!-- BEGIN profile_field -->
{postrow.displayed.profile_field.LABEL} {postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
{postrow.displayed.POSTER_RPG}
</span>
<!-- BEGIN displayed -->
<tr class="post">
<td class="{postrow.displayed.ROW_CLASS}" valign="top" width="160" style="padding-right: 10px;"><div style="text-align: left;">
{postrow.displayed.POSTER_AVATAR}<br /><span class="name"><a name="{postrow.displayed.U_POST_ID}"></a><strong>{postrow.displayed.POSTER_NAME}</strong></span>
<span class="postdetails poster-profile">
<br/>{postrow.displayed.POSTER_RANK}<br />
{postrow.displayed.RANK_IMAGE}</div><br />
<div align="left"><div class="quotetitle"><input type="button" value="View Profil" style="width:70px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide Profil'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'View Profil'; }" /></div><div class="quotecontent"><div style="display: none;"><br /><div style='position:absolute;' class="profilpop"><span class="genmed"><font size="1">
<!-- BEGIN profile_field -->
{postrow.displayed.profile_field.LABEL} {postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
{postrow.displayed.POSTER_RPG}
</font></span></div></div></div></div>
Eh bien Laurent, pas de souci, la modif est la même que pour Mario, sauf erreur de ma part.Laurent a écrit:Bien l'idée du bouton je trouve
je n'ai pas saisi ce que tu aimerais, et c'est sûr que c'est moi qui n'ai pas compris...Mario a écrit:je voudrais que le bouton ouvre un simple spoiler et non pas une petite fenêtre style pop-up:
Bouton voir cacher |
ze_chaofan a écrit:Hum, j'en suis pas tout à fait sûr, mais essaye.
Dans ton template, remplace ceci :
- Code:
<font size="1">
<!-- BEGIN profile_field -->
<b>{postrow.displayed.profile_field.LABEL}</b> <font
color="black">{postrow.displayed.profile_field.CONTENT}</font>{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
{postrow.displayed.POSTER_RPG}
</font>
Par ceci :
- Code:
<div style='position:absolute;' class="profilpop"><span class="genmed"><font size="1">
<!-- BEGIN profile_field -->
{postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
{postrow.displayed.POSTER_RPG}
</font></span></div>
style="width:70px;font-size:10px;margin:0px;padding:0px;"
Tiens je m'y attendais et je n'ai pas préparé...Laurent a écrit:Serait il plutot possible de mettre un bouton image comme le hors ligne sur sf-bb ?
<input type="button" value="Afficher" style="width:50px; background-image: url('http://img4.hostingpics.net/pics/81473gradient3.png'); font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Masquer'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Afficher'; }" />
background-image: url('https://2img.net/r/hpimg4/pics/81473gradient3.png');
Mario a écrit:Merci, je vais essayer
Eh bien encore heureux, sinon tout serait trop standart.Mario a écrit:il a quand même fallu que je fasse pas mal de modifs et d'essai pour obtenir ce que je voulais
la couleur du texte, voici un exemple dans le template viewtopic_body :Mario a écrit:comment fait on pour modifier la couleur, du texte, du fond et du contour, stp ?
<!-- BEGIN profile_field -->
<font color="white">{postrow.displayed.profile_field.LABEL}</font> <font color="black">{postrow.displayed.profile_field.CONTENT}</font>{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
L'orange pour le fond et le vert pour le contour./*Menu_Profil-------------------------------------------------*/
.profilpop { background-color: #FAFAFA; border: 1px solid #02374F;}
Aller à la page : 1, 2
SOS-FORUM » Entraide » Aide aux tutoriels SF » Archives » Templates : Bouton pour/et profil rétractable [phpBB2]
Sujets similaires
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum