Astuces Forumactif
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
Membres connectés récemment
Voir tous les membres

[PHPBB2] Modification de la position des label profils dans les messages postés


2 participants

Voir le sujet précédent Voir le sujet suivant Aller en bas

Elenwe57
Elenwe57
https://under-the-moon.forumactif.com/

MessageElenwe57 Lun 24 Aoû 2020 - 11:08

  • Version du forum :
    PHPBB2
  • Templates modifiés :
    oui
  • Navigateur :
    Chrome
Bonjour bonjour :D
Voilà, j'arrive sur mes grands chevaux avec une prise de tête comme je les aime !

Que je vous explique !

Dans tous les messages postés, comme ceux-ci :
https://moonlight-test.forumactif.com/t17-message-test-pour-avoir-un-truc
Le posteur voit son avatar prendre le dessus sur les informations, qui ne sont alors visible que lorsque l'on passe la souris sur l'avatar.
Jusque là, tout va bien.

MAIS ! J'aimerais justement que l'un des points présents dans ce truc qui apparaît passe sous l'avatar et soit visible tout le temps (le point "Titre")

J'ai bien essayé de rajouter des noms de labels, comme j'ai pu faire dans le profil, sauf que impossible de me souvenir de comment (et la réadaptation du code... Bah pour l'instant j'y arrive pas, mais si ce n'est pas possible, ca serait même normal xD)

A savoir que mon template est donc déjà modifié :
Code:
<script type="text/javascript">
//<![CDATA[
var multiquote_img_off = '{JS_MULTIQUOTE_IMG_OFF}', multiquote_img_on = '{JS_MULTIQUOTE_IMG_ON}', _atr = '{JS_DIR}addthis/', _ati = '{PATH_IMG_FA}addthis/'{ADDTHIS_LANG}, addthis_localize = { share_caption: "{L_SHARE_CAPTION}", email: "{L_EMAIL}", email_caption: "{L_EMAIL_CAPTION}", favorites: "{L_SHARE_BOOKMARKS}", print: "{L_PRINT}", more: "{L_MORE}" };
$(function(){
    if(typeof(_atc) == "undefined") {
        _atc = {  };
    }
});

var hiddenMsgLabel = { visible:'{JS_HIDE_HIDDEN_MESSAGE}', hidden:'{JS_SHOW_HIDDEN_MESSAGE}' };
showHiddenMessage = function(id)
{
    try
    {
        var regId = parseInt(id, 10);
        if( isNaN(regId) ) { regId = 0; }
      
        if( regId > 0)
        {
            $('.post--' + id).toggle(0, function()
 {
 if( $(this).is(":visible") )
 {
 $('#hidden-title--' + id).html(hiddenMsgLabel.visible);
 }
 else
 {
 $('#hidden-title--' + id).html(hiddenMsgLabel.hidden);
 }
 });
        }
    }
    catch(e) { }
  
 return false;
};

//]]>
</script>
<br/>
<span class="nav">
                <a class="nav" href="{U_INDEX}"><span>{L_INDEX}</span></a>
                <!--{NAV_SEP}<a class="nav" href="{U_ALBUM}"><span>{L_ALBUM}</span></a>-->
                {NAV_CAT_DESC_SECOND}
</span><br/>
<br/>
<table width="100%" border="0" cellspacing="2" cellpadding="0">
 <tr>
 <td align="left" valign="middle" nowrap="nowrap">
 
 <!-- BEGIN switch_user_authpost -->
 <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}one" alt="{L_POST_NEW_TOPIC}" align="middle" border="0" /></a>   
 <!-- END switch_user_authpost -->
 <!-- BEGIN switch_user_authreply -->
 <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" id="i_reply" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0" /></a>
 <!-- END switch_user_authreply -->

 </td>
 <td class="nav" valign="middle" width="100%">
 
 </td>
 <td align="right" valign="bottom" nowrap="nowrap" width="100%">
 <!-- BEGIN switch_twitter_btn -->
 <span id="twitter_btn" style="margin-left: 6px; ">
                <a href="https://twitter.com/share" class="twitter-share-button" data-via="{TWITTER}">Tweet</a>
                <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
 </span>
 <!-- END switch_twitter_btn -->
 
 <!-- BEGIN switch_fb_likebtn -->
 <script>(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 = "https://connect.facebook.net/{LANGUAGE}/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
 }(document, 'script', 'facebook-jssdk'));</script>
 <div class="fb-like" data-href="{FORUM_URL}{TOPIC_URL}" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>
 <!-- END switch_fb_likebtn -->

 <span class="gensmall bold">
 <a class="addthis_button" href="#">{L_SHARE}</a>
 <!-- BEGIN switch_plus_menu -->
  | 
 <script type="text/javascript">//<![CDATA[
 var url_favourite = '{U_FAVOURITE_JS_PLUS_MENU}';
 var url_newposts = '{U_NEWPOSTS_JS_PLUS_MENU}';
 var url_egosearch = '{U_EGOSEARCH_JS_PLUS_MENU}';
 var url_unanswered = '{U_UNANSWERED_JS_PLUS_MENU}';
 var url_watchsearch = '{U_WATCHSEARCH_JS_PLUS_MENU}';
 insert_plus_menu('f{FORUM_ID}&t={TOPIC_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
 //]]>
 </script>
 <!-- END switch_plus_menu -->
 </span>
 </td>
 </tr>
</table>
<br/>
<table class="forumline" width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr align="right">
 <td class="titlesubject" colspan="2" height="28" style="background-color: #350000;">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td width="9%" class="noprint"> </td>
 <td align="center" class="t-title">
 <div class="titresujet"> {TOPIC_TITLE}</div>
 </td>
 <td align="right" width="9%" class="browse-arrows">
                        <!-- BEGIN switch_isconnect -->
                        <a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a> 
                        <!-- END switch_isconnect -->
                        <a href="#bottom">{L_GOTO_DOWN}</a> 
                    </td>
 </tr>
 </table>
 </td>
 </tr>
 <!-- BEGIN topicpagination -->
 <tr>
 <td class="row1 pagination" colspan="2" align="right" valign="top"><span class="gensmall">{PAGINATION}</span></td>
 </tr>
 <!-- END topicpagination -->
 {POLL_DISPLAY}
 <!-- BEGIN postrow -->
 <!-- BEGIN hidden -->
 <tr>
 <td class="postdetails {postrow.hidden.ROW_CLASS}" colspan="2" align="center">{postrow.hidden.MESSAGE}</td>
 </tr>
 <!-- END hidden -->
 <!-- BEGIN displayed -->
 <tr class="post post--{postrow.displayed.U_POST_ID}" id="{postrow.displayed.U_POST_ID}" style="{postrow.displayed.DISPLAYABLE_STATE}">
 <td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="150">
 <span class="postdetails poster-profile">
                    <div class="post-profil">
                    <div class="profil-avatar">
                      {postrow.displayed.POSTER_AVATAR}
                    </div>
                    <div class="profil-hover">
                      <div class="profil-hover-content">
 <!-- BEGIN profile_field -->
                      <div>
 {postrow.displayed.profile_field.LABEL} {postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
                      </div>
 <!-- END profile_field -->
 
 {postrow.displayed.POSTER_RPG}
                      </div>
                    </div>
                    </div>

 </span><br />
 <img src="https://2img.net/i/fa/empty.gif" alt="" style="width:150px;height:1px" />
 </td>
 <td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="100%" height="28">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr><td class="M14_get_img"colspan="2"align="center"><img src="https://zupimages.net/up/19/40/chps.png"/><div class="nameposter">{postrow.displayed.POSTER_NAME}</div><div class="rankposter">{postrow.displayed.POSTER_RANK}</div></td></tr>
 <tr class="postoptionsdetails">
                                  <td><span class="postdetails"><a href="#{postrow.displayed.U_POST_ID}">#{postrow.displayed.U_POST_ID} : {postrow.displayed.POST_SUBJECT}</a></span><div style="text-align:right;font-size:10px;padding:2px;">{postrow.displayed.POST_DATE}</div></td>
 
                          
                                  <td valign="top" nowrap="nowrap" class="post-options">
 <div class="post-btn">
                    <div class="btn-quote">{postrow.displayed.QUOTE_IMG} </div>
                      <div class="btn-edit">{postrow.displayed.EDIT_IMG} </div>
                        <div class="btn-delete">{postrow.displayed.DELETE_IMG} </div>
                            <div class="btn-report">{postrow.displayed.REPORT_IMG}</div>
                    </div>
 </td>
 </tr>
 
 <tr>
 <td colspan="2">
 <!-- BEGIN switch_vote_active -->
 <div class="vote gensmall">
 <!-- BEGIN switch_vote -->
 <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a></div>
 <!-- END switch_vote -->

 <!-- BEGIN switch_bar -->
 <div class="vote-bar" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}">
 <!-- BEGIN switch_vote_plus -->
 <div class="vote-bar-plus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_plus.HEIGHT_PLUS}px;"></div>
 <!-- END switch_vote_plus -->

 <!-- BEGIN switch_vote_minus -->
 <div class="vote-bar-minus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_minus.HEIGHT_MINUS}px;"></div>
 <!-- END switch_vote_minus -->
 </div>
 <!-- END switch_bar -->

 <!-- BEGIN switch_no_bar -->
 <div title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar">----</div>
 <!-- END switch_no_bar -->

 <!-- BEGIN switch_vote -->
 <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}">-</a></div>
 <!-- END switch_vote -->
 </div>
 <!-- END switch_vote_active -->

 <div class="postbody">

 <div class="messageposter">{postrow.displayed.MESSAGE}</div>

 <!-- BEGIN switch_attachments -->
 <dl class="attachbox">
 <dt>{postrow.displayed.switch_attachments.L_ATTACHMENTS}</dt>
 <dd>
 <!-- BEGIN switch_post_attachments -->
 <dl class="file">
 <dt>
 <img src="{postrow.displayed.switch_attachments.switch_post_attachments.U_IMG}" alt="" />

 <!-- BEGIN switch_dl_att -->
 <a class="postlink" href="{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.U_ATTACHMENT}">{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT}</a> {postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT_DEL}
 <!-- END switch_dl_att -->

 <!-- BEGIN switch_no_dl_att -->
 {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}
 <!-- END switch_no_dl_att -->
 </dt>

 <!-- BEGIN switch_no_comment -->
 <dd>
 <em>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_comment.ATTACHMENT_COMMENT}</em>
 </dd>
 <!-- END switch_no_comment -->

 <!-- BEGIN switch_no_dl_att -->
 <dd>
 <em><strong>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.TEXT_NO_DL}</strong></em>
 </dd>
 <!-- END switch_no_dl_att -->

 <dd>({postrow.displayed.switch_attachments.switch_post_attachments.FILE_SIZE}) {postrow.displayed.switch_attachments.switch_post_attachments.NB_DL}</dd>
 </dl>
 <!-- END switch_post_attachments -->
 </dd>
 </dl>
 <!-- END switch_attachments -->
 
 <!-- BEGIN switch_signature -->
 <div class="signature_div">
 {postrow.displayed.SIGNATURE}
 </div>
 <!-- END switch_signature -->

 </div>
 <span class="gensmall">{postrow.displayed.EDITED_MESSAGE}</span>
 </td>
 </tr>
 </table>
 </td>
 </tr>
 <tr class="post--{postrow.displayed.U_POST_ID}" style="{postrow.displayed.DISPLAYABLE_STATE}">
 <td class="{postrow.displayed.ROW_CLASS} browse-arrows"{postrow.displayed.THANK_BGCOLOR} align="center" valign="middle" width="150">
 <a href="#top">{L_BACK_TO_TOP}</a> <a href="#bottom">{L_GOTO_DOWN}</a>
 </td>
 <td class="{postrow.displayed.ROW_CLASS} messaging gensmall"{postrow.displayed.THANK_BGCOLOR} width="100%" height="28">
 <table border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td valign="middle"><div class="post-bottom">
                    <div class="btn-profile"><span></span>{postrow.displayed.PROFILE_IMG}</div>
                      <div class="btn-pm"><span></span>{postrow.displayed.PM_IMG}</div>
                        <div class="btn-mail"><span></span>{postrow.displayed.EMAIL_IMG}</div>
                          <div class="btn-link"><!-- BEGIN contact_field --><span></span>{postrow.displayed.contact_field.CONTENT}<!-- END contact_field --> </div>
                            <div class="online">{postrow.displayed.ONLINE_IMG}</div>
                
                  </div>
 </td>
 </tr>
 </table>
 </td>
  </tr>
 <!-- BEGIN first_post_br -->
</table>
<hr />
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
 <tr>
 <th class="thLeft" nowrap="nowrap" width="150px" height="26">{L_AUTHOR}</th>
 <th class="thRight" nowrap="nowrap" colspan="2">{L_MESSAGE}</th>
 </tr>
 <!-- END first_post_br -->
 <!-- END displayed -->
 <!-- END postrow -->
 <!-- BEGIN no_post -->
 <tr align="center">
 <td class="row1" colspan="2" height="28">
 <span class="genmed">{no_post.L_NO_POST}</span>
 </td>
 </tr>
 <!-- END no_post -->
 <tr align="right">
 <td class="titlebottom" colspan="2" height="28">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td width="9%" class="noprint"> </td>
 <td align="center" class="t-title"><a name="bottomtitle"></a><div class="cattitle">{TOPIC_TITLE}</div></td>
 <td align="right" nowrap="nowrap" width="9%" class="browse-arrows">
                        <!-- BEGIN switch_isconnect -->
                        <a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a> 
                        <!-- END switch_isconnect -->
                        <a href="#top">{L_BACK_TO_TOP}</a> 
                    </td>
 </tr>
 </table>
 </td>
 </tr>
</table>
<table class="forumline noprint" width="100%" border="0" cellspacing="0" cellpadding="0" style="margin: 0 0 0px 0; border-top: 0px;">
 <tr>
 <td class="row2" valign="top" {COLSPAN_PAGINATION} width="150"><span class="gensmall">{PAGE_NUMBER}</span></td>
 <!-- BEGIN topicpagination -->
 <td class="row1" align="right" valign="top" ><span class="gensmall">{PAGINATION}</span></td>
 <!-- END topicpagination -->
 </tr>
 <!-- BEGIN switch_user_logged_in -->
 <!-- BEGIN watchtopic -->
 <tr>
 <td class="row2" colspan="2" align="right" valign="top"><span class="gensmall">{S_WATCH_TOPIC}</span></td>
 </tr>
 <!-- END watchtopic -->
 <!-- END switch_user_logged_in -->
</table>

<!-- BEGIN promot_trafic -->
<table class="forumline" width="100%" border="0" cellpadding="1" cellspacing="0" id="ptrafic_close" style="display:none;margin: 1px 0px 1px 0px">
 <tr>
 <td class="catBottom" height="28">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td valign="top"><div class="cattitle"> {PROMOT_TRAFIC_TITLE}</div></td>
 <td align="right" valign="middle" width="10"><span class="gensmall"><a href="javascript:ShowHideLayer('ptrafic_open','ptrafic_close');"><img src="{TABS_MORE_IMG}" alt="+" align="middle" border="0" /></a></span></td>
 </tr>
 </table>
 </td>
 </tr>
</table>

<table class="forumline" width="100%" border="0" cellpadding="1" cellspacing="0" id="ptrafic_open" style="display:'';margin: 1px 0px 1px 0px">
 <tr>
 <td class="catBottom" height="28">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td valign="top"><div class="cattitle"> {PROMOT_TRAFIC_TITLE}</div></td>
 <td align="right" valign="middle" width="10"><span class="gensmall"><a href="javascript:ShowHideLayer('ptrafic_open','ptrafic_close');"><img src="{TABS_LESS_IMG}" alt="-" align="middle" border="0" /></a></span></td>
 </tr>
 </table>
 </td>
 </tr>
 <tr>
 <td class="row2 postbody" valign="top">
 <!-- BEGIN link -->
 » <a style="text-decoration:none" href="{promot_trafic.link.U_HREF}" target="_blank" title="{promot_trafic.link.TITLE}" rel="nofollow">{promot_trafic.link.TITLE}</a><br />
 <!-- END link -->
 </td>
 </tr>
</table>
<!-- END promot_trafic -->

<!-- BEGIN switch_forum_rules -->
<table id="forum_rules" class="forumline" width="100%" border="0" cellspacing="0" cellpadding="0" style="margin: 0px 0px 0px 0px">
 <tbody>
 <tr>
 <td class="catBottom">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tbody>
 <tr>
 <td valign="top">
 <div class="cattitle"> {L_FORUM_RULES}</div>
 </td>
 </tr>
 </tbody>
 </table>
 </td>
 </tr>
 <tr>
 <td class="row1 clearfix">
 <table>
 <tr>
 <!-- BEGIN switch_forum_rule_image -->
 <td class="logo">
 <img src="{RULE_IMG_URL}" alt="" />
 </td>
 <!-- END switch_forum_rule_image -->
 <td class="rules postbody">
 {RULE_MSG}
 </td>
 </tr>
 </table>
 </td>
 </tr>
 </tbody>
</table>
<!-- END switch_forum_rules -->

<table class="forumline noprint" width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td class="row2" colspan="2" align="center" style="padding:0px">
 <!-- BEGIN switch_user_logged_in -->
                <div class="rpg_buttons"><a href="#">Lancer de dés</a><a href="#">Défis</a><a href="#">Intervention du Destin</a><a href="#">Missions</a></div> <br/>
 <a name="quickreply"></a>
 {QUICK_REPLY_FORM}<br />
 <!-- END switch_user_logged_in -->
 </td>
 </tr>
 <tr>
 <td style="margin:0; padding: 0;" colspan="2">
 <table border="0" cellpadding="0" width="100%" cellspacing="0" id="info_open" style="display:''">
 <tbody>
 <!-- BEGIN show_permissions -->
 <tr>
 <td class="row2" valign="top" width="25%"><span class="gensmall">{L_TABS_PERMISSIONS}</span></td>
 <td class="row1" valign="top" width="75%"><span class="gensmall">{S_AUTH_LIST}</span></td>
 </tr>
 <!-- END show_permissions -->
 
 <tr>
 <td style="margin:0; padding: 0;" colspan="2">
 <table border="0" cellpadding="0" cellspacing="0" width="100%" id="info_close" style="display:none;">
 <tbody>
 <tr>
 <td class="catBottom" colspan="2" height="28">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td align="right" valign="middle"><span class="gensmall"><a href="javascript:ShowHideLayer('info_open','info_close');"><img src="{TABS_MORE_IMG}" alt="+" align="middle" border="0" /></a></span></td>
 </tr>
 </table>
 </td>
 </tr>
 </tbody>
 </table>
 </td>
 </tr>
</table>


<form action="{S_JUMPBOX_ACTION}" method="get" name="jumpbox" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
<table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
 <tr>
 <td align="left" valign="middle" nowrap="nowrap" {WIDTH_GALLERY}>
 <span class="nav">
 <!-- BEGIN switch_user_authpost -->
 <p class="posting"><a href="{U_POST_NEW_TOPIC}" accesskey="n" rel="nofollow">Poster un nouveau sujet</a></p>   
 <!-- END switch_user_authpost -->
 <!-- BEGIN switch_user_authreply -->
 <p class="answerm"><a href="{U_POST_REPLY_TOPIC}" accesskey="n" rel="nofollow">Répondre au sujet</a></p>
                          <!-- END switch_user_authreply -->
 </span>
 </td>
      
        
 <td align="right" nowrap="nowrap"><span class="gensmall">{L_JUMP_TO}: {S_JUMPBOX_SELECT} <input class="liteoption" type="submit" value="{L_GO}" /></span></td>
        
 <!-- BEGIN moderation_panel -->
 <td align="center">
 <span class="gensmall">{moderation_panel.U_YOUR_PERSONAL_MODERATE}</span>
 </td>
 <td align="center" width="250">
 <span class="gensmall"> </span>
 </td>
 <!-- END moderation_panel -->
 </tr>
</table>
</form>
<br/>
<span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_SEP}<a class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC_SECOND}</span>

<!-- BEGIN viewtopic_bottom -->
<table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
 <tr>
 <td colspan="2" align="left" valign="top" nowrap="nowrap"><br />{S_TOPIC_ADMIN}<br />
 <form name="action" method="get" action="{S_FORM_MOD_ACTION}">
 <input type="hidden" name="t" value="{TOPIC_ID}" />

 <!-- <input type="hidden" name="sid" value="{S_SID}" /> -->
 <input type="hidden" name="{SECURE_ID_NAME}" value="{SECURE_ID_VALUE}" />

 <span class="gen">{L_MOD_TOOLS}<br />{S_SELECT_MOD}&nbsp;<input class="liteoption" type="submit" value="{L_GO}" /></span>
 </form>
 </td>
 </tr>
</table>
<!-- END viewtopic_bottom -->

<!-- BEGIN switch_image_resize -->
<script type="text/javascript">
//<![CDATA[
$(resize_images({ 'selector' : '.postbody', 'max_width' : {switch_image_resize.IMG_RESIZE_WIDTH}, 'max_height' : {switch_image_resize.IMG_RESIZE_HEIGHT} }));
//]]>
</script>
<!-- END switch_image_resize -->
<script src="//s7.addthis.com/js/300/addthis_widget.js#pubid=forumotion" type="text/javascript"></script>

