PDA

Afficher la version complète : Affichage des discussions Avatar par défaut



Allan
14/12/2009, 22h23
Ce mod permet d'afficher un avatar par défaut pour ceux qui n'en n'ont pas
Remerciements


Ce Hack a été traduit en français pour vBulletin-Ressources avec l'autorisation explicite de son auteur. / This Hack was translated into French for vBulletin-Ressources with the explicit authorization of its author.



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.



vBulletin-Ressources remercie l'auteur du hack pour avoir fourni son autorisation. / vBulletin-Ressources thanks the author for the hack to have provided its authorization.

Conception


Auteur du mod : Allan
Version du mod : 1.0
Version vBulletin Requise / Version vBulletin Required : vB 4.0.1
Testé / Tested: oui sur 4.0.1




Copyright © 2006-2009 vBulletin-Ressources.com - Tous droits réservés Uniquement pour nos traductions / Copyright © 2006-2009 vBulletin-Ressources.com - All Rights Reserved Only for ours translations


Installation


Dans le template "postbit", trouver:



<vb:if condition="$show['avatar']">
<a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<vb:if condition="$post.avatarurl">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
<vb:else />
<img src="{vb:stylevar imgdir_misc}/unknown.gif" />
</vb:if>
</a>
</vb:if>


Remplacer par:



<vb:if condition="$show['avatar']">
<a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<vb:if condition="$post.avatarurl">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />

</vb:if>
</a>
<vb:else />
<img align="left" src="{vb:stylevar imgdir_misc}/avatar.png" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</vb:if>


Dans le template "postbit_legacy", trouver:


<vb:if condition="$show['avatar']">
<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}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>


Remplacer par:



<vb:if condition="$show['avatar']">
<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}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
<vb:else />
<br />
<img align="left" src="{vb:stylevar imgdir_misc}/avatar.png" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />

</vb:if>

PS: L'avatar est déjà présent dans le pack d'images ;)

En fait, IB a bien prévu un avatar par défaut, mais le code actuel n'est pas fonctionnel, ha bravo ^^

Ombre
14/12/2009, 22h35
Bonsoir, merci pour ce HACK allan :D

Spider-Man
14/12/2009, 22h38
Bonjour allan et merci pour cette modif :)

kevin2008
19/01/2010, 00h07
Apparement ne marche plus sur 4.0.1

Ombre
19/01/2010, 00h11
Bonsoir, Allan va probablement dés qu'il à le temps corrigé cela si nécessaire.

kevin2008
19/01/2010, 00h16
pas de soucis merci à vous.

Allan
19/01/2010, 01h28
Apparement ne marche plus sur 4.0.1
Testé sur 4.0.1 et fonctionne très bien :)

kevin2008
19/01/2010, 01h31
Ben zut alors !!! Pas moyen pour moi... l'upgrade de 4.0.0 aurait foiré ??? V'la tout ré-installé et toujours rien, v'la tout ...

Allan
19/01/2010, 01h33
Ben zut alors !!! Pas moyen pour moi... l'upgrade de 4.0.0 aurait foiré ??? V'la tout ré-installé et toujours rien, v'la tout ...
Recréer un style par défaut et test dessus.

Tu a bien uploader l'image unknown.gif dans le dossier misc ?

kevin2008
19/01/2010, 01h44
oui oui pour l'image, j'ai bien vérifié, je l'avait remplacée, j'ai remis celle d'origine pour tester, tu as raison je vais essayer ça

floopy
20/01/2010, 23h57
Merci mais j'ai renconctré un problème :
Lorsque je remplace le code :
une erreur apparait !
° invalid_tag_nesting

Ombre
21/01/2010, 01h16
Merci mais j'ai renconctré un problème :
Lorsque je remplace le code :
une erreur apparait !
° invalid_tag_nesting
Bonsoir,


Je viens de vérifié les conditions, il ne manque rien, tu dois mal faire la modification.

o0amir0o
21/01/2010, 19h39
Bonsoir

Voila le message apres la modification :



Message vBulletin

invalid_tag_nesting

Ombre
21/01/2010, 19h40
Je vais tester ça :)

Ombre
21/01/2010, 19h51
Il n'y à pas d'erreur avec ce mod, vous avez mal suivi les infos pour la modification.

Le code est mis à jour pour vb 4.0.1

samy
26/01/2010, 16h13
Euh j'ai la même erreur que floopy, je suis sous vb 4.0.0... Je pense avoir fait comme il faut pourtant :s

J'ai remarqué aussi que le code à changer n'est pas le même :


<vb:if condition="$show['avatar']">
<a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<vb:if condition="$post.avatarurl">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
<vb:else />
<img src="{vb:stylevar imgdir_misc}/unknown.gif" />
</vb:if>
</a>
</vb:if>

Alors que celui d'allan est :


<vb:if condition="$show['avatar']">
<a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}">
<vb:if condition="$post.avatarurl">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
<vb:else />
<img src="{vb:stylevar imgdir_misc}/unknown.gif" />
</vb:if>
</a>
</vb:if>

naja
26/01/2010, 20h19
salut bon moi j'ai constaté la même chose que samy
et quand je fais la modif j'ai pas de message d'erreur et j'ai pas l'avatar par défaut
pourtant l'image est bien dans \images\misc\unknown.gif

Ombre
26/01/2010, 22h31
salut bon moi j'ai constaté la même chose que samy
et quand je fais la modif j'ai pas de message d'erreur et j'ai pas l'avatar par défaut
pourtant l'image est bien dans \images\misc\unknown.gif




Euh j'ai la même erreur que floopy, je suis sous vb 4.0.0... Je pense avoir fait comme il faut pourtant :s

J'ai remarqué aussi que le code à changer n'est pas le même :



Alors que celui d'allan est :



Bonsoir, je pense que tu te trompes, le code proposé par Allan n'est pas celui que tu précises, surtout que celui d'origine contient une erreur visible à l'œil nu.

L'erreur est probablement un conflit avec un de vos hack, car j'ai tester le mod il y à peu de temps et il n'engendre aucunes erreur de ce style.

Vous utilisez quelles version de vb?

samy
27/01/2010, 14h50
Bonjour,

Version vb4.0... Je vais paraître ridicule, mais en fait j'avais oublié de viré le dernier " </vb:if> " :s :s :s du coup plus d'erreur, mais l'avatar n'est pas présent dans les posts... J'ai mis à jour les miniatures d'avatars, rien ne change... J'ai que 3 mods sur le forum : "ajax stats", "séparer les sujets importants des sujets normaux" et "qui a visité le forum aujourd'hui".

Bizarre quand même !

@++

Ombre
27/01/2010, 19h28
Version 4.0.... cela ne me donne pas assez d'info, c'ets la 4.0.0 ou 4.0.1, enfin l'erreur ets corrigé, quand tu dis que rien ne change? c'est que les avatar sur les membres qui en ont n'apparaissent pas? ou l'avatar par défaut n'apparait pas pour les membres qui en on pas apparaissent pas?

samy
28/01/2010, 00h39
Version 4.0.... cela ne me donne pas assez d'info, c'ets la 4.0.0 ou 4.0.1, enfin l'erreur ets corrigé, quand tu dis que rien ne change? c'est que les avatar sur les membres qui en ont n'apparaissent pas? ou l'avatar par défaut n'apparait pas pour les membres qui en on pas apparaissent pas?

J'ai la version 4.0.0. L'erreur corrigée est celle ci "° invalid_tag_nesting" qui apparaissait lorsqu'on voulait save le template.
Maintenant je peux enregistrer le template sans aucune erreur mais l'avatar par défaut n'apparaît pas pour les membres qui en on pas.... :swoon1:

L'image est bien dans le bon répertoire également ! :delicious:

Voilà voilà...

samy
30/01/2010, 12h38
okay j ai trouvé mon probleme j ai juste modifié unknown.png en unknown.gif mon probleme resolu des fois c est tout bete arff merci a tous de votre aide

francky05
30/01/2010, 18h10
mince, je suis en postbit_legacy ...ca correspond pas...........

****edit****
c'est bon, ça marche...merci

Allan
30/01/2010, 20h17
Mise à jour du code et ajout pour le version "postbit_legacy".

toutgratos
09/03/2010, 12h25
salut a vous tous mon avatar par défaut n'est pas centré merci a vous

Elison
09/03/2010, 12h39
Dans le cas de ta modif, il faudrait essayer ceci:

trouve:


<img align="left" src="{vb:stylevar imgdir_misc}/avatar.png" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />

Remplace: "left" par "center"


<img align="center" src="{vb:stylevar imgdir_misc}/avatar.png" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />

Lo'
09/03/2010, 13h17
Merci Allan je ne l'avais pas vu cette modification.

Elisson, c'est bon je l'ai testé avec ton code "Center" est plus approprié. :delicious:

toutgratos
09/03/2010, 20h15
merci ca fonctionne impec

Zephyr
29/03/2010, 12h51
Up MAJ pour posbit legacy 2 svp ?

http://roxor.free-h.net/UPLOAD_BY_ZEPHYR/2010-03-29_115048.png

Note : j'ai mis "center" et l'avatar par defaut n'est ni centrer, ni à la bonne positions, et ni encadré alors que ceux qui ont un avatar perso on tout comme il faut.

Ombre
29/03/2010, 18h06
Bonjour, je vais regarder ça, mais je te répondrais comme je te l'ai dis dans le sujet du mod :)

Zephyr
29/03/2010, 20h52
Ok, merci Ombre :)

Ombre
29/03/2010, 20h55
Voila c'est fais :p

Fabien
01/04/2010, 23h32
Bonsoir,

Merci pour cette mod, cependant j'ai un soucis, je ne vois pas ou effectuer la modification dans mon legacy qui est un peu modifié, si vous pouviez me dire comment placer votre adaptation ça serai sympa :)

Voici mon legacy :


{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">
<label for="post_imod_checkbox_{vb:raw post.postid}">
<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']">&nbsp;<span class="time">{vb:raw post.posttime}</span></vb:if></span>
</vb:if>
</span>
</label>
<span class="nodecontrols">
<vb:if condition="$post['postid'] AND $post['threadid']">
<a name="post{vb:raw post.postid}" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}" class="postcounter">#{vb:raw post.postcount}</a>
</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>
</div>
<div class="postdetails">
<div class="userinfo">
<div class="username_container">

<vb:if condition="$post['userid']">
<div class="eti_postbit_merkezli">

{vb:raw memberaction_dropdown}

<vb:else />

<br />

{vb:raw post.musername}

</vb:if>
</div></div>





{vb:raw template_hook.postbit_userinfo_left}



<vb:if condition="$show['avatar']">


<div class="eti_postbit"=a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<center>

<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />

</center>
</a>
</div></vb:if>

<vb:if condition="$post['rank']">

<div class="eti_postbit_merkezli">
{vb:raw post.rank}
</div> </vb:if>



<div class="eti_postbit">
Status : {vb:raw post.onlinestatus}
</div>
<vb:if condition="$post['userid']">
<vb:if condition="$post['joindate']">
<div class="eti_postbit">
{vb:rawphrase join_date} : {vb:raw post.joindate}</div></vb:if>

<vb:if condition="$post['field2']">
<div class="eti_postbit">
{vb:rawphrase location_perm} : {vb:raw post.field2}</div></vb:if>

<vb:if condition="$post['age']"><div class="eti_postbit">
{vb:rawphrase age}: {vb:raw post.age}</div></vb:if>




<div class="eti_postbit">
{vb:rawphrase 'posts'} : {vb:raw post.posts}
</div>


<vb:if condition="$post['field5']"><div class="eti_postbit">
Pseudo hamachi : {vb:raw post.field5}</div></vb:if>

<vb:if condition="$post['field7']"><div class="eti_postbit">
Jeux Favoris : <br /> {vb:raw post.field7}</div></vb:if>







{vb:raw template_hook.postbit_userinfo_right_after_posts}

<vb:if condition="$show['infraction'] OR $show['reppower']">
<div class="eti_postbit">

<vb:if condition="$show['infraction']">
{vb:rawphrase infractions} :
{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})<br />
</vb:if>

<
<vb:if condition="$show['reputation']">
<vb:if condition="$show['reppower']">
{vb:rawphrase reppower}

: {vb:raw post.reppower}
</vb:if>
</vb:if>
</dl></div>
</vb:if>

<vb:if condition="$show['reputation']">
<div class="eti_postbit">
Reputation:{vb:raw post.reputation}<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span></div>
</vb:if>




{vb:raw template_hook.postbit_userinfo_right}
<div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
</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" /> {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">
<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">&nbsp;</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">&nbsp;</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:rawphrase reply_with_quote}</a>
<span class="seperator">&nbsp;</span>
</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}" />&nbsp;</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">&nbsp;</span>
</vb:if>
</vb:if>

