Changement de la variable PUSERNAME dans le profil simple?
2 participants
Forum gratuit : Le forum des forums actifs :: Entraide & Support... :: Problème avec un script, un code :: Archives des problèmes avec un code
Page 1 sur 1 • Partagez
Changement de la variable PUSERNAME dans le profil simple?
Détails techniques
Version du forum : phpBB3
Poste occupé : Administrateur
Navigateur(s) concerné(s) : Google Chrome
Personnes concernées par le problème : Tous les utilisateurs
Problème apparu depuis : Quelques jours?
Lien du forum : (lien masqué, vous devez poster pour le voir)
Description du problème
Bonjour,Je constate que mon codage pour le profil "simple" des membres de mon forum affiche maintenant le "numéro" de membre, exemple U17 au lieu du nom du membre dans le profil.
Pourtant, je n'ai pas modifié mon codage, mais je ne crois pas avoir vu une annonce de FA sur ce changement non négligeable de la variable. Si l'annonce a été faite, je vous présente mes excuses mais je ne l'ai pas vue.
Est-ce une modification de la part de Forumactif ou autre chose?
Mon codage de profile_view_body, sous hide parce que je ne partage pas mes codes avec le premier venu:
- Code:
<script>
$(document).ready(function(){
$('.psname > span').each(function(){
var bodyTitle = $(this).text();
var bodyColor = $(this).css('color');
$(this).parents('html').children('head').children('title').html(bodyTitle);
$(this).parents('#perfilsencillo').prepend('<style>#perfilsencillo {--groups:' + bodyColor + '!important;}</style>');
});
$('.psfield .psflabel span').each(function() {
$(this).parents('.psfield').addClass($(this).text().split(" ")[0].toLowerCase().replace(/'/g, "").replace(/\(|\)/g, ""));
});
});
$(document).ready(function(){
$('.psfield .psfcontent div:contains("-")').each(function(){
var myVar = $(this).text();
var myCount = myVar.length;
if (myCount == 3) {
$(this).parents('.psfield').remove();
}
});
});
$(document).ready(function(){
$('.pscontact a[href*="email"]').remove();
$('.psfield.banner').appendTo('.psbanner');
$('.psfield.icono').appendTo('.psicon');
$('.psfield.descripción').appendTo('.p3');
$('.pscontact div:contains("-")').each(function(){
$(this).remove();
});
});
$(window).load(function(){
$('.psfield img').removeAttr('title');
});
</script>
<script>
$(document).ready(function(){
$('.psprev').click(function(){
var currentTab = $.find('.pactive');
if ($(currentTab).is(':first-of-type')) {
var nextTab = $('.p0>div').last();
} else {
var nextTab = $(currentTab).prev();
}
var nameTab = $(nextTab).attr('name');
$('.psbname').attr('name', nameTab);
$(nextTab).addClass('pactive').animate({
"margin-left": "0px"
}, 1000);
$(currentTab).removeAttr('style').removeClass('pactive').animate({
"left":"-100%",
}, 1000, function () { $(this).attr('style','margin-left:100%');
});
});
$('.psnext').click(function(){
var currentTab = $.find('.pactive');
if ($(currentTab).is(':last-of-type')) {
var nextTab = $('.p0>div').first();
} else {
var nextTab = $(currentTab).next();
}
var nameTab = $(nextTab).attr('name');
$('.psbname').attr('PROFIL', nameTab);
$(nextTab).addClass('pactive').animate({
"margin-left": "0px"
}, 1000);
$(currentTab).removeAttr('style').removeClass('pactive').animate({
"left":"-100%",
}, 1000, function () { $(this).attr('style','margin-left:100%');
});
});
$('.p3:empty, .p4:empty').remove();
$('.rpg.rpginv').parent('.gen').addClass('geninv');
$('.rpg.rpgstats').parent('.gen').addClass('genstats');
$('.rpg.rpghab').parent('.gen').addClass('genhab');
});
</script>
<style>
.p0 {
overflow: hidden;
flex-grow: 1;
align-self: stretch;
position: relative;
}
.p0>div {
position:absolute;
width:100%;
height:100%;
bottom:0;
}
.psbname:before {
content:attr(name);
}
#perfilsencillo, .ps1, .ps2, .psbar, .p1, .p2, .pscontact {
display: flex;
justify-content: center;
align-items: center;
}
.ps1 {
flex-direction: column;
align-self: stretch;
flex-grow: 1;
background: var(--tbckg1);
border: var(--border1);
outline: var(--border1);
outline-offset: -15px;
padding: 14px;
backdrop-filter: blur(3px);
}
.ps2 {
flex-direction: column;
align-self: stretch;
flex-shrink: 0;
margin-left: 20px;
}
.psbar {
align-self: stretch;
justify-content: space-between;
padding: 20px;
position: relative;
border-bottom: var(--border1);
}
.psbar:before, .pscontact:before {content: "";position: absolute;top: 0;left: 0;right: 0;bottom: 0;background: var(--groups);opacity: .12;}
.psbar>div {
z-index: 5;
position: relative;
}
.psprev, .psnext {
cursor: pointer;
font-size: 20px;
color: #aaa;
}
.psprev:hover, .psnext:hover {
color: #fff;
}
.psbname {
font-size: 12px;
text-transform: uppercase;
font-weight: 700;
color: #bbb;
padding-top: 2px;
}
.psicon .psflabel {
display: none;
}
.psicon {
border: var(--border1);
border-radius: 100%;
padding: 10px;
}
.psicon img {
border: 1px solid var(--groups);
border-radius: 100%;
object-position: center;
object-fit: cover;
height: 80px;
width: 80px;
}
.psquote {
margin-top: 20px;
font-size: 10px;
text-align: justify;
color: #aaa;
max-width: 200px;
text-align-last: center;
overflow: auto;
}
.p1 {
flex-direction: column;
padding: 20px 0;
box-sizing: border-box;
}
.p2 {
flex-direction: column;
box-sizing:border-box;
padding:20px;
}
.pscontact {
position: relative;
align-self: stretch;
padding: 12px;
border-top: var(--border1);
}
.pscontact a {
color: #aaa;
margin: 0 10px;
position: relative;
z-index: 1;
}
.pscontact a:hover {
color: #eee;
}
.psquote:empty:after {content: "TIME IS A STORM IN WHICH WE ARE ALL LOST.";}
.psavatar {
padding: 20px;
border: var(--border1);
outline: var(--border1);
outline-offset: -10px;
background: var(--tbckg1);
margin-bottom: 20px;
backdrop-filter: blur(3px);
align-self: stretch;
}
.psavatar img {
border:1px solid var(--groups);
width:250px;
height:400px;
object-fit:cover;
object-position:center;
}
.psdat {
margin-top: 20px;
align-self: stretch;
padding: 20px;
border: var(--border1);
outline: var(--border1);
outline-offset: -10px;
background: var(--tbckg1);
backdrop-filter: blur(3px);
text-align: center;
text-transform: uppercase;
}
.psname {
font: 20px 'Playfair Display';
letter-spacing: -1px;
font-weight: 900;
border-bottom: var(--border1);
margin-bottom: 5px;
padding-bottom: 5px;
}
.psdat strong {
font-weight: 900;
}
.psrank {font-size: 10px;font-weight: 700;color: #aaaa;}
.psavatar {
position: relative;
}
.psavatar:before {content: "";right: 8px;top: 8px;background: var(--groups);position: absolute;height: 426px;width: 80px;}
.psavatar img {
position: relative;
}
.ps2env, .psfields, .psfields .psfield {
display: flex;
justify-content: center;
align-items: center;
}
.psfields {
flex-wrap: wrap;
align-self: stretch;
justify-content: flex-start;
}
.psfields .psfield {
flex-direction: column;
width: 33%;
align-items: flex-start;
margin-top: 20px;
padding-right: 20px;
box-sizing: border-box;
}
.ps2env {
align-self: stretch;
flex-shrink: 0;
margin-top: 20px;
flex-grow: 1;
align-items: flex-end;
}
.psfields .psflabel {
background: var(--groups);
font-size: 10px;
color: black;
font-weight: 900;
text-transform: uppercase;
padding: 5px 10px 5px 5px;
margin-bottom: 5px;
}
.psfields .psflabel span {
color: black!important;
}
.psfields .psfield:nth-of-type(3n+0), .psfields .psfield:last-of-type {
padding-right: 0;
}
.psfields .psfield:nth-of-type(-n+3) {margin-top: 0;}
.psfields .psfcontent {
font-size: 10px;
color: #888;
}
.banner .psflabel {
display: none;
}
.psbanner {
width: 300px;
height: 130px;
border: 1px solid var(--groups);
flex-shrink: 0;
background-image:url(https://2img.net/i.imgur.com/mnnibk3.png);
background-size:cover;
background-position:center;
}
.psbanner img {
width:300px;
height:130px;
}
.pslinks {
flex-grow: 1;
height: 130px;
display: flex;
flex-direction: column;
}
.pslinks a {
flex-grow: 1;
align-self: stretch;
display: flex;
align-items: center;
justify-content: flex-end;
border-bottom: var(--border1);
font-size: 10px;
text-transform: uppercase;
font-weight: 700;
color: var(--groups);
}
.pslinks a:last-of-type {
border-bottom: 0;
}
.psfield.descripción .psflabel {
display: none;
}
.psfield.descripción {
padding: 20px 15px 20px 20px;
box-sizing: border-box;
height: 100%;
}
.psfield.descripción .psfcontent {
overflow: auto;
width: 100%;
height: 100%;
text-align: justify;
padding-right: 5px;
}
.p3 a, .p3 strong, .p3 b, .p3 em, .p3 i {
color: var(--groups);
}
.p3 a { text-decoration:underline!important; }
.p3 span[style="font-size: 24px; line-height: normal"] {
font:20px 'Playfair Display';
font-weight:900;
text-transform:uppercase;
margin:0 auto;
text-align:center;
color:var(--groups);
font-weight:900;
display:block;
}
.rpg {display: flex;justify-content: center;align-items: center;flex-grow: 1;height: 100%;}
.p4 span.gen, .p4 {
display: flex;
justify-content: center;
align-items: center;
}
.p4 {
flex-direction: column;
padding:20px;
box-sizing:border-box;
}
span.gen {
flex-grow: 1;
align-self: stretch;
height: 33%;
box-sizing: border-box;
}
.rpg.rpginv {
display:block!important;
text-align: center;
}
.rpg.rpginv m {
margin: 0 5px 10px;
display:inline-flex!important;
}
span.gen.geninv {
margin-right:5px;
overflow: auto;
flex-basis: 7%;
flex-basis: 16%;
flex-grow: 0;
}
.rpgbar {
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
height: 40px;
margin-left: 10px;
}
.rpgbar em {
border-radius: 100%;
width: 40px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
background: var(--groups);
position: relative;
flex-shrink: 0;
font-size: 15px;
color: black;
}
.rpgbar m {
border-radius: 0 10px 10px 0;
background: var(--dbckg3);
flex-grow: 1;
height: 20px;
margin-left: -5px;
border: var(--border1);
}
.rpgbar.rpgvida {
margin-left: 0;
}
.rpgbar n {
background: var(--groups);
filter: brightness(0.5);
height: 100%;
display: flex;
justify-content: flex-end;
align-items: center;
box-sizing: border-box;
padding-right: 5px;
font-size: 9px;
}
.rpgbar m {
overflow: auto;
}
.rpgbar em {
z-index: 1;
}
.rpgbar n:before {content: attr(actual);color: black;font-weight: 900;}
.rpgbar.rpgvida n:before {
content: attr(actual) "/";
}
.rpgbar.rpgvida n:after {
content: attr(total);
color: black;
font-weight: 900;
}
.rpghab { flex-direction:column; }
.rpgbars { display:flex;justify-content:center;align-items:center; }
.rpgbars {
align-self: stretch;
}
.rpg.rpgprof {
margin: 20px 0;
border: var(--border1);
align-self: stretch;
padding: 5px;
display: flex;
justify-content: center;
align-items: center;
background: var(--tbckg1);
}
.rpg.rpgprof span {
flex-grow: 1;
text-align: center;
font-size: 10px;
text-transform: uppercase;
font-weight: 700;
}
.rpg.rpgprof em {
align-self: stretch;
width: 44px;
display: flex;
justify-content: center;
align-items: center;
border: var(--border1);
background: var(--tbckg1);
padding: 5px;
box-sizing: border-box;
}
.rpg.rpgprof em:before {
border-radius: 100%;
border: 1px solid var(--groups);
align-self: stretch;
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
background: var(--tbckg1);
color: var(--groups);
}
.rpg.rpgprof span strong {
margin-right: 3px;
font-weight: 900;
color: var(--groups);
}
.rpg.rpgstats {
flex-wrap: wrap;
}
.rpgstat {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
flex-grow: 1;
align-self: stretch;
flex-basis: 33%;
border: var(--border1);
margin-bottom: 20px;
}
span.gen.genhab {
flex-grow: 0;
}
span.gen.genstats {
height: 34%;
}
span.gen.genstats:last-of-type .rpgstat:nth-of-type(n+4) {
margin-bottom: 0;
}
.rpgstat {
margin-right: 20px;
flex-basis: 31%;
background: var(--tbckg1);
}
.rpgstat:nth-of-type(3n+0) {
margin-right: 0;
}
.rpgstat m {
font: 20px 'Playfair Display';
color: var(--groups);
font-weight: 900;
letter-spacing: -1px;
}
.rpgstat n {
font-weight: 900;
font-size: 10px;
margin-top: 3px;
}
span.gen.genhab {
flex-grow: 0;
}
span.gen.genstats {
height: 34%;
}
span.gen.genstats:last-of-type .rpgstat:nth-of-type(n+4) {
margin-bottom: 0;
}
.rpgstat {
margin-right: 20px;
flex-basis: 31%;
background: var(--tbckg1);
}
.rpgstat:nth-of-type(3n+0) {
margin-right: 0;
}
.rpgstat m {
font: 20px 'Playfair Display';
color: var(--groups);
font-weight: 900;
letter-spacing: -1px;
}
.rpgstat n {
font-weight: 900;
font-size: 10px;
margin-top: 3px;
}
.rpgbar em {
position: relative;
overflow: hidden;
border: 1px solid rgba(255,255,255,0.3);
box-shadow: inset 0 4px 10px rgba(0,0,0,0.4);
}
</style>
<div id="perfilsencillo">
<div class="ps1">
<div class="psbar">
<div class="psprev"><em class="far fa-angle-left"></em></div>
<div class="psbname" name="{PUSERNAME}"></div>
<div class="psnext"><em class="far fa-angle-right"></em></div>
</div>
<div class="p0">
<div name="{PUSERNAME}" class="p1 pactive" style="margin-left:0px;">
<div class="psicon"></div>
<div class="psquote"></div>
</div>
<div name="PERFIL" class="p2" style="margin-left:100%">
<div class="psfields">
<div class="psfield">
<div class="psflabel"><span>{L_LAST_VISITED}</span> :</div>
<div class="psfcontent">{LAST_VISIT_TIME}</div>
</div>
<!-- BEGIN profile_field -->
<div class="psfield">
<div class="psflabel">{profile_field.LABEL}</div>
<div class="psfcontent">{profile_field.CONTENT}</div>
</div>
<!-- END profile_field -->
</div>
<div class="ps2env">
<div class="psbanner"></div>
<div class="pslinks">
<a href="/st/{PUSERNAME}">Sujets créés</a>
<a href="/sta/{PUSERNAME}">Sujets</a>
<a href="/spa/{PUSERNAME}">Messages</a>
</div>
</div>
</div>
<div name="Descripción" class="p3" style="margin-left:100%;">
</div>
<!-- BEGIN switch_rpg -->
<div name="RPG" class="p4" style="margin-left:100%">
<!-- BEGIN rpg_fields -->
{switch_rpg.rpg_fields.F_VALUE_NEW}
<!-- END rpg_fields -->
</div>
<!-- END switch_rpg -->
</div>
<div class="pscontact">
<!-- BEGIN contact_field -->
{contact_field.CONTENT}
<!-- END contact_field -->
</div>
</div>
<div class="ps2">
<div class="psavatar">{AVATAR_IMG}</div>
<div class="psdat">
<div class="psname">{USERNAME}</div>
<div class="psrank">{POSTER_RANK}</div>
</div>
</div>
</div>
Re: Changement de la variable PUSERNAME dans le profil simple?
Bonjour,
Il s'agit bien d'une correction apportée par Forumactif pour éviter ce genre de problème :
https://forum.forumactif.com/t406046-historique-manquant-pour-un-membre-ayant-un-caractere-special-dans-son-pseudo
https://forum.forumactif.com/t380062p30-1721-aucun-message-ou-sujet-ne-correspond-a-mes-criteres-de-recherche
Il s'agit bien d'une correction apportée par Forumactif pour éviter ce genre de problème :
https://forum.forumactif.com/t406046-historique-manquant-pour-un-membre-ayant-un-caractere-special-dans-son-pseudo
https://forum.forumactif.com/t380062p30-1721-aucun-message-ou-sujet-ne-correspond-a-mes-criteres-de-recherche
Re: Changement de la variable PUSERNAME dans le profil simple?
Bonjour Oka.mi
Ah voilà qui explique! Mais il n'y a donc eu aucune annonce officielle de ce changement? Parce que ce changement de variable influence tout FA, même Foroactivo (espagnol) et Forumotion (anglais) et je serais étonnée qu'ils suivent le forum d'entraide francophone
Bref, je vais recoller mon codage suite à ce changement non négligeable... Merci!!!
Ah voilà qui explique! Mais il n'y a donc eu aucune annonce officielle de ce changement? Parce que ce changement de variable influence tout FA, même Foroactivo (espagnol) et Forumotion (anglais) et je serais étonnée qu'ils suivent le forum d'entraide francophone
Bref, je vais recoller mon codage suite à ce changement non négligeable... Merci!!!
Dernière édition par Ganthille le Jeu 4 Nov 2021 - 18:46, édité 1 fois
Re: Changement de la variable PUSERNAME dans le profil simple?
Votre remarque a été transmis.
Sujets similaires
» petit changement dans le profil
» nom de la variable "localisation" dans le profil ?
» Modification variable dans vue profil
» Récupération d'informations d'un membre précis dans le profil simple
» Changement de design dans le profil
» nom de la variable "localisation" dans le profil ?
» Modification variable dans vue profil
» Récupération d'informations d'un membre précis dans le profil simple
» Changement de design dans le profil
Forum gratuit : Le forum des forums actifs :: Entraide & Support... :: Problème avec un script, un code :: Archives des problèmes avec un code
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum