Fiches & Messages
Administration
Présentations & Prédéfinis
Relations
Fiches RPG
Publicités
Autres
Templates & Éléments
Header & Navigation
Page d'accueil
Catégories
Qui est en ligne
Liste sujets
Liste membres
Messages & Profil
Autres
Halloween
Index complets
Références
Passer commande
Welcome
Halloween
Profil & Message
Onglet
Halloween, LS codage
Templates & Eléments
Messages & Profil
Profil onglet
PHPBB2
Non optimisé
Le profil et la feuille de personnage sont en système d'onglet
Retour
CSS
/* les onglets sélectionnés */ .systab .tab.selected { color: #E1E1E1; background: #338687; } /* contenus associés aux onglets */ .systab .contents { position: relative; top: -6em; color: #E1E1E1; background: #338687; border: 1px solid #338687; padding: 10px; height: 60px; width: 178px; overflow: auto; } /* style des onglets */ .systab.s_float .tab,.systab.s_float .tab { display: block; margin: 5px; } /* flottement des conteneurs */ .systab.s_float .tabs,.systab.s_float .contents { float: center; } /* --------------------------------- FIN PROFIL --------------------------------- */
Viewtopic_body
{L_INDEX}
{NAV_SEP}
{L_ALBUM}
{NAV_CAT_DESC_SECOND}
Tweet
{L_SHARE}
|
{TOPIC_TITLE}
{L_VIEW_PREVIOUS_TOPIC}
{L_VIEW_NEXT_TOPIC}
{L_GOTO_DOWN}
{PAGINATION}
{POLL_DISPLAY}
{L_AUTHOR}
{L_MESSAGE}
{postrow.hidden.MESSAGE}
{postrow.displayed.POSTER_AVATAR}
{postrow.displayed.POSTER_NAME}
est mon nom et il n'appartient qu'à moi
{postrow.displayed.RANK_IMAGE}
{postrow.displayed.PROFILE_IMG} {postrow.displayed.PM_IMG} {postrow.displayed.ONLINE_IMG}
Infos de base
{postrow.displayed.profile_field.LABEL} {postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
Fiche RPG
{postrow.displayed.POSTER_RPG}
{L_POST_SUBJECT}: {postrow.displayed.POST_SUBJECT}
{postrow.displayed.POST_DATE}
{postrow.displayed.THANK_IMG} {postrow.displayed.MULTIQUOTE_IMG} {postrow.displayed.QUOTE_IMG} {postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}
+
----
-
{postrow.displayed.MESSAGE}
{postrow.displayed.switch_attachments.L_ATTACHMENTS}
{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT}
{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT_DEL} {postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.ATTACHMENT} {postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.ATTACHMENT_DEL}
{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_comment.ATTACHMENT_COMMENT}
{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.TEXT_NO_DL}
({postrow.displayed.switch_attachments.switch_post_attachments.FILE_SIZE}) {postrow.displayed.switch_attachments.switch_post_attachments.NB_DL}
{postrow.displayed.SIGNATURE}
{postrow.displayed.EDITED_MESSAGE}
{L_BACK_TO_TOP}
{L_GOTO_DOWN}
{postrow.displayed.EMAIL_IMG} {postrow.displayed.contact_field.CONTENT}
{L_AUTHOR}
{L_MESSAGE}
{no_post.L_NO_POST}
{TOPIC_TITLE}
{L_VIEW_PREVIOUS_TOPIC}
{L_VIEW_NEXT_TOPIC}
{L_BACK_TO_TOP}
{PAGE_NUMBER}
{PAGINATION}
{S_WATCH_TOPIC}
{PROMOT_TRAFIC_TITLE}
{PROMOT_TRAFIC_TITLE}
»
{promot_trafic.link.TITLE}
{L_FORUM_RULES}
{RULE_MSG}
{QUICK_REPLY_FORM}
{L_TABS_PERMISSIONS}
{S_AUTH_LIST}
{L_INDEX}
{NAV_SEP}
{L_ALBUM}
{NAV_CAT_DESC_SECOND}
{L_INDEX}
{NAV_SEP}
{L_ALBUM}
{NAV_CAT_DESC_SECOND}
{L_JUMP_TO}: {S_JUMPBOX_SELECT}
{moderation_panel.U_YOUR_PERSONAL_MODERATE}
{S_TOPIC_ADMIN}
{L_MOD_TOOLS}
{S_SELECT_MOD}
Puis il faut créer une page Javascript, Modules → Codes Javascript → Créer un nouveau Javascript :
$(function(){ var d=function(){if($(this).is(".selected")) return;var a=$(this).closest(".systab");a.find(".selected").removeClass("selected").filter(".content")[a.is(".s_slide")?"slideUp":a.is(".s_fade")?"fadeOut":"hide"](+((a.attr("class")||"").match(/^[sS]*(?:^|s)s_trans([0-9]+)(?:s|$)[sS]*$/)||["",500])[1]);$(this).addClass("selected").data("content").addClass("selected").stop(!0,!0)[a.is(".s_slide")?"slideDown":a.is(".s_fade")?"fadeIn":"show"](+((a.attr("class")||"").match(/^[sS]*(?:^|s)s_trans([0-9]+)(?:s|$)[sS]*$/)||["",500])[1])};$("div.systab").each(function(){var a=$("> div",this).detach(),c=[],b;$(this).html('
');$(a).each(function(){b=$(this).children(":first");b.is("span")?(c=$(c).add($(b).addClass("tab").data("content",$(this))),$(this).addClass("content").data("tab",b)):$(this).remove()});$("> div.tabs",this).append(c);$("> div.contents",this).append(a);b=$(".content:first,.content.selected",this).last();$(b).addClass("selected").siblings().hide();$(b).data("tab").addClass("selected")}).on("click",".tab",d).filter(".s_hover").on("mouseenter",".tab",d) });
Dernière modification : 20 November 2018 22 : 24.
#profilonglet #messageprofil #forumactif #codage #libreservice