{vb:raw template_hook.postbit_controls}
{vb:raw post.iplogged}
<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&amp;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}" /> -->&nbsp;</a></span>
</vb:if>

<vb:if condition="$show['infractionlink']">
<a class="infraction" href="infraction.php?{vb:raw session.sessionurl}do=report&amp;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}}" /> --> &nbsp;</a> &nbsp;
</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}" /> -->&nbsp;</a> &nbsp;
</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&amp;p={vb:raw post.postid}" title="{vb:rawphrase manage}"><!-- <img src="{vb:stylevar imgdir_misc}/deleted_sm.png" alt="{vb:rawphrase manage}" /> --> &nbsp;</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&amp;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}" /> --> &nbsp;</a>
<vb:elseif condition="$show['yellowcard']" />
<a class="yellowcard" href="infraction.php?{vb:raw session.sessionurl}do=view&amp;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}" /> --> &nbsp;</a>
</vb:if>
<vb:if condition="$post['forwardlink']">
<a class="forwardpost" href="{vb:raw post.forwardlink}" rel="nofollow"><img src="{vb:stylevar imgdir_button}/reply_40b.png" alt="{vb:rawphrase forward_message}" /> {vb:rawphrase forward}</a>
</vb:if>
</span>
<!-- </div> -->
</div>
</div>
<hr />
</li>
{vb:raw template_hook.postbit_end}
Merci encore ;)

Ombre
02/04/2010, 00h04
Bonsoir, ton style est personnalisé c'est pour cela, j'ai fais la modification, par contre tu perds une class d'une div donc le résultat sera peut-être pas celui de ton style, fais une sauvegarde de ton template postbit_legacy en cas ou:


{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">
<label for="post_imod_checkbox_{vb:raw post.postid}">
<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']">&nbsp;<span class="time">{vb:raw post.posttime}</span></vb:if></span>
</vb:if>
</span>
</label>
<span class="nodecontrols">
<vb:if condition="$post['postid'] AND $post['threadid']">
<a name="post{vb:raw post.postid}" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}" class="postcounter">#{vb:raw post.postcount}</a>
</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>
</div>
<div class="postdetails">
<div class="userinfo">
<div class="username_container">

<vb:if condition="$post['userid']">
<div class="eti_postbit_merkezli">

{vb:raw memberaction_dropdown}

<vb:else />

<br />

{vb:raw post.musername}

</vb:if>
</div></div>





{vb:raw template_hook.postbit_userinfo_left}



<vb:if condition="$show['avatar']">
<a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<vb:if condition="$post.avatarurl">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />

</vb:if>
</a>
<vb:else />
<img align="left" src="{vb:stylevar imgdir_misc}/avatar.png" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</vb:if>

<vb:if condition="$post['rank']">

<div class="eti_postbit_merkezli">
{vb:raw post.rank}
</div> </vb:if>



<div class="eti_postbit">
Status : {vb:raw post.onlinestatus}
</div>
<vb:if condition="$post['userid']">
<vb:if condition="$post['joindate']">
<div class="eti_postbit">
{vb:rawphrase join_date} : {vb:raw post.joindate}</div></vb:if>

<vb:if condition="$post['field2']">
<div class="eti_postbit">
{vb:rawphrase location_perm} : {vb:raw post.field2}</div></vb:if>

<vb:if condition="$post['age']"><div class="eti_postbit">
{vb:rawphrase age}: {vb:raw post.age}</div></vb:if>




<div class="eti_postbit">
{vb:rawphrase 'posts'} : {vb:raw post.posts}
</div>


<vb:if condition="$post['field5']"><div class="eti_postbit">
Pseudo hamachi : {vb:raw post.field5}</div></vb:if>

<vb:if condition="$post['field7']"><div class="eti_postbit">
Jeux Favoris : <br /> {vb:raw post.field7}</div></vb:if>







{vb:raw template_hook.postbit_userinfo_right_after_posts}

<vb:if condition="$show['infraction'] OR $show['reppower']">
<div class="eti_postbit">

<vb:if condition="$show['infraction']">
{vb:rawphrase infractions} :
{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})<br />
</vb:if>