Et que j'ai utilisé ce code pour le profil afin de créer des labels pour les bouger à ma guise :
Code:
<script type="text/javascript">
//<![CDATA[
 $(document).ready(function(){
 $('[id^=field_id]').each(function(){
 if ( $(this).find('.field_editable').is('span, div') )
 {
 $(this).hover(function()
 {
 if( $(this).find('.field_editable.invisible').is('span, div') )
 {
 $(this).find('.field_editable').prev().addClass('ajax-profil_hover').parent().addClass('ajax-profil_parent').append('<div class="ajax-profil_edit"><img src="{AJAX_EDIT_IMG}" /></div>');
 $(this).find('.ajax-profil_edit').attr({
 alt: "{L_FIELD_EDIT_VALUE}",
 title: "{L_FIELD_EDIT_VALUE}"
 }).click(function(){
 $(this).prev().prev().removeClass('ajax-profil_hover').addClass('invisible').next().removeClass('invisible').append('<img src="{AJAX_VALID_IMG}" class="ajax-profil_valid" />').find('input,select');
 $(this).prev().find('.ajax-profil_valid').attr({
 alt: "{L_VALIDATE}",
 title: "{L_VALIDATE}"
 }).click(function(){
 var content = new Array();
 $(this).parent().find('[name]').each(function(){
 var type_special = $(this).is('input[type=radio],input[type=checkbox]');
 if ( (type_special && $(this).is(':checked')) || !type_special )
 {
 content.push(new Array($(this).attr('name'), $(this).attr('value')));
 }
 });
 var id_name = $(this).parents('[id^=field_id]').attr('id');
 var id = id_name.substring(8, id_name.length);
 $.post(
 "{U_AJAX_PROFILE}",
 {id:id,user:"{CUR_USER_ID}",active:"{CUR_USER_ACTIVE}",content:$.toJSON(content),tid:"{TID}"},
 function(data){
 $.each(data, function(i, item){
 $('[id=field_id' + i + ']').find('.field_uneditable').html(item).end().find('.ajax-profil_valid').remove().end().find('.field_editable').addClass('invisible').end().find('.field_uneditable').removeClass('invisible');
 });
 },
 "json"
 );
 });
 $(this).remove();
 });
 }
 },function()
 {
 if( $(this).find('.field_editable.invisible').is('span, div') )
 {
 $(this).find('.field_editable').prev().removeClass('ajax-profil_hover');
 $(this).find('.ajax-profil_edit').remove();
 }
 });
 }
 });
 });
//]]>
</script>

Qui est installé directement dans le template profile_view_body.

La question est donc la suivante : est-ce possible ?
Si oui, puis-je réutiliser le code profil pour faire la même chose pour les messages où est-ce peine perdue ?

Et voilà pour cette longue demande d'aide :p
Merci beaucoup !


Dernière édition par Elenwe57 le Jeu 27 Aoû 2020 - 17:21, édité 1 fois
Milouze14
Milouze14
Fondateur

https://www.milouze14.net/

MessageMilouze14 Lun 24 Aoû 2020 - 19:39

Coucou Elenwe,

aurais tu la css associée stp car sans visu c'est assez compliqué de mettre en œuvre quelque chose hinhin .

Que veux tu dire en mentionnant:

MAIS ! J'aimerais justement que l'un des points présents dans ce truc qui apparaît passe sous l'avatar et soit visible tout le temps (le point "Titre")

Qui est installé directement dans le template profile_view_body.

Hum, le template dans sa totalité serait apprécié chère amie.
Elenwe57
Elenwe57
https://under-the-moon.forumactif.com/

MessageElenwe57 Lun 24 Aoû 2020 - 22:16

Coucou !

Alors j'ai tout oui ^^
Désolée j'avais peur de trop en mettre xD

Pour ce qui est de ce que je veux dire, je vais essayer de t'expliquer en image :
En fait comme sur ce screen, normalement, seul l'avatar est visible dans les messages postés. Mais lorsque je passe ma souris sur l'avatar, c'est tout le profil qui apparaît, comme on peut le voir sur ce screen.
Comme on peut le voir, sur le même screen, j'ai un intitulé appelé "Titre", et c'est cet intitulé que j'aimerais sortir de ce cadre pour le mettre sous l'avatar de manière visible, sans avoir à passer, donc la souris sur l'avatar pour le voir, comme on peut le voir dans le schéma sur ce screen
J'espère que je suis assez claire ^^"

Pour ce qui est des codes, voici :

Le code entier du viewtopic_body :
Code:
<script type="text/javascript">
//<![CDATA[
var multiquote_img_off = '{JS_MULTIQUOTE_IMG_OFF}', multiquote_img_on = '{JS_MULTIQUOTE_IMG_ON}', _atr = '{JS_DIR}addthis/', _ati = '{PATH_IMG_FA}addthis/'{ADDTHIS_LANG}, addthis_localize = { share_caption: "{L_SHARE_CAPTION}", email: "{L_EMAIL}", email_caption: "{L_EMAIL_CAPTION}", favorites: "{L_SHARE_BOOKMARKS}", print: "{L_PRINT}", more: "{L_MORE}" };
$(function(){
    if(typeof(_atc) == "undefined") {
        _atc = {  };
    }
});

var hiddenMsgLabel = { visible:'{JS_HIDE_HIDDEN_MESSAGE}', hidden:'{JS_SHOW_HIDDEN_MESSAGE}' };
showHiddenMessage = function(id)
{
    try
    {
        var regId = parseInt(id, 10);
        if( isNaN(regId) ) { regId = 0; }
     
        if( regId > 0)
        {
            $('.post--' + id).toggle(0, function()
 {
 if( $(this).is(":visible") )
 {
 $('#hidden-title--' + id).html(hiddenMsgLabel.visible);
 }
 else
 {
 $('#hidden-title--' + id).html(hiddenMsgLabel.hidden);
 }
 });
        }
    }
    catch(e) { }
 
 return false;
};

//]]>
</script>
<br/>
<span class="nav">
                <a class="nav" href="{U_INDEX}"><span>{L_INDEX}</span></a>
                <!--{NAV_SEP}<a class="nav" href="{U_ALBUM}"><span>{L_ALBUM}</span></a>-->
                {NAV_CAT_DESC_SECOND}
</span><br/>
<br/>
<table width="100%" border="0" cellspacing="2" cellpadding="0">
 <tr>
 <td align="left" valign="middle" nowrap="nowrap">
 
 <!-- BEGIN switch_user_authpost -->
         <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}one" alt="{L_POST_NEW_TOPIC}" align="middle" border="0" /></a>   
         <!-- END switch_user_authpost -->
         <!-- BEGIN switch_user_authreply -->
         <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" id="i_reply" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0" /></a>
         <!-- END switch_user_authreply -->

 </td>
 <td class="nav" valign="middle" width="100%">
 
 </td>
 <td align="right" valign="bottom" nowrap="nowrap" width="100%">
 <!-- BEGIN switch_twitter_btn -->
 <span id="twitter_btn" style="margin-left: 6px; ">
                <a href="https://twitter.com/share" class="twitter-share-button" data-via="{TWITTER}">Tweet</a>
                <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
 </span>
 <!-- END switch_twitter_btn -->
 
 <!-- BEGIN switch_fb_likebtn -->
 <script>(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 = "https://connect.facebook.net/{LANGUAGE}/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
 }(document, 'script', 'facebook-jssdk'));</script>
 <div class="fb-like" data-href="{FORUM_URL}{TOPIC_URL}" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>
 <!-- END switch_fb_likebtn -->

 <span class="gensmall bold">
 <a class="addthis_button" href="#">{L_SHARE}</a>
 <!-- BEGIN switch_plus_menu -->
  | 
 <script type="text/javascript">//<![CDATA[
 var url_favourite = '{U_FAVOURITE_JS_PLUS_MENU}';
 var url_newposts = '{U_NEWPOSTS_JS_PLUS_MENU}';
 var url_egosearch = '{U_EGOSEARCH_JS_PLUS_MENU}';
 var url_unanswered = '{U_UNANSWERED_JS_PLUS_MENU}';
 var url_watchsearch = '{U_WATCHSEARCH_JS_PLUS_MENU}';
 insert_plus_menu('f{FORUM_ID}&t={TOPIC_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
 //]]>
 </script>
 <!-- END switch_plus_menu -->
 </span>
 </td>
 </tr>
</table>
<br/>
<table class="forumline" width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr align="right">
 <td class="titlesubject" colspan="2" height="28" style="background-color: #350000;">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td width="9%" class="noprint"> </td>
 <td align="center" class="t-title">
 <div class="titresujet"> {TOPIC_TITLE}</div>
 </td>
 <td align="right" width="9%" class="browse-arrows">
                        <!-- BEGIN switch_isconnect -->
                        <a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a> 
                        <!-- END switch_isconnect -->
                        <a href="#bottom">{L_GOTO_DOWN}</a> 
                    </td>
 </tr>
 </table>
 </td>
 </tr>
 <!-- BEGIN topicpagination -->
 <tr>
 <td class="row1 pagination" colspan="2" align="right" valign="top"><span class="gensmall">{PAGINATION}</span></td>
 </tr>
 <!-- END topicpagination -->
 {POLL_DISPLAY}
 <!-- BEGIN postrow -->
 <!-- BEGIN hidden -->
 <tr>
 <td class="postdetails {postrow.hidden.ROW_CLASS}" colspan="2" align="center">{postrow.hidden.MESSAGE}</td>
 </tr>
 <!-- END hidden -->
 <!-- BEGIN displayed -->
 <tr class="post post--{postrow.displayed.U_POST_ID}" id="{postrow.displayed.U_POST_ID}" style="{postrow.displayed.DISPLAYABLE_STATE}">
 <td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="150">
 <span class="postdetails poster-profile">
                    <div class="post-profil">
                    <div class="profil-avatar">
                      {postrow.displayed.POSTER_AVATAR}
                    </div>
                    <div class="profil-hover">
                      <div class="profil-hover-content">
 <!-- BEGIN profile_field -->
                      <div>
 {postrow.displayed.profile_field.LABEL} {postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
                      </div>
 <!-- END profile_field -->
 
 {postrow.displayed.POSTER_RPG}
                      </div>
                    </div>
                    </div>

 </span><br />
 <img src="https://2img.net/i/fa/empty.gif" alt="" style="width:150px;height:1px" />
 </td>
 <td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="100%" height="28">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr><td class="M14_get_img"colspan="2"align="center"><img src="https://zupimages.net/up/19/40/chps.png"/><div class="nameposter">{postrow.displayed.POSTER_NAME}</div><div class="rankposter">{postrow.displayed.POSTER_RANK}</div></td></tr>
 <tr class="postoptionsdetails">
                                  <td><span class="postdetails"><a href="#{postrow.displayed.U_POST_ID}">#{postrow.displayed.U_POST_ID} : {postrow.displayed.POST_SUBJECT}</a></span><div style="text-align:right;font-size:10px;padding:2px;">{postrow.displayed.POST_DATE}</div></td>
 
                         
                                  <td valign="top" nowrap="nowrap" class="post-options">
 <div class="post-btn">
                    <div class="btn-quote">{postrow.displayed.QUOTE_IMG} </div>
                      <div class="btn-edit">{postrow.displayed.EDIT_IMG} </div>
                        <div class="btn-delete">{postrow.displayed.DELETE_IMG} </div>
                            <div class="btn-report">{postrow.displayed.REPORT_IMG}</div>
                    </div>
 </td>
 </tr>
 
 <tr>
 <td colspan="2">
 <!-- BEGIN switch_vote_active -->
 <div class="vote gensmall">
 <!-- BEGIN switch_vote -->
 <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a></div>
 <!-- END switch_vote -->

 <!-- BEGIN switch_bar -->
 <div class="vote-bar" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}">
 <!-- BEGIN switch_vote_plus -->
 <div class="vote-bar-plus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_plus.HEIGHT_PLUS}px;"></div>
 <!-- END switch_vote_plus -->

 <!-- BEGIN switch_vote_minus -->
 <div class="vote-bar-minus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_minus.HEIGHT_MINUS}px;"></div>
 <!-- END switch_vote_minus -->
 </div>
 <!-- END switch_bar -->

 <!-- BEGIN switch_no_bar -->
 <div title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar">----</div>
 <!-- END switch_no_bar -->

 <!-- BEGIN switch_vote -->
 <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}">-</a></div>
 <!-- END switch_vote -->
 </div>
 <!-- END switch_vote_active -->

 <div class="postbody">

 <div class="messageposter">{postrow.displayed.MESSAGE}</div>

 <!-- BEGIN switch_attachments -->
 <dl class="attachbox">
 <dt>{postrow.displayed.switch_attachments.L_ATTACHMENTS}</dt>
 <dd>
 <!-- BEGIN switch_post_attachments -->
 <dl class="file">
 <dt>
 <img src="{postrow.displayed.switch_attachments.switch_post_attachments.U_IMG}" alt="" />

 <!-- BEGIN switch_dl_att -->
 <a class="postlink" href="{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.U_ATTACHMENT}">{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT}</a> {postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT_DEL}
 <!-- END switch_dl_att -->

 <!-- BEGIN switch_no_dl_att -->
 {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}
 <!-- END switch_no_dl_att -->
 </dt>

 <!-- BEGIN switch_no_comment -->
 <dd>
 <em>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_comment.ATTACHMENT_COMMENT}</em>
 </dd>
 <!-- END switch_no_comment -->

 <!-- BEGIN switch_no_dl_att -->
 <dd>
 <em><strong>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.TEXT_NO_DL}</strong></em>
 </dd>
 <!-- END switch_no_dl_att -->

 <dd>({postrow.displayed.switch_attachments.switch_post_attachments.FILE_SIZE}) {postrow.displayed.switch_attachments.switch_post_attachments.NB_DL}</dd>
 </dl>
 <!-- END switch_post_attachments -->
 </dd>
 </dl>
 <!-- END switch_attachments -->
 
 <!-- BEGIN switch_signature -->
 <div class="signature_div">
 {postrow.displayed.SIGNATURE}
 </div>
 <!-- END switch_signature -->

 </div>
 <span class="gensmall">{postrow.displayed.EDITED_MESSAGE}</span>
 </td>
 </tr>
 </table>
 </td>
 </tr>
 <tr class="post--{postrow.displayed.U_POST_ID}" style="{postrow.displayed.DISPLAYABLE_STATE}">
 <td class="{postrow.displayed.ROW_CLASS} browse-arrows"{postrow.displayed.THANK_BGCOLOR} align="center" valign="middle" width="150">
 <a href="#top">{L_BACK_TO_TOP}</a> <a href="#bottom">{L_GOTO_DOWN}</a>
 </td>
 <td class="{postrow.displayed.ROW_CLASS} messaging gensmall"{postrow.displayed.THANK_BGCOLOR} width="100%" height="28">
 <table border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td valign="middle"><div class="post-bottom">
                    <div class="btn-profile"><span></span>{postrow.displayed.PROFILE_IMG}</div>
                      <div class="btn-pm"><span></span>{postrow.displayed.PM_IMG}</div>
                        <div class="btn-mail"><span></span>{postrow.displayed.EMAIL_IMG}</div>
                          <div class="btn-link"><!-- BEGIN contact_field --><span></span>{postrow.displayed.contact_field.CONTENT}<!-- END contact_field --> </div>
                            <div class="online">{postrow.displayed.ONLINE_IMG}</div>
               
                  </div>
 </td>
 </tr>
 </table>
 </td>
  </tr>
 <!-- BEGIN first_post_br -->
</table>
<hr />
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
 <tr>
 <th class="thLeft" nowrap="nowrap" width="150px" height="26">{L_AUTHOR}</th>
 <th class="thRight" nowrap="nowrap" colspan="2">{L_MESSAGE}</th>
 </tr>
 <!-- END first_post_br -->
 <!-- END displayed -->
 <!-- END postrow -->
 <!-- BEGIN no_post -->
 <tr align="center">
 <td class="row1" colspan="2" height="28">
 <span class="genmed">{no_post.L_NO_POST}</span>
 </td>
 </tr>
 <!-- END no_post -->
 <tr align="right">
 <td class="titlebottom" colspan="2" height="28">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td width="9%" class="noprint"> </td>
 <td align="center" class="t-title"><a name="bottomtitle"></a><div class="cattitle">{TOPIC_TITLE}</div></td>
 <td align="right" nowrap="nowrap" width="9%" class="browse-arrows">
                        <!-- BEGIN switch_isconnect -->
                        <a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a> 
                        <!-- END switch_isconnect -->
                        <a href="#top">{L_BACK_TO_TOP}</a> 
                    </td>
 </tr>
 </table>
 </td>
 </tr>
</table>
<table class="forumline noprint" width="100%" border="0" cellspacing="0" cellpadding="0" style="margin: 0 0 0px 0; border-top: 0px;">
 <tr>
 <td class="row2" valign="top" {COLSPAN_PAGINATION} width="150"><span class="gensmall">{PAGE_NUMBER}</span></td>
 <!-- BEGIN topicpagination -->
 <td class="row1" align="right" valign="top" ><span class="gensmall">{PAGINATION}</span></td>
 <!-- END topicpagination -->
 </tr>
 <!-- BEGIN switch_user_logged_in -->
 <!-- BEGIN watchtopic -->
 <tr>
 <td class="row2" colspan="2" align="right" valign="top"><span class="gensmall">{S_WATCH_TOPIC}</span></td>
 </tr>
 <!-- END watchtopic -->
 <!-- END switch_user_logged_in -->
</table>

<!-- BEGIN promot_trafic -->
<table class="forumline" width="100%" border="0" cellpadding="1" cellspacing="0" id="ptrafic_close" style="display:none;margin: 1px 0px 1px 0px">
 <tr>
 <td class="catBottom" height="28">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td valign="top"><div class="cattitle"> {PROMOT_TRAFIC_TITLE}</div></td>
 <td align="right" valign="middle" width="10"><span class="gensmall"><a href="javascript:ShowHideLayer('ptrafic_open','ptrafic_close');"><img src="{TABS_MORE_IMG}" alt="+" align="middle" border="0" /></a></span></td>
 </tr>
 </table>
 </td>
 </tr>
</table>

<table class="forumline" width="100%" border="0" cellpadding="1" cellspacing="0" id="ptrafic_open" style="display:'';margin: 1px 0px 1px 0px">
 <tr>
 <td class="catBottom" height="28">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td valign="top"><div class="cattitle"> {PROMOT_TRAFIC_TITLE}</div></td>
 <td align="right" valign="middle" width="10"><span class="gensmall"><a href="javascript:ShowHideLayer('ptrafic_open','ptrafic_close');"><img src="{TABS_LESS_IMG}" alt="-" align="middle" border="0" /></a></span></td>
 </tr>
 </table>
 </td>
 </tr>
 <tr>
 <td class="row2 postbody" valign="top">
 <!-- BEGIN link -->
 » <a style="text-decoration:none" href="{promot_trafic.link.U_HREF}" target="_blank" title="{promot_trafic.link.TITLE}" rel="nofollow">{promot_trafic.link.TITLE}</a><br />
 <!-- END link -->
 </td>
 </tr>
</table>
<!-- END promot_trafic -->

<!-- BEGIN switch_forum_rules -->
<table id="forum_rules" class="forumline" width="100%" border="0" cellspacing="0" cellpadding="0" style="margin: 0px 0px 0px 0px">
 <tbody>
 <tr>
 <td class="catBottom">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tbody>
 <tr>
 <td valign="top">
 <div class="cattitle"> {L_FORUM_RULES}</div>
 </td>
 </tr>
 </tbody>
 </table>
 </td>
 </tr>
 <tr>
 <td class="row1 clearfix">
 <table>
 <tr>
 <!-- BEGIN switch_forum_rule_image -->
 <td class="logo">
 <img src="{RULE_IMG_URL}" alt="" />
 </td>
 <!-- END switch_forum_rule_image -->
 <td class="rules postbody">
 {RULE_MSG}
 </td>
 </tr>
 </table>
 </td>
 </tr>
 </tbody>
</table>
<!-- END switch_forum_rules -->

<table class="forumline noprint" width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td class="row2" colspan="2" align="center" style="padding:0px">
 <!-- BEGIN switch_user_logged_in -->
                <div class="rpg_buttons"><a href="#">Lancer de dés</a><a href="#">Défis</a><a href="#">Intervention du Destin</a><a href="#">Missions</a></div> <br/>
 <a name="quickreply"></a>
 {QUICK_REPLY_FORM}<br />
 <!-- END switch_user_logged_in -->
 </td>
 </tr>
 <tr>
 <td style="margin:0; padding: 0;" colspan="2">
 <table border="0" cellpadding="0" width="100%" cellspacing="0" id="info_open" style="display:''">
 <tbody>
 <!-- BEGIN show_permissions -->
 <tr>
 <td class="row2" valign="top" width="25%"><span class="gensmall">{L_TABS_PERMISSIONS}</span></td>
 <td class="row1" valign="top" width="75%"><span class="gensmall">{S_AUTH_LIST}</span></td>
 </tr>
 <!-- END show_permissions -->
 
 <tr>
 <td style="margin:0; padding: 0;" colspan="2">
 <table border="0" cellpadding="0" cellspacing="0" width="100%" id="info_close" style="display:none;">
 <tbody>
 <tr>
 <td class="catBottom" colspan="2" height="28">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td align="right" valign="middle"><span class="gensmall"><a href="javascript:ShowHideLayer('info_open','info_close');"><img src="{TABS_MORE_IMG}" alt="+" align="middle" border="0" /></a></span></td>
 </tr>
 </table>
 </td>
 </tr>
 </tbody>
 </table>
 </td>
 </tr>
</table>


<form action="{S_JUMPBOX_ACTION}" method="get" name="jumpbox" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
<table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
 <tr>
 <td align="left" valign="middle" nowrap="nowrap" {WIDTH_GALLERY}>
 <span class="nav">
 <!-- BEGIN switch_user_authpost -->
 <p class="posting"><a href="{U_POST_NEW_TOPIC}" accesskey="n" rel="nofollow">Poster un nouveau sujet</a></p>   
 <!-- END switch_user_authpost -->
 <!-- BEGIN switch_user_authreply -->
 <p class="answerm"><a href="{U_POST_REPLY_TOPIC}" accesskey="n" rel="nofollow">Répondre au sujet</a></p>
                          <!-- END switch_user_authreply -->
 </span>
 </td>
     
       
 <td align="right" nowrap="nowrap"><span class="gensmall">{L_JUMP_TO}: {S_JUMPBOX_SELECT} <input class="liteoption" type="submit" value="{L_GO}" /></span></td>
       
 <!-- BEGIN moderation_panel -->
 <td align="center">
 <span class="gensmall">{moderation_panel.U_YOUR_PERSONAL_MODERATE}</span>
 </td>
 <td align="center" width="250">
 <span class="gensmall"> </span>
 </td>
 <!-- END moderation_panel -->
 </tr>
</table>
</form>
<br/>
<span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_SEP}<a class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC_SECOND}</span>

<!-- BEGIN viewtopic_bottom -->
<table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
 <tr>
 <td colspan="2" align="left" valign="top" nowrap="nowrap"><br />{S_TOPIC_ADMIN}<br />
 <form name="action" method="get" action="{S_FORM_MOD_ACTION}">
 <input type="hidden" name="t" value="{TOPIC_ID}" />

 <!-- <input type="hidden" name="sid" value="{S_SID}" /> -->
 <input type="hidden" name="{SECURE_ID_NAME}" value="{SECURE_ID_VALUE}" />

 <span class="gen">{L_MOD_TOOLS}<br />{S_SELECT_MOD}&nbsp;<input class="liteoption" type="submit" value="{L_GO}" /></span>
 </form>
 </td>
 </tr>
</table>
<!-- END viewtopic_bottom -->

<!-- BEGIN switch_image_resize -->
<script type="text/javascript">
//<![CDATA[
$(resize_images({ 'selector' : '.postbody', 'max_width' : {switch_image_resize.IMG_RESIZE_WIDTH}, 'max_height' : {switch_image_resize.IMG_RESIZE_HEIGHT} }));
//]]>
</script>
<!-- END switch_image_resize -->
<script src="//s7.addthis.com/js/300/addthis_widget.js#pubid=forumotion" type="text/javascript"></script>

Le code CSS correspondant à ce template :
Code:
/********SUJETS********/
.nameposter{font-family:Roboto;font-size:40px;margin-left:10px;margin-top:-120px;position:absolute;text-transform:uppercase}
.rankposter{position:absolute;margin-top:-76px;margin-left:10px;text-transform:uppercase}
.post-options{text-align:right;position:relative;top:-60px}
.post-btn{text-align:right;position:absolute;right:5px;bottom:15px}
.post-bottom img,.post-btn img{display:none}
.post-btn div{display:inline-block;margin:0 5px}
.post-btn div a:before{content:"\f11d";display:inline-block;height:35px;width:35px;border:1px solid #0e0c0c;border-radius:50%;font-family:Ionicons;text-align:center;line-height:35px;font-size:20px;color:#0e0c0c;background:rgba(51,42,42,.6);-webkit-transition:all .3s;transition:all .3s}
.post-btn div a:hover:before{background:#f5f5f5}
.post-btn .btn-edit a:before{content:"\f2bf"}.post-btn .btn-delete a:before{content:"\f252"}
.post-btn .btn-ip a:before{content:"\f149"}
.post-btn .btn-report a:before{content:"\f100"}
.td .titlesubject{background-color:#350000}
.titresujet{font-size:35px;text-transform:uppercase;font-family:Roboto;padding:5px 0}
.postoptionsdetails{background-color:#000}
.postdetails{float:left;padding:2px}
.forumline .row3,.forumline .row3Right{padding:2px 3px;background-color:#0c0c0c}
.forumline .row1,.forumline .row2{padding:2px 3px;background-color:#000}
.messageposter{background-color:rgba(27,27,27,.5);min-height:226px;padding:5px}
.signature_div{max-height:300px;overflow:hidden}
.signature_div:hover{overflow:auto}
.post-bottom{flex:100%;width:800px;position:relative}
.post-bottom div{display:inline-block;margin:10px 15px 10px 0}
.post-bottom div:first-child{display:inline-block;margin-left:15px}
.post-bottom div a{position:relative;text-decoration:none!important}
.post-bottom div a:after{content:"Profil";text-transform:uppercase;font-family:Roboto,sans-serif;font-size:8px;letter-spacing:1px;border:1px solid #ccc;padding:0 8px;color:#9f9f9f;height:16px;line-height:16px;display:inline-block;-webkit-transition:all .3s;transition:all .3s}
.post-bottom div a:hover:after{border:1px solid #8d8d8d;color:#595959}
.post-bottom .btn-pm a:after{content:"Mp"}
.post-bottom .btn-mail a:after{content:"Mail"}
.post-bottom .btn-link a:after{content:"click"}
.btn-link{display:none}
.post-bottom .online:empty{display:none}
.online img{display:none}
.online:before{content:"\f2a9";position:absolute;right:10px;bottom:0;font-family:Ionicons;font-size:40px;color:#d2d2d2}
.rpg_buttons a{font-family:Roboto;background-color:#1b1b1b80;color:#cdc5c4;display:inline-block;margin:5px 10px;font-size:10px;padding:3px 7px;text-transform:uppercase}
.titlebottom{background-color:#350000}
.posting{display:inline-block;background-color:#141414;border:1px solid #939393;color:#cdc5c4;cursor:pointer;font-family:Roboto;font-size:10px;margin-right:10px;text-transform:uppercase;padding:5px;text-align:center;text-shadow:1px 1px 1px #000}
.answerm{display:inline-block;background-color:#141414;border:1px solid #939393;color:#cdc5c4;cursor:pointer;font-family:Roboto;font-size:10px;text-transform:uppercase;padding:5px;text-align:center;text-shadow:1px 1px 1px #000}.post-profil{width:200px;position:relative;overflow:hidden}
.profil-hover{height:400px;width:200px;position:absolute;background:#350000;top:100%;text-align:center;box-sizing:border-box;padding:5px;-webkit-transition:all .3s;transition:all .3s}
.post-profil:hover .profil-hover{top:0}
.profil-hover-content{height:100%;background:rgb(20,20,20);overflow:auto;font-family:Roboto,sans-serif;font-size:11px}
.profil-hover-content div{margin:5px 0}
.profil-hover-content div .label{display:block;text-transform:uppercase;font-size:8px;letter-spacing:1px}
.profil-hover-content div .label span{color:#9f9f9f!important}

Et donc le code entier de profile_view_body, dans lequel j'ai utilisé le JS pour "séparer" les éléments :
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<div class="PFIL"><div class="namePFIL colorPFIL">{USERNAME}</div>
  <script type="text/javascript">//<![CDATA[
$( document ).ready(function() {$('.colorPFIL').each(function(){var color = $(this).children().css("color");
$(this).closest('.namePFIL').css("background-color", color);});});//]]></script>
 
  <div class="firstbox">
    <div class="avPFIL">
      <div id="adminPFIL">
        <!-- BEGIN switch_auth_user -->
        <div><span>{L_ADMINISTRATE_USER} :</span><br/>{ADMINISTRATE_USER}{BAN_USER}</div>
        <!-- END switch_auth_user --><div>
        <!-- BEGIN switch_dhow_mp -->
        <span>{L_PRIVATE_MSG} :</span> {PRIVATE_MSG}
        <!-- END switch_dhow_mp --></div></div><span id="avatar_membre">{AVATAR_IMG}</span></div>
    <div class="lstPFIL"><span>{L_LAST_VISITED} :</span><br/> {LAST_VISIT_TIME}</div>
    <div class="infos-supp"></div>
  </div>
 
  <div class="boxPFIL">
    <div class="firstline"><a rel="nofollow" href="/sta/{PUSERNAME}"><div class="sbjPFIL">{L_TOPICS}</div></a>
      <a rel="nofollow" href="/spa/{PUSERNAME}"><div class="sbjPFIL">{L_POSTS}</div></a>
    <a rel="nofollow" href="/privmsg?mode=post&u={CUR_USER_ID}"><div class="sbjPFIL">Envoyer un MP</div></a></div>
    <div class="boxprofil"><div class="abtPFIL"><div class="titreprofil">Personnage</div>
      <!-- BEGIN profile_field --><div class="infos-posteur"><div id="field_id{profile_field.ID}"><div>
      <span class="gen">{profile_field.LABEL}</span> <br/>{profile_field.CONTENT}</div></div></div>
      <!-- END profile_field --></div>
     
   
     
      <div id="ktactPFIL" class="M14_rpg"><div class="titreprofil">Fiche</div><br/>
      <!-- BEGIN switch_rpg --> <!-- BEGIN rpg_fields -->
        <div class="rpgname">{switch_rpg.rpg_fields.F_NAME}</div> <span class="contenuerp">{switch_rpg.rpg_fields.F_VALUE_NEW}</span><br/><br/>
 <!-- END rpg_fields --> <!-- END switch_rpg -->
     
    </div>
   
      <div class="contactprofil">        <div class="titreprofil">Informations</div>
    <!-- BEGIN contact_field -->
      <div class="ktactPFIL">{contact_field.CONTENT}</div><!-- END contact_field -->
    <div class="titreprofil" style="margin-top: -30px;">Hors RP</div>
  </div>
   
    </div> </div>
  <!-- BEGIN switch_rpg -->
  <div class="boxRPG"><div style="text-align:center">{RPG_IMAGE}</div><br/>
 {U_ADMIN_RPG}
 </div>
 <!-- END switch_rpg -->
<!-- BEGIN switch_admin_user_comment_active --><span class="gen">{L_COMMENTS} :</span><br /><span class="gensmall">{L_MODS_AND_ADMINS}</span> {ADMIN_USER_COMMENT}<!-- END switch_admin_user_comment_active -->
</div>
</table>
<br />
<script src="{JS_DIR}jquery/json/jquery.json-1.3.min.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
 $(document).ready(function(){
 $('[id^=field_id]').each(function(){
 if ( $(this).find('.field_editable').is('span, div') )
 {
 $(this).hover(function()
 {
 if( $(this).find('.field_editable.invisible').is('span, div') )
 {
 $(this).find('.field_editable').prev().addClass('ajax-profil_hover').parent().addClass('ajax-profil_parent').append('<div class="ajax-profil_edit"><img src="{AJAX_EDIT_IMG}" /></div>');
 $(this).find('.ajax-profil_edit').attr({
 alt: "{L_FIELD_EDIT_VALUE}",
 title: "{L_FIELD_EDIT_VALUE}"
 }).click(function(){
 $(this).prev().prev().removeClass('ajax-profil_hover').addClass('invisible').next().removeClass('invisible').append('<img src="{AJAX_VALID_IMG}" class="ajax-profil_valid" />').find('input,select');
 $(this).prev().find('.ajax-profil_valid').attr({
 alt: "{L_VALIDATE}",
 title: "{L_VALIDATE}"
 }).click(function(){
 var content = new Array();
 $(this).parent().find('[name]').each(function(){
 var type_special = $(this).is('input[type=radio],input[type=checkbox]');
 if ( (type_special && $(this).is(':checked')) || !type_special )
 {
 content.push(new Array($(this).attr('name'), $(this).attr('value')));
 }
 });
 var id_name = $(this).parents('[id^=field_id]').attr('id');
 var id = id_name.substring(8, id_name.length);
 $.post(
 "{U_AJAX_PROFILE}",
 {id:id,user:"{CUR_USER_ID}",active:"{CUR_USER_ACTIVE}",content:$.toJSON(content),tid:"{TID}"},
 function(data){
 $.each(data, function(i, item){
 $('[id=field_id' + i + ']').find('.field_uneditable').html(item).end().find('.ajax-profil_valid').remove().end().find('.field_editable').addClass('invisible').end().find('.field_uneditable').removeClass('invisible');
 });
 },
 "json"
 );
 });
 $(this).remove();
 });
 }
 },function()
 {
 if( $(this).find('.field_editable.invisible').is('span, div') )
 {
 $(this).find('.field_editable').prev().removeClass('ajax-profil_hover');
 $(this).find('.ajax-profil_edit').remove();
 }
 });
 }
 });
 });
//]]>
</script>
    <script type="text/javascript">
  $(function(){
$('.boxprofil').find('.infos-posteur').each(function(){
var id=$(this).find('div:first').attr('id');
$(this).addClass(id);
  });});
  </script>

<script type="text/javascript">$(function(){
    $('span.label').each(function(){
 $(this).html($(this).html().replace(":", ''));
    });
  });</script>

<script>$(function(){$( ".M14_rpg ").attr( "class", function(div) {
return "Number_" +div;})});</script>


<script type="text/javascript">
  <!--
  var divs = document.getElementsByTagName("div");
  for (i=0; i<divs.length; i++){
  if(divs[i] != null && divs[i].className == "postbody")
  {
      var chaine1 = new String("[\[]infobulle=([a-zA-Z]+)[^[]");
      var reg = new RegExp(chaine1, "g");
      var reg2 = new RegExp("[\[]/infobulle[^[]", "g");
      var contenu = divs[i].innerHTML;
      var nouveaucontenu = contenu.replace(reg,"<span title="$1">").replace(reg2,"</span>");
      divs[i].innerHTML = nouveaucontenu;
  }
  }
  // -->
</script>

Mici !
Milouze14
Milouze14
Fondateur

https://www.milouze14.net/

MessageMilouze14 Mar 25 Aoû 2020 - 18:37

Coucou Elenwe,

j'aurais voulu avoir des précisions concernant les champs du profil,
je vois dans ta feuille de style que tu as déposé une couleur (#9f9f9f) à la balise span:


Code:
.profil-hover-content div .label span{color:#9f9f9f!important}

Alors qu'il faut simplement l'attribuer dans le P.A:

[PHPBB2] Modification de la position des label profils dans les messages postés 1182

A partir de là, on pourra supprimer les disgracieux deux points  Merci

En partant du principe que tu es ajouté une couleur pour tous les champs via le P.A.
On va ajouter des class afin de bien délimiter les deux champs et aussi pour avoir des class bien définies pour chacun d'entre eux .

Chaque champs étai actuellement entouré d'une simple div.
Désormais elles auront une div mais avec la class ( M14_profil_bloc)
Le champs de gauche sera entouré d'une balise span ayant cette class
(profile-field , ce sera pour le script qui rechercher le texte et appliquer une class)
Le champs de droite sera entouré d'une balise span ayant cette class (profile-Content)

Pour que tu comprennes bien le fonctionnement du script, celui-ci va rechercher le texte présent dans la balise span ayant celle class:

Code:
.profile-field

Ensuite le script va lui attribuer cette class:

Exemple pour le champs Titre

Code:

M14_profil_bloc field_titre

C.S.S:

Code:

.M14_profil_bloc.field_titre
{

}
Attention toutefois pour les espaces et caractéres spéciaux,
le script remplacera ces derniers par des chiffres et aussi ce trait _

Tu peux toujours utiliser la console du navigateur pour le constater.

Exemple avec le champs "Date d'inscription " qui ets le meilleur exemple, la class sera alors:
Code:
M14_profil_bloc field_date-d__0027inscription

C.S.S:
Code:

.M14_profil_bloc.field_date-d__0027inscription
{


}


Si tu veux styliser tous les champs sans taper toutes les class trouvées.

Code:

div[class*="field_"]
{

}



Sauf pour le champ titre qui lui aura perdu cette class car on l'a déplacé.





Pour le champsTitre, il est impératif qu'il n'y ait aucun Séparateur :

[PHPBB2] Modification de la position des label profils dans les messages postés 1183

Le script à déposer :


Modules/HTML&JAVASCRIPT/Gestion des codes Javascript/Créer un nouveau Javascript

Mettre un titre explicite.

Cocher  Sur les sujets

Déposer ceci:

Code:

$(function(){
$('.profil-hover-content').find('span.label:contains(Titre)').each(function(){
var test=$(this).closest('div').addClass('M14_none').html();
if(test){$(this).closest('tr').next().find('td.M14_td').append('<div class="M14_recept_div">'+test+'</div>');}
});});

 
$(function() {
  for (var field = $('.M14_profil_bloc'), i = 0, j = field.length; i < j; i++) {
    field[i].className += ' field_' + $('.label', field[i]).text().toLowerCase().replace(/ : /, '').replace(/[^a-z0-9]/g, function(s) {
        var c = s.charCodeAt(0);
        if (c == 32) return '-';
        return '__' + ('000' + c.toString(16)).slice(-4);
    });
  }
});

Penser a cliquer sur le bouton Valid

Puis le template dans sa totalité:

Code:
   <script type="text/javascript">
    //<![CDATA[
    var multiquote_img_off = '{JS_MULTIQUOTE_IMG_OFF}', multiquote_img_on = '{JS_MULTIQUOTE_IMG_ON}', _atr = '{JS_DIR}addthis/', _ati = '{PATH_IMG_FA}addthis/'{ADDTHIS_LANG}, addthis_localize = { share_caption: "{L_SHARE_CAPTION}", email: "{L_EMAIL}", email_caption: "{L_EMAIL_CAPTION}", favorites: "{L_SHARE_BOOKMARKS}", print: "{L_PRINT}", more: "{L_MORE}" };
    $(function(){
        if(typeof(_atc) == "undefined") {
            _atc = {  };
        }
    });

    var hiddenMsgLabel = { visible:'{JS_HIDE_HIDDEN_MESSAGE}', hidden:'{JS_SHOW_HIDDEN_MESSAGE}' };
    showHiddenMessage = function(id)
    {
        try
        {
            var regId = parseInt(id, 10);
            if( isNaN(regId) ) { regId = 0; }
          
            if( regId > 0)
            {
                $('.post--' + id).toggle(0, function()
     {
     if( $(this).is(":visible") )
     {
     $('#hidden-title--' + id).html(hiddenMsgLabel.visible);
     }
     else
     {
     $('#hidden-title--' + id).html(hiddenMsgLabel.hidden);
     }
     });
            }
        }
        catch(e) { }
      
     return false;
    };

    //]]>
    </script>
    <br/>
    <span class="nav">
                    <a class="nav" href="{U_INDEX}"><span>{L_INDEX}</span></a>
                    <!--{NAV_SEP}<a class="nav" href="{U_ALBUM}"><span>{L_ALBUM}</span></a>-->
                    {NAV_CAT_DESC_SECOND}
    </span><br/>
    <br/>
    <table width="100%" border="0" cellspacing="2" cellpadding="0">
     <tr>
     <td align="left" valign="middle" nowrap="nowrap">
    
     <!-- BEGIN switch_user_authpost -->
     <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}one" alt="{L_POST_NEW_TOPIC}" align="middle" border="0" /></a>  
     <!-- END switch_user_authpost -->
     <!-- BEGIN switch_user_authreply -->
     <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" id="i_reply" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0" /></a>
     <!-- END switch_user_authreply -->

     </td>
     <td class="nav" valign="middle" width="100%">
    
     </td>
     <td align="right" valign="bottom" nowrap="nowrap" width="100%">
     <!-- BEGIN switch_twitter_btn -->
     <span id="twitter_btn" style="margin-left: 6px; ">
                    <a href="https://twitter.com/share" class="twitter-share-button" data-via="{TWITTER}">Tweet</a>
                    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
     </span>
     <!-- END switch_twitter_btn -->
    
     <!-- BEGIN switch_fb_likebtn -->
     <script>(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 = "https://connect.facebook.net/{LANGUAGE}/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
     }(document, 'script', 'facebook-jssdk'));</script>
     <div class="fb-like" data-href="{FORUM_URL}{TOPIC_URL}" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>
     <!-- END switch_fb_likebtn -->

     <span class="gensmall bold">
     <a class="addthis_button" href="#">{L_SHARE}</a>
     <!-- BEGIN switch_plus_menu -->
      |
     <script type="text/javascript">//<![CDATA[
     var url_favourite = '{U_FAVOURITE_JS_PLUS_MENU}';
     var url_newposts = '{U_NEWPOSTS_JS_PLUS_MENU}';
     var url_egosearch = '{U_EGOSEARCH_JS_PLUS_MENU}';
     var url_unanswered = '{U_UNANSWERED_JS_PLUS_MENU}';
     var url_watchsearch = '{U_WATCHSEARCH_JS_PLUS_MENU}';
     insert_plus_menu('f{FORUM_ID}&t={TOPIC_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
     //]]>
     </script>
     <!-- END switch_plus_menu -->
     </span>
     </td>
     </tr>
    </table>
    <br/>
    <table class="forumline" width="100%" border="0" cellspacing="0" cellpadding="0" >
      <tr align="right">
     <td class="titlesubject" colspan="2" height="28" style="background-color: #350000;">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
     <td width="9%" class="noprint"> </td>
     <td align="center" class="t-title">
     <div class="titresujet"> {TOPIC_TITLE}</div>
     </td>
     <td align="right" width="9%" class="browse-arrows">
                            <!-- BEGIN switch_isconnect -->
                            <a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a>
                            <!-- END switch_isconnect -->
                            <a href="#bottom">{L_GOTO_DOWN}</a>
                        </td>
     </tr>
     </table>
     </td>
     </tr>
     <!-- BEGIN topicpagination -->
     <tr>
     <td class="row1 pagination" colspan="2" align="right" valign="top"><span class="gensmall">{PAGINATION}</span></td>
     </tr>
     <!-- END topicpagination -->
     {POLL_DISPLAY}
     <!-- BEGIN postrow -->
     <!-- BEGIN hidden -->
     <tr>
     <td class="postdetails {postrow.hidden.ROW_CLASS}" colspan="2" align="center">{postrow.hidden.MESSAGE}</td>
     </tr>
     <!-- END hidden -->
     <!-- BEGIN displayed -->
     <tr class="post post--{postrow.displayed.U_POST_ID}" id="{postrow.displayed.U_POST_ID}" style="{postrow.displayed.DISPLAYABLE_STATE}">
     <td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="150">
     <span class="postdetails poster-profile">
                        <div class="post-profil">
                        <div class="profil-avatar">
                          {postrow.displayed.POSTER_AVATAR}
                        </div>
                        <div class="profil-hover">
                          <div class="profil-hover-content">
     <!-- BEGIN profile_field -->
                          <div class="M14_profil_bloc">
                            <span class="profile-field">{postrow.displayed.profile_field.LABEL}</span>
                            <span class="profile-Content">{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}</span>
                            

                          </div>
     <!-- END profile_field -->
    
     {postrow.displayed.POSTER_RPG}
                          </div>
                        </div>
                        </div>

     </span><br />
      
     <img src="https://2img.net/i/fa/empty.gif" alt="" style="width:150px;height:1px" />
     </td>
     <td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="100%" height="28">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr><td class="M14_get_img"colspan="2"align="center"><img src="https://zupimages.net/up/19/40/chps.png"/><div class="nameposter">{postrow.displayed.POSTER_NAME}</div><div class="rankposter">{postrow.displayed.POSTER_RANK}</div></td></tr>
     <tr class="postoptionsdetails">
                                      <td><span class="postdetails"><a href="#{postrow.displayed.U_POST_ID}">#{postrow.displayed.U_POST_ID} : {postrow.displayed.POST_SUBJECT}</a></span><div style="text-align:right;font-size:10px;padding:2px;">{postrow.displayed.POST_DATE}</div></td>
    
                              
                                      <td valign="top" nowrap="nowrap" class="post-options">
     <div class="post-btn">
                        <div class="btn-quote">{postrow.displayed.QUOTE_IMG} </div>
                          <div class="btn-edit">{postrow.displayed.EDIT_IMG} </div>
                            <div class="btn-delete">{postrow.displayed.DELETE_IMG} </div>
                                <div class="btn-report">{postrow.displayed.REPORT_IMG}</div>
                        </div>
     </td>
     </tr>
    
     <tr>
     <td colspan="2">
     <!-- BEGIN switch_vote_active -->
     <div class="vote gensmall">
     <!-- BEGIN switch_vote -->
     <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a></div>
     <!-- END switch_vote -->

     <!-- BEGIN switch_bar -->
     <div class="vote-bar" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}">
     <!-- BEGIN switch_vote_plus -->
     <div class="vote-bar-plus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_plus.HEIGHT_PLUS}px;"></div>
     <!-- END switch_vote_plus -->

     <!-- BEGIN switch_vote_minus -->
     <div class="vote-bar-minus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_minus.HEIGHT_MINUS}px;"></div>
     <!-- END switch_vote_minus -->
     </div>
     <!-- END switch_bar -->

     <!-- BEGIN switch_no_bar -->
     <div title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar">----</div>
     <!-- END switch_no_bar -->

     <!-- BEGIN switch_vote -->
     <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}">-</a></div>
     <!-- END switch_vote -->
     </div>
     <!-- END switch_vote_active -->

     <div class="postbody">

     <div class="messageposter">{postrow.displayed.MESSAGE}</div>

     <!-- BEGIN switch_attachments -->
     <dl class="attachbox">
     <dt>{postrow.displayed.switch_attachments.L_ATTACHMENTS}</dt>
     <dd>
     <!-- BEGIN switch_post_attachments -->
     <dl class="file">
     <dt>
     <img src="{postrow.displayed.switch_attachments.switch_post_attachments.U_IMG}" alt="" />

     <!-- BEGIN switch_dl_att -->
     <a class="postlink" href="{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.U_ATTACHMENT}">{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT}</a> {postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT_DEL}
     <!-- END switch_dl_att -->

     <!-- BEGIN switch_no_dl_att -->
     {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}
     <!-- END switch_no_dl_att -->
     </dt>

     <!-- BEGIN switch_no_comment -->
     <dd>
     <em>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_comment.ATTACHMENT_COMMENT}</em>
     </dd>
     <!-- END switch_no_comment -->

     <!-- BEGIN switch_no_dl_att -->
     <dd>
     <em><strong>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.TEXT_NO_DL}</strong></em>
     </dd>
     <!-- END switch_no_dl_att -->

     <dd>({postrow.displayed.switch_attachments.switch_post_attachments.FILE_SIZE}) {postrow.displayed.switch_attachments.switch_post_attachments.NB_DL}</dd>
     </dl>
     <!-- END switch_post_attachments -->
     </dd>
     </dl>
     <!-- END switch_attachments -->
    
     <!-- BEGIN switch_signature -->
     <div class="signature_div">
     {postrow.displayed.SIGNATURE}
     </div>
     <!-- END switch_signature -->

     </div>
     <span class="gensmall">{postrow.displayed.EDITED_MESSAGE}</span>
     </td>
     </tr>
     </table>
     </td>
     </tr>
     <tr class="post--{postrow.displayed.U_POST_ID} " style="{postrow.displayed.DISPLAYABLE_STATE}">
     <td class="{postrow.displayed.ROW_CLASS} browse-arrows"{postrow.displayed.THANK_BGCOLOR} width="150">
       <table width="100%" border="0" cellspacing="0" cellpadding="0">
           <!--ON IMPORTE LE TITRE DANS CETTE BALISE -->
         <tr><td class="M14_td"  align="center" valign="middle"></td></tr><tr>
         <!--Les images de navigation haut et pas de page -->
         <td  align="center" valign="middle"><a href="#top">{L_BACK_TO_TOP}</a> <a href="#bottom">{L_GOTO_DOWN}</a></td></tr></table>  

     </td>
     <td class="{postrow.displayed.ROW_CLASS} messaging gensmall"{postrow.displayed.THANK_BGCOLOR} width="100%" height="28">
     <table border="0" cellspacing="0" cellpadding="0">
     <tr>
     <td valign="middle"><div class="post-bottom">
                        <div class="btn-profile"><span></span>{postrow.displayed.PROFILE_IMG}</div>
                          <div class="btn-pm"><span></span>{postrow.displayed.PM_IMG}</div>
                            <div class="btn-mail"><span></span>{postrow.displayed.EMAIL_IMG}</div>
                              <div class="btn-link"><!-- BEGIN contact_field --><span></span>{postrow.displayed.contact_field.CONTENT}<!-- END contact_field --> </div>
                                <div class="online">{postrow.displayed.ONLINE_IMG}</div>
                    
                      </div>
     </td>
     </tr>
     </table>
     </td>
      </tr>
     <!-- BEGIN first_post_br -->
    </table>
    <hr />
    <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
     <tr>
     <th class="thLeft" nowrap="nowrap" width="150px" height="26">{L_AUTHOR}</th>
     <th class="thRight" nowrap="nowrap" colspan="2">{L_MESSAGE}</th>
     </tr>
     <!-- END first_post_br -->
     <!-- END displayed -->
     <!-- END postrow -->
     <!-- BEGIN no_post -->
     <tr align="center">
     <td class="row1" colspan="2" height="28">
     <span class="genmed">{no_post.L_NO_POST}</span>
     </td>
     </tr>
     <!-- END no_post -->
     <tr align="right">
     <td class="titlebottom" colspan="2" height="28">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
     <td width="9%" class="noprint"> </td>
     <td align="center" class="t-title"><a name="bottomtitle"></a><div class="cattitle">{TOPIC_TITLE}</div></td>
     <td align="right" nowrap="nowrap" width="9%" class="browse-arrows">
                            <!-- BEGIN switch_isconnect -->
                            <a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a>
                            <!-- END switch_isconnect -->
                            <a href="#top">{L_BACK_TO_TOP}</a>
                        </td>
     </tr>
     </table>
     </td>
     </tr>
    </table>
    <table class="forumline noprint" width="100%" border="0" cellspacing="0" cellpadding="0" style="margin: 0 0 0px 0; border-top: 0px;">
     <tr>
     <td class="row2" valign="top" {COLSPAN_PAGINATION} width="150"><span class="gensmall">{PAGE_NUMBER}</span></td>
     <!-- BEGIN topicpagination -->
     <td class="row1" align="right" valign="top" ><span class="gensmall">{PAGINATION}</span></td>
     <!-- END topicpagination -->
     </tr>
     <!-- BEGIN switch_user_logged_in -->
     <!-- BEGIN watchtopic -->
     <tr>
     <td class="row2" colspan="2" align="right" valign="top"><span class="gensmall">{S_WATCH_TOPIC}</span></td>
     </tr>
     <!-- END watchtopic -->
     <!-- END switch_user_logged_in -->
    </table>

    <!-- BEGIN promot_trafic -->
    <table class="forumline" width="100%" border="0" cellpadding="1" cellspacing="0" id="ptrafic_close" style="display:none;margin: 1px 0px 1px 0px">
     <tr>
     <td class="catBottom" height="28">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
     <td valign="top"><div class="cattitle"> {PROMOT_TRAFIC_TITLE}</div></td>
     <td align="right" valign="middle" width="10"><span class="gensmall"><a href="javascript:ShowHideLayer('ptrafic_open','ptrafic_close');"><img src="{TABS_MORE_IMG}" alt="+" align="middle" border="0" /></a></span></td>
     </tr>
     </table>
     </td>
     </tr>
    </table>

    <table class="forumline" width="100%" border="0" cellpadding="1" cellspacing="0" id="ptrafic_open" style="display:'';margin: 1px 0px 1px 0px">
     <tr>
     <td class="catBottom" height="28">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
     <td valign="top"><div class="cattitle"> {PROMOT_TRAFIC_TITLE}</div></td>
     <td align="right" valign="middle" width="10"><span class="gensmall"><a href="javascript:ShowHideLayer('ptrafic_open','ptrafic_close');"><img src="{TABS_LESS_IMG}" alt="-" align="middle" border="0" /></a></span></td>
     </tr>
     </table>
     </td>
     </tr>
     <tr>
     <td class="row2 postbody" valign="top">
     <!-- BEGIN link -->
     » <a style="text-decoration:none" href="{promot_trafic.link.U_HREF}" target="_blank" title="{promot_trafic.link.TITLE}" rel="nofollow">{promot_trafic.link.TITLE}</a><br />
     <!-- END link -->
     </td>
     </tr>
    </table>
    <!-- END promot_trafic -->

    <!-- BEGIN switch_forum_rules -->
    <table id="forum_rules" class="forumline" width="100%" border="0" cellspacing="0" cellpadding="0" style="margin: 0px 0px 0px 0px">
     <tbody>
     <tr>
     <td class="catBottom">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tbody>
     <tr>
     <td valign="top">
     <div class="cattitle"> {L_FORUM_RULES}</div>
     </td>
     </tr>
     </tbody>
     </table>
     </td>
     </tr>
     <tr>
     <td class="row1 clearfix">
     <table>
     <tr>
     <!-- BEGIN switch_forum_rule_image -->
     <td class="logo">
     <img src="{RULE_IMG_URL}" alt="" />
     </td>
     <!-- END switch_forum_rule_image -->
     <td class="rules postbody">
     {RULE_MSG}
     </td>
     </tr>
     </table>
     </td>
     </tr>
     </tbody>
    </table>
    <!-- END switch_forum_rules -->

    <table class="forumline noprint" width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
     <td class="row2" colspan="2" align="center" style="padding:0px">
     <!-- BEGIN switch_user_logged_in -->
                    <div class="rpg_buttons"><a href="#">Lancer de dés</a><a href="#">Défis</a><a href="#">Intervention du Destin</a><a href="#">Missions</a></div> <br/>
     <a name="quickreply"></a>
     {QUICK_REPLY_FORM}<br />
     <!-- END switch_user_logged_in -->
     </td>
     </tr>
     <tr>
     <td style="margin:0; padding: 0;" colspan="2">
     <table border="0" cellpadding="0" width="100%" cellspacing="0" id="info_open" style="display:''">
     <tbody>
     <!-- BEGIN show_permissions -->
     <tr>
     <td class="row2" valign="top" width="25%"><span class="gensmall">{L_TABS_PERMISSIONS}</span></td>
     <td class="row1" valign="top" width="75%"><span class="gensmall">{S_AUTH_LIST}</span></td>
     </tr>
     <!-- END show_permissions -->
    
     <tr>
     <td style="margin:0; padding: 0;" colspan="2">
     <table border="0" cellpadding="0" cellspacing="0" width="100%" id="info_close" style="display:none;">
     <tbody>
     <tr>
     <td class="catBottom" colspan="2" height="28">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
     <td align="right" valign="middle"><span class="gensmall"><a href="javascript:ShowHideLayer('info_open','info_close');"><img src="{TABS_MORE_IMG}" alt="+" align="middle" border="0" /></a></span></td>
     </tr>
     </table>
     </td>
     </tr>
     </tbody>
     </table>
     </td>
     </tr>
    </table>


    <form action="{S_JUMPBOX_ACTION}" method="get" name="jumpbox" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
    <table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
     <tr>
     <td align="left" valign="middle" nowrap="nowrap" {WIDTH_GALLERY}>
     <span class="nav">
     <!-- BEGIN switch_user_authpost -->
     <p class="posting"><a href="{U_POST_NEW_TOPIC}" accesskey="n" rel="nofollow">Poster un nouveau sujet</a></p>  
     <!-- END switch_user_authpost -->
     <!-- BEGIN switch_user_authreply -->
     <p class="answerm"><a href="{U_POST_REPLY_TOPIC}" accesskey="n" rel="nofollow">Répondre au sujet</a></p>
                              <!-- END switch_user_authreply -->
     </span>
     </td>
          
            
     <td align="right" nowrap="nowrap"><span class="gensmall">{L_JUMP_TO}: {S_JUMPBOX_SELECT} <input class="liteoption" type="submit" value="{L_GO}" /></span></td>
            
     <!-- BEGIN moderation_panel -->
     <td align="center">
     <span class="gensmall">{moderation_panel.U_YOUR_PERSONAL_MODERATE}</span>
     </td>
     <td align="center" width="250">
     <span class="gensmall"> </span>
     </td>
     <!-- END moderation_panel -->
     </tr>
    </table>
    </form>
    <br/>
    <span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_SEP}<a class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC_SECOND}</span>

    <!-- BEGIN viewtopic_bottom -->
    <table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
     <tr>
     <td colspan="2" align="left" valign="top" nowrap="nowrap"><br />{S_TOPIC_ADMIN}<br />
     <form name="action" method="get" action="{S_FORM_MOD_ACTION}">
     <input type="hidden" name="t" value="{TOPIC_ID}" />

     <!-- <input type="hidden" name="sid" value="{S_SID}" /> -->
     <input type="hidden" name="{SECURE_ID_NAME}" value="{SECURE_ID_VALUE}" />

     <span class="gen">{L_MOD_TOOLS}<br />{S_SELECT_MOD}&nbsp;<input class="liteoption" type="submit" value="{L_GO}" /></span>
     </form>
     </td>
     </tr>
    </table>
    <!-- END viewtopic_bottom -->

    <!-- BEGIN switch_image_resize -->
    <script type="text/javascript">
    //<![CDATA[
    $(resize_images({ 'selector' : '.postbody', 'max_width' : {switch_image_resize.IMG_RESIZE_WIDTH}, 'max_height' : {switch_image_resize.IMG_RESIZE_HEIGHT} }));
    //]]>
    </script>
    <!-- END switch_image_resize -->
    <script src="//s7.addthis.com/js/300/addthis_widget.js#pubid=forumotion" type="text/javascript"></script>


La c.s.s avec la tienne compilée :
Code:
/*ON MASQUE LE CHAMP CACHE*/
.M14_none{display:none;}
/*ON MASQUE LES DEUX POINTS DE TOUS LES CHAMPS*/
.M14_profil_bloc .label,.M14_recept_div .label{font-size:0px;}
/*On impose une taille de police a la balise span(couleur des champs) via le P.A*/
.M14_profil_bloc .label span,.M14_recept_div .label span
{font-size:8px!important;display:block;text-transform:uppercase;letter-spacing:1px}
 
 .M14_profil_bloc .profile-Content,.M14_recept_div .profile-Content
{font-size:8px;color:#9f9f9f;text-transform:uppercase;letter-spacing:1px}






/********SUJETS********/
    .nameposter{font-family:Roboto;font-size:40px;margin-left:10px;margin-top:-120px;position:absolute;text-transform:uppercase}
    .rankposter{position:absolute;margin-top:-76px;margin-left:10px;text-transform:uppercase}
    .post-options{text-align:right;position:relative;top:-60px}
    .post-btn{text-align:right;position:absolute;right:5px;bottom:15px}
    .post-bottom img,.post-btn img{display:none}
    .post-btn div{display:inline-block;margin:0 5px}
    .post-btn div a:before{content:"\f11d";display:inline-block;height:35px;width:35px;border:1px solid #0e0c0c;border-radius:50%;font-family:Ionicons;text-align:center;line-height:35px;font-size:20px;color:#0e0c0c;background:rgba(51,42,42,.6);-webkit-transition:all .3s;transition:all .3s}
    .post-btn div a:hover:before{background:#f5f5f5}
    .post-btn .btn-edit a:before{content:"\f2bf"}.post-btn .btn-delete a:before{content:"\f252"}
    .post-btn .btn-ip a:before{content:"\f149"}
    .post-btn .btn-report a:before{content:"\f100"}
    .td .titlesubject{background-color:#350000}
    .titresujet{font-size:35px;text-transform:uppercase;font-family:Roboto;padding:5px 0}
    .postoptionsdetails{background-color:#000}
    .postdetails{float:left;padding:2px}
    .forumline .row3,.forumline .row3Right{padding:2px 3px;background-color:#0c0c0c}
    .forumline .row1,.forumline .row2{padding:2px 3px;background-color:#000}
    .messageposter{background-color:rgba(27,27,27,.5);min-height:226px;padding:5px}
    .signature_div{max-height:300px;overflow:hidden}
    .signature_div:hover{overflow:auto}
    .post-bottom{flex:100%;width:800px;position:relative}
    .post-bottom div{display:inline-block;margin:10px 15px 10px 0}
    .post-bottom div:first-child{display:inline-block;margin-left:15px}
    .post-bottom div a{position:relative;text-decoration:none!important}
    .post-bottom div a:after{content:"Profil";text-transform:uppercase;font-family:Roboto,sans-serif;font-size:8px;letter-spacing:1px;border:1px solid #ccc;padding:0 8px;color:#9f9f9f;height:16px;line-height:16px;display:inline-block;-webkit-transition:all .3s;transition:all .3s}
    .post-bottom div a:hover:after{border:1px solid #8d8d8d;color:#595959}
    .post-bottom .btn-pm a:after{content:"Mp"}
    .post-bottom .btn-mail a:after{content:"Mail"}
    .post-bottom .btn-link a:after{content:"click"}
    .btn-link{display:none}
    .post-bottom .online:empty{display:none}
    .online img{display:none}
    .online:before{content:"\f2a9";position:absolute;right:10px;bottom:0;font-family:Ionicons;font-size:40px;color:#d2d2d2}
    .rpg_buttons a{font-family:Roboto;background-color:#1b1b1b80;color:#cdc5c4;display:inline-block;margin:5px 10px;font-size:10px;padding:3px 7px;text-transform:uppercase}
    .titlebottom{background-color:#350000}
    .posting{display:inline-block;background-color:#141414;border:1px solid #939393;color:#cdc5c4;cursor:pointer;font-family:Roboto;font-size:10px;margin-right:10px;text-transform:uppercase;padding:5px;text-align:center;text-shadow:1px 1px 1px #000}
    .answerm{display:inline-block;background-color:#141414;border:1px solid #939393;color:#cdc5c4;cursor:pointer;font-family:Roboto;font-size:10px;text-transform:uppercase;padding:5px;text-align:center;text-shadow:1px 1px 1px #000}.post-profil{width:200px;position:relative;overflow:hidden}
    .profil-hover{height:400px;width:200px;position:absolute;background:#350000;top:100%;text-align:center;box-sizing:border-box;padding:5px;-webkit-transition:all .3s;transition:all .3s}
    .post-profil:hover .profil-hover{top:0}
    .profil-hover-content{height:100%;background:rgb(20,20,20);overflow:auto;font-family:Roboto,sans-serif;font-size:11px}
    .profil-hover-content div{margin:5px 0}
Elenwe57
Elenwe57
https://under-the-moon.forumactif.com/

MessageElenwe57 Jeu 27 Aoû 2020 - 17:20

Bonjooouuur !

Désolée du temps de réponse, le boulot me prend pas mal de temps ><

Ah oui... Oui non mais j'aime bien faire compliqué, merci pour la correction :p

Et un grand merci pour l'explication, du coup j'ai bien compris (et notamment pour mettre tous les champs d'un coup, ce qui est un graaaand soulagement)
Merci beaucoup beaucoup beaucoup !
Milouze14
Milouze14
Fondateur

https://www.milouze14.net/

MessageMilouze14 Jeu 27 Aoû 2020 - 17:30

Coucou Elenwe,

de rien chère amie.



Hello


Sujet résolu et déplacé dans le forum adéquate

A bientôt pour une prochaine demande clin oeil



Voir le sujet précédent Voir le sujet suivant Revenir en haut

Créer un compte ou se connecter pour répondre

Vous devez être membre pour répondre.

S'enregistrer

Rejoignez notre communauté ! C'est facile !


S'enregistrer

Connexion

Vous êtes déjà membre ? Aucun soucis, cliquez ici pour vous connecter.


Connexion

 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum