Afficher la version complète : Affichage des discussions Fond sympas pour les avatars dans le postbit
Description
Cette modification permet de mettre un fond sympa pour l'avatar dans le Postbit (legacy) pour tous les membres.
Mise à jour de ce mod pour vB4 ici: http://www.vbulletin-ressources.com/forum/showthread.php?t=12231&p=168249#post168249
Remerciements et support / Thanks and support
Je suis l'auteur de cette modification qui a été inspiré par d'autre pressente sur vbulletin-ressources.com.
vBulletin-Ressources et son équipe offrira du support vis-à-vis des hacks traduits, bien sûr, dans la mesure du possible de chacun, autant en terme de temps que de connaissances/ vBulletin-Ressources and its team will offer support for the translated hacks, of course, as far as possible for everyone, as much in term of time that knowledge.
Conception
Auteur du Hack / Author Of Hack : iBanez
Version vBulletin Requise / Version vBulletin Required : vB 3.x.x
Testé / Tested: oui
Copyright © 2008 vBulletin-Ressources.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Installation
Template à modifier :
Dans le template postbit_legacy ou le postbit selon votre style trouvez :
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap">Remplacez par ceci :
<style type="text/css">
.style_top_secret_avatar {
text-align: center;
}
</style>
<table cellpadding="" cellspacing="" width="128" style="background-image:url('home/xxxxxx/vista.png') ; height: 128px;">
<tr>
<td class="style_top_secret_avatar">
<img alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" src="$post[avatarurl]" nowrap="nowrap" style="height:92px;width:92px;border:0px" />
</td>
</tr>
</table>N'oblier de remplacez la ligne style="background-image:url('home/xxxxxx/vista.png') par le chemin ou vous avez placer l'image du fond
Je vous propose aussi un ptit fond sympa avec transparence PNG :
http://b2hteam.com/vista.png
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fin de l'install
Merci Iban pour cette modification:angel:
Merci Iban pour cette modification:angel:
Salut foudu1030, ravi de te voir sur ce forum, comme quoi le Net est petit llol
Amuse toi bien avec cette modiff, et bonne chance pour ton forumbyby
Merci pour la partage ;)
Il me semble que le code suivant éviterais la modification de l'url
<style type="text/css">
.style_top_secret_avatar {
text-align: center;
}
</style>
<table cellpadding="" cellspacing="" width="128" style="background-image:url('images/misc/vista.png') ; height: 128px;">
<tr>
<td class="style_top_secret_avatar">
<img alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" src="$post[avatarurl]" nowrap="nowrap" style="height:92px;width:92px;border:0px" />
</td>
</tr>
</table> Apres il suffit de dire au membres de placer l'image vista.png dans le dossier /images/misc/ :)
EDIT: Pour info il est préférable de dissocier le code du style, utiliser les class CSS à l'endroit prévus pour est mieux pour une meilleure compatibilité futur ;)
les pages, dégagées des balises de mise en forme, sont plus légères, donc plus rapides à circuler sur un réseau (la feuille de style est, le plus souvent, très légère et ne sera chargée qu'une seule fois pour l'ensemble des documents qui l'utilisent).
Merci Ombre pour la Correction byby
j'ai édité mon message, j'avais oublier de te précisé quelque chose, qui peu t'aider dans l'avenir ;)
kamikazcom
26/08/2008, 20h38
Merci Ibanez pour le partage ;)
JKe trouve pas la templates postbit
JKe trouve pas la templates postbit
Appuis sur les fléches, coté droit pour dérouler le menu :)
nan dsl en vin
j'ai juste tyrouvé sa
"Top_Posters_bit:"
nan dsl en vin
j'ai juste tyrouvé sa
"Top_Posters_bit:"
dans Recherche dans les templates tape Postbit ;)
c le moyen le plus rapide que j'ai trouver pour l'atteindre facilement.
Wai merci mec c'est bon je l'ai trouvé
oOo KARIM oOo
02/09/2008, 23h28
Il y une grosse erreur dans ce code, enfin indirectement :
La balise <style> se trouvera à l'intérieur de la balise <body> dans la page qui contiendra le postbit, ce qui n'est pas valide xhtml. Pour remédier à cette erreur, il vous faut ajouter le contenu de la balise style dans les définitions css suplémentaires. Ensuite mettre le code sans la balise <style>
Bonsoir,
Oui, ou tu places ton css dans le CSS principal, ou alors dans une feuille de style, vu la class, un simple <div style="align: center"> ;) ce qui est valid xhtml strict contrairement au <div align="center">... enfin il est quand meme pour différencier le style de la présentation de séparer les deux;)
Merci pour cette modif encore mais voila j'ai un mega soucis dans le code de la template "postbit_legacy".
J'ai installer la postbit_legacy de Ombre et qui est nickel a mon gout mais je voudrais bien mettre le bout de code pour ajouter un cadre a mon avatar.
voici mon postbit_legacy integral et je voudrais bien que vous me montez la bonne template postbit_legacy a installer.
$template_hook[postbit_start]
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<if condition="$show['announcement']">
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</td>
<else />
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[right]: 0px" $post[scrolltothis]>
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px" align="$stylevar[right]">
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" />
</if>
</td>
</if>
</tr>
<tr valign="top">
<td class="alt2" width="190" rowspan="2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"><center>
<div class="haut"></div>
<div class="milieu"><div id="marginpostbit">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
<if condition="$post['usertitle']"><div>$post[usertitle]</div></if>
<if condition="$post['rank']"><div>$post[rank]</div></if>
$template_hook[postbit_userinfo_left]
<if condition="$show['avatar']">
<br />
<a href="member.php?$session[sessionurl]u=$post[userid]"><center><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></center></a><br /></if>
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
$vbphrase[posts]: $post[posts]
$template_hook[postbit_userinfo_right_after_posts]
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_right]
<div><br />$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
</div></div></div>
<div class="bas"></div></center>
</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
<else />
<td class="alt1" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
</if>
$template_hook[postbit_messagearea_start]
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>
<!-- message -->
<div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]
</div>
<!-- / message -->
<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">
<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>
<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>
<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>
</div>
<!-- / attachments -->
</if>
$template_hook[postbit_signature_start]
$ad_location[ad_showthread_firstpost_sig]
<tr>
<td class="alt1" valign="bottom" height="100%"style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
$template_hook[postbit_signature_start]
<if condition="$post['signature']">
<!-- sig -->
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<div valign="bottom">
$post[signature]
</div>
<!-- / sig -->
</if>
$template_hook[postbit_signature_end]
<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont">
<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
<em>
<if condition="$show['postedithistory']">
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>.
<else />
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
</if>
<if condition="$post['edit_reason']">
$vbphrase[reason]: $post[edit_reason]
</if>
</em>
</div>
<!-- / edit note -->
</if>
</td>
</tr>
<tr>
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
$post[onlinestatus]
<if condition="$show['reputationlink']">
<span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
</if>
<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
$post[iplogged]
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
<else />
<td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
</if>
<!-- controls -->
<if condition="$post['editlink']">
<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['multiquote_post']">
<a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<if condition="$show['spam']">
<img src="$stylevar[imgdir_misc]/spam_detected.png" alt="$vbphrase[spam_post]" border="0" />
</if>
<if condition="$show['deletedpost']">
<if condition="$show['managepost']">
<a href="postings.php?$session[sessionurl]do=managepost&p=$post[postid]"><img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[manage]" border="0" /></a>
<else />
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
$template_hook[postbit_controls]
<!-- / controls -->
</td>
</tr>
</table>
$template_hook[postbit_end]
<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
</if>
$template_hook[postbit_user_popup]
</table>
</div>
<!-- / post $post[postid] popup menu -->
On demande de trouver ceci
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
et remplacer par
<table cellpadding="" cellspacing="" width="128" style="background-image:url('home/xxxxxx/vista.png') ; height: 128px;">
<tr>
<td class="style_top_secret_avatar">
<img alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" src="$post[avatarurl]" nowrap="nowrap" style="height:92px;width:92px;border:0px" />
</td>
</tr>
</table> Mais je trouve pas cela. La partie css a ete mise dans le css complementaire.
<if condition="$show['avatar']">
<br />
<a href="member.php?$session[sessionurl]u=$post[userid]"><center><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></center></a><br /></if> Voici le code a trouver dans ton postbit modifié, mais je ne sais pas si ça va le faire, deux background sur le meme emplacement je ne suis pas sure du résultat.
Par contre je le répéterais jamais assez, on ne mélange pas du CSS à la mise en page, la feuille de style doit etre séparer, ou alors ajouter dans le CSS principal, et non pas comme dans ce cas mis dans le template directement.
Merci ca marche et j'ai suivi ton conseil depuis le debut le css dans la partie css supplementaire.
me reste a modivier les dimension mais la c'est a moi de voir cela car tu sais que mon cadre est limite. lol
par contre petit soucis de centrage, c'est legerement decaller vers la gauche et j'ai dans mon css supplementaire mis ceci
.style_top_secret_avatar {
text-align: center;
}
Oui peut etre du au postbit que j'ai fait qui n'est pas prévus pour cet ajout, mais rien de bien sorcier, tu devrais trouver, sinon je verrais de mon coté :)
voila mon blem de centrage
http://img296.imageshack.us/img296/1998/helpxw7.th.gif
Un screen plus petit ça serait encore mieux :D
je regarderais ça demain sinon envois moi un axx en mp, ça sera plus simple :)
Voila je t'ai envoye un MP pour mon blem
Bonjour je suis intéresser par cette modifications mes je ne trouve pas la parti demander sur mes deux skin
parti demander :
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap">
mon : postbit_legacy
$template_hook[postbit_start]
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<if condition="$show['announcement']">
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</td>
<else />
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[right]: 0px" $post[scrolltothis]>
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px" align="$stylevar[right]">
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" />
</if>
</td>
</if>
</tr>
<tr valign="top">
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$template_hook[postbit_userinfo_left]
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
<div class="smallfont">
<br />
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
$template_hook[postbit_userinfo_right_after_posts]
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_right]
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>
</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
<else />
<td class="alt1" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
</if>
$template_hook[postbit_messagearea_start]
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>
<!-- message -->
<div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]
</div>
<!-- / message -->
<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">
<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>
<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>
<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>
</div>
<!-- / attachments -->
</if>
$template_hook[postbit_signature_start]
$ad_location[ad_showthread_firstpost_sig]
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
$template_hook[postbit_signature_end]
<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont">
<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
<em>
<if condition="$show['postedithistory']">
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>
<else />
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>
</if>
<if condition="$post['edit_reason']">
$vbphrase[reason]: $post[edit_reason]
</if>
</em>
</div>
<!-- / edit note -->
</if>
</td>
</tr>
<tr>
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
$post[onlinestatus]
<if condition="$show['reputationlink']">
<span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
</if>
<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
$post[iplogged]
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
<else />
<td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
</if>
<!-- controls -->
<if condition="$post['editlink']">
<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['multiquote_post']">
<a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<if condition="$show['spam']">
<img src="$stylevar[imgdir_misc]/spam_detected.png" alt="$vbphrase[spam_post]" border="0" />
</if>
<if condition="$show['deletedpost']">
<if condition="$show['managepost']">
<a href="postings.php?$session[sessionurl]do=managepost&p=$post[postid]"><img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[manage]" border="0" /></a>
<else />
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
$template_hook[postbit_controls]
<!-- / controls -->
</td>
</tr>
</table>
$template_hook[postbit_end]
<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
</if>
$template_hook[postbit_user_popup]
</table>
</div>
<!-- / post $post[postid] popup menu -->
merci de m'aider a réaliser cette modif ;)
Bonsoir,
voici le code à remplacer dans ton template:
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
merci j'ai tester cher moi, ça marche seulement sur les no-avatar et mieux sur le skin par défaut que sur mon skin ajouter alors que c'est lui que j'ai modifier et non l'autre dommage .
je trouve postbit.jpg assez cool aussi qu'elle est la procédure pour le placer svp je souhaite tester ?
Bonsoir, désolé je fini un mod, et je regarderais ce qui ne vas pas , tu as une capture qui pourrait m'aider ? et quel style utilises tu exactement, le lien.
prend ton temps ;)
j'utilise OceanZero [vB3.7.5]
pour les avatard j'autorise
Largeur maximale d'un avatar personnalisé (pixels) 130
Hauteur maximale d'un avatar personnalisé (pixels) 130
sur OceanZero je vois pas le cadre mes les petit avatar de mes membres son trop zoomer .
prend ton temps ;)
j'utilise OceanZero [vB3.7.5]
pour les avatard j'autorise
Largeur maximale d'un avatar personnalisé (pixels) 130
Hauteur maximale d'un avatar personnalisé (pixels) 130
sur OceanZero je vois pas le cadre mes les petit avatar de mes membres son trop zoomer .
Avec ce fond tu ne peux pas utiliser les largeur d'avatar que tu cites, elles seront automatiquement redimensionnées, essaye cela, dans le template postbit, ou postbit_legacy, recherche le bout de code suivant:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap"> et remplace le par ceci:
<if condition="$show['avatar']"><td class="alt2">
<div style="background-image:url($stylevar[imgdir_misc]/vista.png); width:128px; height:128px;"><div style="position:absolute; width:92px; height:92px; margin: 18px 0px 0px 18px;"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" width="92px" height="92px" /></a>
</div></div></td></if>Peu importe ce que tu mettras comme avatar il sera redimensionner en 92x92.
puis upload l'image de fond vista.png dans le dossier misc du style que tu utilises.
Si tu désires utiliser une autre image de fond (background) alors changes les valeur des width et heigth, de la première div, et fait de même pour la deuxième div pour redimensionner l'avatar qui doit apparaitre au centre du fond, mais il te faudra aussi modifier les valeurs de margin.
Le code donné par Ibanez dans son topic, à des petits défauts, il n'est pas conforme aux normes w3c car il utilise un style au mauvais endroits, et le code de remplacement n'est pas correct, on ne remplace pas deux balise TD par un tableau, ce qui va déformer tout le reste du postbit. j'ai rajouté le lien sur l'avatar utile pour les habitués :)
Si besoin est il suffiras de nous donner le fond à changer pour qu'on adapte le code en conséquence.
Capture du résultat avec ce code et les dimensions données:
En pj...
HICHEM TIGS
11/06/2009, 05h18
voila mon blem de centrage
http://img296.imageshack.us/img296/1998/helpxw7.th.gif
Et c'étais quoi la modification qui a résolu ce problème?
Bonjour, essaye ceci:
<table cellpadding="" cellspacing="" width="128" align="center" style="background-image:url('home/xxxxxx/vista.png') ; height: 128px;">
<tr>
<td class="style_top_secret_avatar">
<img alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" src="$post[avatarurl]" nowrap="nowrap" style="height:92px;width:92px;border:0px" />
</td>
</tr>
</table> Par contre je me demande pourquoi le background ce trouve dans la balise table et non pas dans la balise td ... ne place pas le style css dans le template mais dans le Css principale tout en bas, c'est préférable.
Tiens d'ailleurs voici la correction de ce mod, je pense qu'elle est nécessaire:
placez les class suivantes dans votre administration >> Styles & Templates >> Gestionnaire de styles >> Css principal >> Définitions des CSS supplémentaires >> puis dans la seconde fenêtre placez ceci:
.style_top_secret_avatar{
text-align:center;
background-image:url(images/misc/vista.png);
widht:92px;
height:92px;
border:none;
}Puis remplacez ceci dans le template postbit(_legacy):
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap"> par ceci:
<table cellpadding="0" cellspacing="0" width="128" height="128" align="center">
<tr>
<td class="style_top_secret_avatar">
<img src="$post[avatarurl]" nowrap="nowrap" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" />
</td>
</tr>
</table> J'ai pas tester, mais le code est déjà plus propre que l'original, en cas de soucis prévenez moi.
HICHEM TIGS
11/06/2009, 17h56
Bonjour, essaye ceci:
<table cellpadding="" cellspacing="" width="128" align="center" style="background-image:url('home/xxxxxx/vista.png') ; height: 128px;">
<tr>
<td class="style_top_secret_avatar">
<img alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" src="$post[avatarurl]" nowrap="nowrap" style="height:92px;width:92px;border:0px" />
</td>
</tr>
</table> Par contre je me demande pourquoi le background ce trouve dans la balise table et non pas dans la balise td ... ne place pas le style css dans le template mais dans le Css principale tout en bas, c'est préférable.
Tiens d'ailleurs voici la correction de ce mod, je pense qu'elle est nécessaire:
placez les class suivantes dans votre administration >> Styles & Templates >> Gestionnaire de styles >> Css principal >> Définitions des CSS supplémentaires >> puis dans la seconde fenêtre placez ceci:
.style_top_secret_avatar{
text-align:center;
background-image:url(images/misc/vista.png);
widht:92px;
height:92px;
border:none;
}Puis remplacez ceci dans le template postbit(_legacy):
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap"> par ceci:
<table cellpadding="0" cellspacing="0" width="128" height="128px;" align="center">
<tr>
<td class="style_top_secret_avatar">
<img src="$post[avatarurl]" nowrap="nowrap" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" />
</td>
</tr>
</table> J'ai pas tester, mais le code est déjà plus propre que l'original, en cas de soucis prévenez moi.
Merci a toi Ombre voila les résultats après avoir suivi ta manipulation.
Sur mon forum test la modification fonctionne a 100% (Nikel). (Capture no1).
Par contre sur mon forum officiel la modification ne fonctionne pas ya le fond vista qui se répète 4 fois. (Capture no2).
Normalement ça ne devrait pas si tu as limiter la taille maxi des avatar, et si tu n'as pas modifier les dimensions de la class css, sinon pour évité la réptition ajoutes comme class un no-repeat:
.style_top_secret_avatar{
text-align:center;
background-image:url(images/misc/vista.png);
background-repeat:no-repeat;
widht:92px;
height:92px;
border:none;
}
HICHEM TIGS
11/06/2009, 19h49
Normalement ça ne devrait pas si tu as limiter la taille maxi des avatar, et si tu n'as pas modifier les dimensions de la class css, sinon pour évité la réptition ajoutes comme class un no-repeat:
.style_top_secret_avatar{
text-align:center;
background-image:url(images/misc/vista.png);
background-repeat:no-repeat;
widht:92px;
height:92px;
border:none;
}
J'arrive pas, voila je te file un axx temporaire en MP.
Merci...
J'arrive pas, voila je te file un axx temporaire en MP.
Merci...Répondu en mp, l'erreur est du aussi à l'image que tu utilises pour le background, elle est pas de la même taille que celle proposé sur ce mod.
HICHEM TIGS
14/06/2009, 18h07
Répondu en mp, l'erreur est du aussi à l'image que tu utilises pour le background, elle est pas de la même taille que celle proposé sur ce mod.
Il es beau mon postbit_legacy ah?
http://img25.imageshack.us/img25/907/screenshot034u.png
C'est grâce au grand chef Ombre, dont je le remercie énormément. :yahoo:
Mise à jour de ce mod pour vb4
Installation
Dans le template additional.css, ajoutez ceci:
.postbitlegacy .userinfo .postuseravatar, .eventbit .userinfo .eventuseravatar {
float: none;
margin:auto;
background: transparent url({vb:stylevar imgdir_misc}/vista.png) no-repeat left top;
width: 128px;
height: 128px;
}
.postbitlegacy .userinfo .postuseravatar img, .eventbit userinfo .eventuseravatar img {
width: 90px;
height: 90px;
margin-top: 18px;
margin-left: 19px;
}
Uploadez l'image en PJ dans le dossier misc du style utilisé.
Capture
15683
petit bug l'image n'apparait pas dans le cadre mais un peux a gauche :)
Tu utilises le style par défaut? sinon tu as une capture ou un lien que je regarde ça?
Je viens de corrigé le soucis.
Bonjour Ombre pourrais tu directement ajouter le code dans mon psotbit que j'aille directement à copier coller car je n'arrive vraiment pas :( ! :
{vb:raw template_hook.postbit_start}
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<!-- see bottom of postbit.css for .userinfo .popupmenu styles -->
<div class="posthead">
<vb:if condition="$show['inlinemod']"><label for="post_imod_checkbox_{vb:raw post.postid}"></vb:if>
<span class="postdate {vb:raw post.statusicon}">
<vb:if condition="$show['announcement']">
<span class="date">{vb:rawphrase x_until_y, {vb:raw post.startdate}, {vb:raw post.enddate}}</span>
<vb:else />
<span class="date">{vb:raw post.postdate}<vb:if condition="!$show['detailedtime']"> <span class="time">{vb:raw post.posttime}</span></vb:if></span>
</vb:if>
</span>
<span class="nodecontrols">
<vb:if condition="$post['postid'] AND $post['threadid'] AND !$show['moderated']">
<a name="post{vb:raw post.postid}" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}" class="<vb:if condition="$show['inlinemod']">ie</vb:if>postcounter">#{vb:raw post.postcount}</a><a id="postcount{vb:raw post.postid}" name="{vb:raw post.postcount}"></a>
</vb:if>
<vb:if condition="$show['moderated']">{vb:rawphrase moderated_post}</vb:if>
<vb:if condition="$show['inlinemod']">
<input class="postimod" type="checkbox" id="post_imod_checkbox_{vb:raw post.postid}" name="plist[{vb:raw post.postid}]" value="{vb:raw post.checkbox_value}" />
</vb:if>
</span>
<vb:if condition="$show['inlinemod']"></label></vb:if>
</div>
<div class="postdetails">
<div class="userinfo">
<br />
<!-- identité -->
<div class="element">
<div class="haut_titrage"><div class="titre">Identité</div></div>
<div class="milieu">
<div class="username_container">
<vb:if condition="$post['userid']">
{vb:raw memberaction_dropdown}
<vb:else />
<span class="username guest">{vb:raw post.musername}</span>
</vb:if>
</div>
<span class="usertitle">
{vb:raw post.usertitle}
</span>
<vb:if condition="$post['rank']">
<span class="rank">{vb:raw post.rank}</span>
</vb:if>
{vb:raw template_hook.postbit_userinfo_left}
<vb:if condition="$show['avatar']">
<div class="smallfont">
<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}"><img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" /></a>
</div>
</vb:if>
<div class="spacer1"></div>
{vb:raw post.onlinestatus}</div>
<div class="bas">
</div></div>
<!-- / identité end -->
<div class="spacer1"></div>
<!-- informations -->
<div class="element">
<div class="haut_titrage"><div class="titre">Informations</div></div>
<div class="milieu">
<div class="centrage"><div class="informations_centrage">
<vb:if condition="$post['joindate']">
<div class="spacer1"></div>
<div class="curved"><strong> {vb:rawphrase join_date}:</strong> {vb:raw post.joindate}</div></vb:if>
<vb:if condition="$post['field2']">
<div class="spacer1"></div>
<div class="curved"><strong> {vb:rawphrase location_perm}:</strong> {vb:raw post.field2}</div></vb:if>
<vb:if condition="$post['age']">
<div class="spacer1"></div>
<div class="curved"><strong> {vb:rawphrase age}:</strong> {vb:raw post.age}</div></vb:if>
<div class="spacer1"></div>
<div class="curved"><strong> {vb:rawphrase 'posts'}:</strong> {vb:raw post.posts}</div>
<vb:if condition="$show['infraction'] OR $show['reppower']">
<vb:if condition="$show['infraction']">
<div class="spacer1"></div>
<div class="curved">{vb:rawphrase infractions}: {vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</div></vb:if>
<vb:if condition="$show['reputation']"><vb:if condition="$show['reppower']">
<div class="spacer1"></div>
<div class="curved">{vb:rawphrase reppower}: <span id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</span> <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span></div></vb:if></vb:if></vb:if>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
</div></div></div>
<div class="bas">
</div></div>
<!-- / informations end -->
<vb:if condition="$show['hasimicons']">
<div class="spacer1"></div>
<!-- communication -->
<div class="element">
<div class="haut_titrage"><div class="titre">Communication</div></div>
<div class="milieu"><div class="centrage">
<div class="spacer1"></div>
{vb:raw template_hook.postbit_userinfo_right}
<div>{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}</div></div>
</div>
<div class="bas">
</div></div>
<!-- / communication end -->
</vb:if>
</div>
<div class="postbody">
<div class="postrow<vb:if condition="$show['postedited'] || $post['signature']"> has_after_content</vb:if>">
{vb:raw template_hook.postbit_messagearea_start}
<vb:if condition="$post['title'] OR $show['messageicon']">
<h2 class="title icon">
<vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
</h2>
</vb:if>
<vb:if condition="$post['isfirstshown']">
{vb:raw ad_location.ad_showthread_firstpost_start}
{vb:raw ad_location.thread_first_post_content}
</vb:if>
<vb:if condition="$post['islastshown']">
{vb:raw ad_location.thread_last_post_content}
</vb:if>
<div class="content<vb:if condition="$show['first_ad'] OR $show['last_ad']"> hasad</vb:if>">
<div id="post_message_{vb:raw post.postid}">
<blockquote class="postcontent restore ">
{vb:raw post.message}
</blockquote>
</div>
<vb:if condition="$show['attachments']">
<div class="attachments">
<vb:if condition="$show['thumbnailattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_thumbnails}" /> {vb:rawphrase attached_thumbnails}</legend>
{vb:raw post.thumbnailattachments}
</fieldset>
</vb:if>
<vb:if condition="$show['imageattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_images}</legend>
{vb:raw post.imageattachments}
</fieldset>
</vb:if>
<vb:if condition="$show['imageattachmentlink']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_images}</legend>
<ul>
{vb:raw post.imageattachmentlinks}
</ul>
</fieldset>
</vb:if>
<vb:if condition="$show['otherattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_files}</legend>
<ul>
{vb:raw post.otherattachments}
</ul>
</fieldset>
</vb:if>
<vb:if condition="$show['moderatedattachment']">
<fieldset class="postcontent">
<legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attachments_pending_approval}</legend>
<ul>
{vb:raw post.moderatedattachments}
</ul>
</fieldset>
</vb:if>
</div>
<!-- / attachments -->
</vb:if>
</div>
</div>
<vb:if condition="$show['postedited'] || $post['signature']">
<div class="after_content">
<vb:if condition="$show['postedited']">
<!-- edit note -->
<blockquote class="postcontent lastedited">
<!-- <img src="{vb:stylevar imgdir_button}/edit_40b.png" class="inlineimg" alt="" /> -->
<vb:if condition="$show['postedithistory']">
{vb:rawphrase last_edited_link_by_x_on_y_at_z_postid, {vb:raw post.edit_username}, {vb:raw post.edit_date},
{vb:raw post.edit_time}, {vb:raw post.historyurl}}
<vb:else />
{vb:rawphrase last_edited_by_x_on_y_at_z, {vb:raw post.edit_username}, {vb:raw post.edit_date}, {vb:raw post.edit_time}}
</vb:if>
<vb:if condition="$post['edit_reason']">
<span class="reason">{vb:rawphrase reason}:</span> {vb:raw post.edit_reason}
</vb:if>
</blockquote>
<!-- / edit note -->
</vb:if>
{vb:raw template_hook.postbit_signature_start}
{vb:raw ad_location.ad_showthread_firstpost_sig}
<vb:if condition="$post['signature']">
<blockquote class="signature restore"><div class="signaturecontainer">{vb:raw post.signature}</div></blockquote>
</vb:if>
{vb:raw template_hook.postbit_signature_end}
</div>
</vb:if>
<div class="cleardiv"></div>
</div>
</div>
<div class="postfoot">
<!-- <div class="postfoot_container"> -->
<div class="textcontrols floatcontainer">
<span class="postcontrols">
<img style="display:none" id="progress_{vb:raw post.postid}" src="{vb:stylevar imgdir_misc}/progress.gif" alt="{vb:rawphrase loading_editor_please_wait}" />
<vb:if condition="$post['editlink']">
<a class="editpost" href="{vb:raw post.editlink}" name="vB::QuickEdit::{vb:raw post.postid}"><img src="{vb:raw vboptions.cleargifurl}" id="editimg_{vb:raw post.postid}" alt="{vb:rawphrase edit_delete_message}" /> {vb:rawphrase edit_post}</a>
<span class="seperator"> </span>
</vb:if>
<vb:if condition="$show['quickreply'] AND !$show['threadedmode']">
<a id="qr_{vb:raw post.postid}" class='quickreply' href="{vb:raw post.replylink}" rel="nofollow"><img id="replyimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase quick_reply_to_this_message}" /> {vb:rawphrase reply}</a>
<span class="seperator"> </span>
</vb:if>
<vb:if condition="$post['replylink']">
<a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" /> <vb:if condition="$post['forwardlink']">{vb:rawphrase reply_to_private_message}<vb:else />{vb:rawphrase reply_with_quote}</vb:if></a>
<vb:if condition="$show['multiquote_post']"><span class="seperator"> </span></vb:if>
</vb:if>
<vb:if condition="$show['multiquote_post']">
<a class="multiquote" href="{vb:raw post.replylink}" rel="nofollow" onclick="return false;" id="mq_{vb:raw post.postid}"><img id="mq_image_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase multi_quote_this_message}" /> </a>
</vb:if>
</span>
<span class="postlinking">
<vb:if condition="!$post['forwardlink'] && THIS_SCRIPT != 'usernote' && THIS_SCRIPT != 'announcement'">
<vb:if condition="$promote_sectionid AND $promote_sectionid != -1">
<a href="{vb:raw promote_url}" class="promotecms">{vb:rawphrase promote_to_article}</a>
<span class="seperator"> </span>
</vb:if>
</vb:if>
{vb:raw template_hook.postbit_controls}
{vb:raw post.iplogged}
<vb:if condition="$post['forwardlink']">
<a class="forwardpost" href="{vb:raw post.forwardlink}" rel="nofollow"><img src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase forward_message}" /> {vb:rawphrase forward}</a>
<vb:if condition="$show['reputationlink'] OR $show['infractionlink'] OR $show['moderated'] OR $show['spam'] OR $show['deletedpost'] OR $show['redcard'] OR $show['yellowcard']"><span class="seperator"> </span></vb:if>
</vb:if>
<vb:if condition="$show['reputationlink']">
<span class="reputationpopupmenu popupmenu popupcustom" title="{vb:raw post.postid}"><a class="popupctrl reputation" title="{vb:rawphrase reputation}" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&p={vb:raw post.postid}" rel="nofollow" id="reputation_{vb:raw post.postid}"><!--<img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase reputation}" /> --> </a></span>
</vb:if>
<vb:if condition="$show['infractionlink']">
<a class="infraction" href="infraction.php?{vb:raw session.sessionurl}do=report&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase add_infraction_for_x, {vb:raw post.username}}"><!-- <img src="{vb:stylevar imgdir_button}/add-infraction_sm.png" alt="{vb:rawphrase add_infraction_for_x, {vb:raw post.username}}" /> --> </a>
</vb:if>
<vb:if condition="$show['reportlink']">
<a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> --> </a>
</vb:if>
<vb:if condition="$show['moderated']">
<img class="moderated" src="{vb:stylevar imgdir_misc}/moderated_sm.png" alt="{vb:rawphrase moderated_post}" />
</vb:if>
<vb:if condition="$show['spam']">
<img class="spam" src="{vb:stylevar imgdir_misc}/spam_detected.png" alt="{vb:rawphrase spam_post}" />
</vb:if>
<vb:if condition="$show['deletedpost']">
<vb:if condition="$show['managepost']">
<a class="deleted" href="postings.php?{vb:raw session.sessionurl}do=managepost&p={vb:raw post.postid}" title="{vb:rawphrase manage}"><!-- <img src="{vb:stylevar imgdir_misc}/deleted_sm.png" alt="{vb:rawphrase manage}" /> --> </a>
<vb:else />
<img class="deleted_nolink" class="inlineimage" src="{vb:stylevar imgdir_misc}/deleted_sm.png" alt="{vb:rawphrase deleted_post}" />
</vb:if>
</vb:if>
<vb:if condition="$show['redcard']">
<a class="redcard" href="infraction.php?{vb:raw session.sessionurl}do=view&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase received_infraction}"><!-- <img src="{vb:stylevar imgdir_button}/red-card_sm.png" alt="{vb:rawphrase received_infraction}" /> --> </a>
<vb:elseif condition="$show['yellowcard']" />
<a class="yellowcard" href="infraction.php?{vb:raw session.sessionurl}do=view&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase received_warning}"><!--<img src="{vb:stylevar imgdir_button}/yellow-card_sm.png" alt="{vb:rawphrase received_warning}" /> --> </a>
</vb:if>
</span>
<!-- </div> -->
</div>
</div>
<hr />
</li>
{vb:raw template_hook.postbit_end}
Bonsoir,
Ce mod n'a plus lieu d'être sous vb4, si tu tiens à mettre un fond sur tout les avatar, du CSS suffit, essaye ceci:
Dans le template additional.css ajoute ceci à la fin:
.postbitlegacy .userinfo .postuseravatar, .eventbit .userinfo .eventuseravatar {
float: none;
margin:auto;
background: transparent url({vb:stylevar imgdir_misc}/vista.png) no-repeat left top;
width: 128px;
height: 128px;
}
.postbitlegacy .userinfo .postuseravatar img, .eventbit userinfo .eventuseravatar img {
width: 90px;
height: 90px;
margin-top: 18px;
margin-left: 19px;
}
.postbitlegacy .userinfo .rank, .postbitlegacy .userinfo .usertitle {
display: none;
}
Pense à mettre l'image vista.png dans le dossier misc de ton style.
Je ne l'ai pas tester, mais ça devrait fonctionner, si après il y a un ajustement à faire préviens moi.
Merci ombre je test sa desuite :yahoo:
Edit :
Sa marche http://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gifhttp://www.vbulletin-ressources.com/forum/images/smilies/yahoo.gif
Merci Ombre !
De rien, bonne continuation.
Propulsé par vBulletin™ Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. Tous droits réservés - Version française par vBulletin-Ressources.com