<
<vb:if condition="$show['reputation']">
<vb:if condition="$show['reppower']">
{vb:rawphrase reppower}

: {vb:raw post.reppower}
</vb:if>
</vb:if>
</dl></div>
</vb:if>

<vb:if condition="$show['reputation']">
<div class="eti_postbit">
Reputation:{vb:raw post.reputation}<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span></div>
</vb:if>




{vb:raw template_hook.postbit_userinfo_right}
<div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
</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" /> {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">
<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">&nbsp;</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">&nbsp;</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:rawphrase reply_with_quote}</a>
<span class="seperator">&nbsp;</span>
</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}" />&nbsp;</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">&nbsp;</span>
</vb:if>
</vb:if>

{vb:raw template_hook.postbit_controls}
{vb:raw post.iplogged}
<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&amp;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}" /> -->&nbsp;</a></span>
</vb:if>

<vb:if condition="$show['infractionlink']">
<a class="infraction" href="infraction.php?{vb:raw session.sessionurl}do=report&amp;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}}" /> --> &nbsp;</a> &nbsp;
</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}" /> -->&nbsp;</a> &nbsp;
</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&amp;p={vb:raw post.postid}" title="{vb:rawphrase manage}"><!-- <img src="{vb:stylevar imgdir_misc}/deleted_sm.png" alt="{vb:rawphrase manage}" /> --> &nbsp;</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&amp;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}" /> --> &nbsp;</a>
<vb:elseif condition="$show['yellowcard']" />
<a class="yellowcard" href="infraction.php?{vb:raw session.sessionurl}do=view&amp;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}" /> --> &nbsp;</a>
</vb:if>
<vb:if condition="$post['forwardlink']">
<a class="forwardpost" href="{vb:raw post.forwardlink}" rel="nofollow"><img src="{vb:stylevar imgdir_button}/reply_40b.png" alt="{vb:rawphrase forward_message}" /> {vb:rawphrase forward}</a>
</vb:if>
</span>
<!-- </div> -->
</div>
</div>
<hr />
</li>
{vb:raw template_hook.postbit_end}

The Explorer
10/04/2010, 03h32
Merci Allan

Il y a un hack équivalent mais pour vBulletin 3.8.x s'il vous plait j'en ai besoin...

Ombre
10/04/2010, 09h01
Bonjour, tu as ce hack qui je pense peu convenir: http://www.vbulletin-ressources.com/forum/showthread.php?t=17343

Emyn
23/04/2010, 22h50
file:///C:/Users/AMINE/AppData/Local/Temp/moz-screenshot.pngfile:///C:/Users/AMINE/AppData/Local/Temp/moz-screenshot-1.pngmerci Allan
j'ai le problème que l'avatar est très proche du trait à gauche
stp comment faire pour le mettre avec le même espacement des avatars personnalisés

13852

merci :d2

Ombre
23/04/2010, 22h56
Toujours le même template que tout à l'heure, addicional.css et ajoute ceci pour testé:


.postbit .userinfo .contact, .userinfo .userinfo_extra, .postbit .userinfo_noavatar .contact {
margin-left: 10px;
}

µPar contre normalement ce soucis n'existe pas sur le style de base, je pense que tu as fais des bêtises sur ton style, comme pour ton titre d'utilisateur centré.

Emyn
23/04/2010, 23h04
merci :)

acramas
19/08/2010, 13h29
Merci à toi très bien fait comme hack

Sawyer2
21/08/2010, 10h57
merci pour le partage

nath
22/09/2010, 10h59
Parfait chez moi :)
Merci!

Ali
04/01/2011, 12h09
Je reçoit cette erreur, je pense que cette modification n'est pas compatible 4.1.0 Beta 1


adding child to non-existent node!

Dite-le moi, si je me trompe :)

Ombre
04/01/2011, 18h31
Bonsoir,

Essaye avec cette modification:


<vb:if condition="$show['avatar']">
<vb:if condition="$post.avatarurl">
<a class="postuseravatarlink" 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>
</vb:if>
<vb:else />
<a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}"><img src="{vb:stylevar imgdir_misc}/unknown.gif" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" /></a>
</vb:if>

Une condition dans le code ne me semble pas obligatoire, mais je la laisse en cas ou, l'avatar par défaut sera cliquable dans cette version, bien plus pratique pour ceux qui veulent changer l'avatar par défaut par le leurs, sans chercher midi à quatorze heure ;)

Bishop
04/01/2011, 19h02
Ça marche pour la version 4.0.6 ?

Ombre
04/01/2011, 19h42
Test et tu nous le diras :)

Bishop
04/01/2011, 22h45
Test et tu nous le diras :)


Ca marche ;)

sniper
26/01/2011, 21h44
Merci je cherché comment faire :p

Hip-hop
18/03/2011, 01h35
Bonsoir ,

Merci pour ton code parcontre pas compatible avec le postbit de Ombre xD
J'ai tout fait foiré xD

Edit : Réglé xD
Il faut modif <img align="left"> en <img align="center">

yurihaki
14/04/2011, 11h15
Salut à tous, voila j'ai voulu installé ce hack tres pratique mais malheureusement je n'arrive pas a centrer correctement l'avatar tous en ayant suivi l'ensemble du sujet ici.

Voila comment j'aimerais que l'avatar par default s'affiche :

http://img163.imageshack.us/img163/7305/14042011100454.jpg

Voila le résultat en ayant scrupuleusement suivi l'ensemble des infos :

http://img641.imageshack.us/img641/566/14042011100424.jpg


Voici mon postbit_legacy


{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']">&nbsp;<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">
<div class="username_container">

<vb:if condition="$post['userid']">
<div class="eti_postbit">
{vb:raw memberaction_dropdown}
<vb:else />
{vb:raw post.musername}
</vb:if>
</div></div>

<div class="eti_postbit">
Status : {vb:raw post.onlinestatus}
</div>

<vb:if condition="$post['rank']">

<div class="eti_postbit">
<span class="rank">{vb:raw post.rank}</span> </div> </vb:if>

{vb:raw template_hook.postbit_userinfo_left}

<vb:if condition="$show['avatar']">
<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}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
<vb:else />
<br />
<img align="center" src="{vb:stylevar imgdir_misc}/avatar.png" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />

</vb:if>

<div class="eti_postbit">
{vb:raw post.usertitle}
</div>
<vb:if condition="$post['userid']">
<vb:if condition="$post['joindate']">
<div class="eti_postbit">
{vb:rawphrase join_date} : {vb:raw post.joindate}</div></vb:if>

<vb:if condition="$post['field16']">
<div class="eti_postbit">
{vb:rawphrase location_perm} : {vb:raw post.field16}</div></vb:if>

<vb:if condition="$post['field6']">
<div class="eti_postbit">
{vb:rawphrase Gender} Gender : {vb:raw post.field6}</div></vb:if>

<vb:if condition="$post['age']"><div class="eti_postbit">
{vb:rawphrase age}: {vb:raw post.age}</div></vb:if>
<div class="eti_postbit">
{vb:rawphrase 'posts'} : {vb:raw post.posts}
</div>

{vb:raw template_hook.postbit_userinfo_right_after_posts}

<vb:if condition="$show['infraction'] OR $show['reppower']">
<div class="eti_postbit">

<vb:if condition="$show['infraction']">
{vb:rawphrase infractions} :
{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})<br />
</vb:if>

<vb:if condition="$show['reputation']">
<vb:if condition="$show['reppower']">
{vb:rawphrase reppower}

: {vb:raw post.reppower}
</vb:if>
</vb:if>
</dl></div>
</vb:if>

<vb:if condition="$show['reputation']">
<div class="eti_postbit">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span></div>
</vb:if>

{vb:raw template_hook.postbit_userinfo_right}
<div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
</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">&nbsp;</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">&nbsp;</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">&nbsp;</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}" />&nbsp;</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">&nbsp;</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">&nbsp;</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&amp;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}" /> -->&nbsp;</a></span>
</vb:if>

<vb:if condition="$show['infractionlink']">
<a class="infraction" href="infraction.php?{vb:raw session.sessionurl}do=report&amp;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}}" /> --> &nbsp;</a> &nbsp;
</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}" /> -->&nbsp;</a> &nbsp;
</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&amp;p={vb:raw post.postid}" title="{vb:rawphrase manage}"><!-- <img src="{vb:stylevar imgdir_misc}/deleted_sm.png" alt="{vb:rawphrase manage}" /> --> &nbsp;</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&amp;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}" /> --> &nbsp;</a>
<vb:elseif condition="$show['yellowcard']" />
<a class="yellowcard" href="infraction.php?{vb:raw session.sessionurl}do=view&amp;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}" /> --> &nbsp;</a>
</vb:if>
</span>
<!-- </div> -->
</div>
</div>
<hr />
</li>
{vb:raw template_hook.postbit_end}


Merci d'avance pour toute aide.

Ombre
14/04/2011, 17h22
Bonjour, essaye avec celui là:


{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']">&nbsp;<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">
<div class="username_container">

<vb:if condition="$post['userid']">
<div class="eti_postbit">
{vb:raw memberaction_dropdown}
<vb:else />
{vb:raw post.musername}
</vb:if>
</div></div>

<div class="eti_postbit">
Status : {vb:raw post.onlinestatus}
</div>

<vb:if condition="$post['rank']">

<div class="eti_postbit">
<span class="rank">{vb:raw post.rank}</span> </div> </vb:if>

{vb:raw template_hook.postbit_userinfo_left}

<vb:if condition="$show['avatar']">
<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}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
<vb:else />
<br /><div style="text-align:center;">
<img align="center" src="{vb:stylevar imgdir_misc}/avatar.png" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" /></div>

</vb:if>

<div class="eti_postbit">
{vb:raw post.usertitle}
</div>
<vb:if condition="$post['userid']">
<vb:if condition="$post['joindate']">
<div class="eti_postbit">
{vb:rawphrase join_date} : {vb:raw post.joindate}</div></vb:if>

<vb:if condition="$post['field16']">
<div class="eti_postbit">
{vb:rawphrase location_perm} : {vb:raw post.field16}</div></vb:if>

<vb:if condition="$post['field6']">
<div class="eti_postbit">
{vb:rawphrase Gender} Gender : {vb:raw post.field6}</div></vb:if>

<vb:if condition="$post['age']"><div class="eti_postbit">
{vb:rawphrase age}: {vb:raw post.age}</div></vb:if>
<div class="eti_postbit">
{vb:rawphrase 'posts'} : {vb:raw post.posts}
</div>

{vb:raw template_hook.postbit_userinfo_right_after_posts}

<vb:if condition="$show['infraction'] OR $show['reppower']">
<div class="eti_postbit">

<vb:if condition="$show['infraction']">
{vb:rawphrase infractions} :
{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})<br />
</vb:if>

<vb:if condition="$show['reputation']">
<vb:if condition="$show['reppower']">
{vb:rawphrase reppower}

: {vb:raw post.reppower}
</vb:if>
</vb:if>
</dl></div>
</vb:if>

<vb:if condition="$show['reputation']">
<div class="eti_postbit">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span></div>
</vb:if>

{vb:raw template_hook.postbit_userinfo_right}
<div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
</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">&nbsp;</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">&nbsp;</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">&nbsp;</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}" />&nbsp;</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">&nbsp;</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">&nbsp;</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&amp;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}" /> -->&nbsp;</a></span>
</vb:if>

<vb:if condition="$show['infractionlink']">
<a class="infraction" href="infraction.php?{vb:raw session.sessionurl}do=report&amp;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}}" /> --> &nbsp;</a> &nbsp;
</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}" /> -->&nbsp;</a> &nbsp;
</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&amp;p={vb:raw post.postid}" title="{vb:rawphrase manage}"><!-- <img src="{vb:stylevar imgdir_misc}/deleted_sm.png" alt="{vb:rawphrase manage}" /> --> &nbsp;</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&amp;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}" /> --> &nbsp;</a>
<vb:elseif condition="$show['yellowcard']" />
<a class="yellowcard" href="infraction.php?{vb:raw session.sessionurl}do=view&amp;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}" /> --> &nbsp;</a>
</vb:if>
</span>
<!-- </div> -->
</div>
</div>
<hr />
</li>
{vb:raw template_hook.postbit_end}

yurihaki
14/04/2011, 19h19
Merci ombre, cela a résolu le problème de centrage, par contre est il possible de savoir quel modification tu as apporté au postbit_legacy ?

Juste un détail, elle est correctement centré, mais il y a un leger écart entre limage et la bordure du haut.

http://img163.imageshack.us/img163/7305/14042011100454.jpg

http://img845.imageshack.us/img845/4046/14042011180938.jpg

Je ne sais pas si tu sais ou modifier cela aussi, enfin c'est déjà sympa de l'avoir centré et je peux faire avec la bordure décalé.

Merci encore, à bientôt

Ombre
14/04/2011, 19h42
Avant:


<br />
<img align="center" src="{vb:stylevar imgdir_misc}/avatar.png" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />

Après:


<br /><div style="text-align:center;">

<img align="center" src="{vb:stylevar imgdir_misc}/avatar.png" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" /></div>

LAYLA
01/06/2011, 18h30
Bonjour,

Merci pour ce Hack Allan

J'ai bien installé l'avatar. Mais il n'est pas centrer

http://img51.imageshack.us/img51/4825/avatarxn.png

Que dois je faire ?

xNocturne
06/06/2011, 17h44
Bonjour à tous et merci Allan, seulement je viens vous indiquer l'un de mes problème avec ce mod.. Il se trouve que avec le postbit 2 de Ombre et bien l'avatar par défaut n'est pas centré et va presque jusqu'à se positionner sur les informations des utilisateurs. :swoon1:

Voilà un petit screen :

http://imageshack.us/photo/my-images/18/screenvbulletinressourc.png/http://imageshack.us/photo/my-images/18/screenvbulletinressourc.png/http://www.pixyup.com/uploads/061643274dece78f0ef78.png

J'espère que vous pourrez remédier à mon problème, merci d'avance. ;)

Amicalement, xNocturne.

Ombre
06/06/2011, 18h45
Bonjour,

Merci pour ce Hack Allan

J'ai bien installé l'avatar. Mais il n'est pas centrer

http://img51.imageshack.us/img51/4825/avatarxn.png

Que dois je faire ?


Bonjour à tous et merci Allan, seulement je viens vous indiquer l'un de mes problème avec ce mod.. Il se trouve que avec le postbit 2 de Ombre et bien l'avatar par défaut n'est pas centré et va presque jusqu'à se positionner sur les informations des utilisateurs. :swoon1:

Voilà un petit screen :

http://imageshack.us/photo/my-images/18/screenvbulletinressourc.png/http://imageshack.us/photo/my-images/18/screenvbulletinressourc.png/http://www.pixyup.com/uploads/061643274dece78f0ef78.png

J'espère que vous pourrez remédier à mon problème, merci d'avance. ;)

Amicalement, xNocturne.

Bonsoir,

Le mod d'Allan n'est pas compatible avec les dernières version de vb4, le code correspondant à l'avatar, ayant changer, il à était corrigé depuis le temps, mais un avatar par défaut n'ayant pas était mis en place, j'ai ajouter un mod dans le sujet du mod suivant: http://www.vbulletin-ressources.com/forum/showthread.php?t=20528 en bonus, qui plus est il n'invalidera pas votre style, et il permet de pouvoir cliquer sur l'avatar par défaut et de tombé directement sur la page d'ajout d'avatar afin d'inciter les membres à mettre un avatar.

xNocturne
06/06/2011, 19h15
D'accord merci Ombre. :)

Motus
30/06/2011, 20h54
Merci beaucoup allan très sympa

Motus
30/06/2011, 20h55
Ps je ne voit pas le module a télécharger juste les modification de temtacles :( est-ce normal

Ombre
30/06/2011, 21h23
Bonsoir, normal c'est un mod, pas de xml à importer donc.

Motus
01/07/2011, 16h01
Ha merci je vais essayer alors

Motus
01/07/2011, 16h11
J'ai ceci quand je modifie le postbit

adding child to non-existent node!

ombre

Ombre
01/07/2011, 18h15
Bonjour,

Bizarre, le mode à pourtant fonctionner avec les autres membres, sinon tu as un correctif ici: http://www.vbulletin-ressources.com/forum/showthread.php?t=18205&p=175215#post175215.

atmed
05/07/2011, 17h32
merci bcp !!! tres sympat

mais juste une question.....ya t-il un moyen pour rendre l'avatar au milieu????
http://img11.hostingpics.net/pics/500948123.png


merci bcp



Maj: j'ai trouvé le mod d'ombre ici (http://www.vbulletin-ressources.com/forum/showthread.php?t=20528) et qui m'a permet d'obtenir ce que j'ai voulu

merci bcp

gomisloca
23/10/2011, 20h12
merci beaucoup marche nickel sur 4.1.7 :yahoo: