PDA

Voir la version complète : Mettre une image en fond mais pour mes messages à moi seulement


Netsurfer
17/12/2006, 13h14
J'aimerais bien avoir un mod qui me permettrais de mettre une image de fond dans tous mes messages automatiquement, sans passer par un BB code.

Je dis bien uniquement mes messages (genre USERID 1) à moi mais TOUS mes nouveaux messages.

C'est un peu comme ce qui a été fait ici: http://www.vbulletin-ressources.com/forum/showthread.php?t=2711

Pour référence: http://www.vbulletin-ressources.com/forum/showthread.php?t=2604

sauf que celui-là, c'est en passant par un BB Code.

Allan
17/12/2006, 13h18
J'ai pas essayer, mais dans le code de remplacement du BBcode, il te suffit d'y introduire une condition (http://www.vbulletin-ressources.com/forum/%3Cif%20condition=%22in_array%28$bbuserinfo%5B%27u sergroupid%27%5D,%20array%286%29%29%22%3E) pour ton groupe utilisateur.

Eriatlan
17/12/2006, 14h27
Ce n'est pas ce qu'il demande, enfaite il veut que dés que lui poste un message, et que c'est le 1er message, ça lui mette directement le parhcemin sans qu'il est besois de cliquer sur ma BBcode ;) !

Il faut donc faire 2 conditions, si c'est lui et si c'est le 1er message, perso je ne comprends rien au code de vB je ne pourrai donc rien faire :( !

Netsurfer
17/12/2006, 23h44
Je ne veux pas que ce soit uniquement le 1er message mais dans tous mes messages que MOI je poste sur le forum... et la raison que je ne veux pas utiliser le BB Code est simple; c'est que je ne veux que ce soit que moi qui ait le privilège d'avoir une image en arrière-plan.

Si elle est accessible en BB Code, tout le monde pourra en mettre une. Voilà!

Sofia
18/12/2006, 00h15
Dans Gestionnaire de style -> Choix du style -> CSS principal
Tout en bas, dans Définitions des CSS supplémentaires

Rajoute dans la deuxième case :

.imfond{
background: url(lien_de_l'image_de_fond)
}Mets y ici le lien de ton image de fond.

Ensuite,

Si tu as une disposition horizontale des messages, modifie le template postbit

Si tu as une disposition verticale des messages, modifie le template postbit_legacy


Cherche :

<div id="post_message_$post[postid]" >$post[message]</div>Remplace par ceci :

<if condition="is_member_of($bbuserinfo, x,y,z)"><div id="post_message_$post[postid]" >$post[message]</div></if>x,y,z sont les id des groupes d'utilisateurs qui n'auront pas de fond dans leurs messages (tu peux en rajouter d'autres)

En-dessous de ce code, rajoute ceci :

<if condition="$bbuserinfo[userid] == x"><div id="post_message_$post[postid]" class="imfond">$post[message]</div></if>x correspond à ton id

Voilà.

Netsurfer
18/12/2006, 02h30
Wow, je vais essayer cela ce soir et te reviens avec mes résultats. Un gros merci pour l'astuce! :)

Netsurfer
18/12/2006, 06h57
1- J'ai uploadé mon image par FTP dans le répertoire: /images/misc.
2- J'ai inséré ce code dans la deuxième boîte (qui était vide) du css et enregistré le tout:


.imfond{
background: url(http://www.monsite.com/forum/images/misc/image_fond_message.jpg)
}
3- J'ai modifié les deux templates postbit et postbit_legacy avec ceci:

Donc, dans les deux templates, j'ai mis au-lieu de


<div id="post_message_$post[postid]" >$post[message]</div>
ceci:

<if condition="is_member_of($bbuserinfo, 1,2,3,4,5,7,8)"><div id="post_message_$post[postid]" >$post[message]</div></if>
<if condition="$bbuserinfo[userid] == 6"><div id="post_message_$post[postid]" class="imfond">$post[message]</div></if>
Résultat: Aucune image n'apparaît dans mes messages.

Dois-je utiliser cette forme de lien pour mon image dans le css? Avec le lien au complet ou seulement que partiel? Je ne savais pas trop quoi utiliser. Mais en principe, avec le lien au complet cela aurait tout de même dû fonctionner non?

Sofia
18/12/2006, 12h10
Le lien est bon mais c'est étrange, chez moi, cela fonctionne..

Tu as mis cela :

<if condition="$bbuserinfo[userid] == 6"><div id="post_message_$post[postid]" class="imfond">$post[message]</div></if>

Le "6", c'est ton id ? (l'id de l'utilisateur et non du groupe)

Netsurfer
18/12/2006, 14h07
Oh je vois, je m'étais gourré, j'avais mal lu, je croyais que c'était le groupe!!! Je m'étais fié à la première condition qui elle est pour les groupes donc je n'ai pas fait attention. Désolé pour cette erreur. :)

Je vais réessayer ce soir car il faut que j'aille au boulot.

Merci pour la précision.

lagrace
18/12/2006, 14h35
Salut

Moi je cherche la meme solution mais que mon image s'arrete a la ligne de la signature si vous voyez ce que je veux dire merci

Netsurfer
18/12/2006, 17h35
Bon, j'ai testé et ça fonctionne mais pas comme je voudrais. En fait, ça me donne exactement ce que le précédent utilisateur demande, soit que l'image s'arrête avant la signature! (Voir les images)

Moi, j'aimerais que l'image englobe toute la boite du message, incluant la signature.

Netsurfer
19/12/2006, 08h36
De plus, j'ai parlé trop vite! Je n'avais que regardé mes messages à moi. Mais dans les sujets où d'autres membres ont des messages, tout le monde a la même image que moi aussi et ce, même avec le code que j'ai mis plus haut!

Alors là je ne comprend pas. J'aimerais bien qu'on m'aide à résoudre cela.

Mathelec
19/12/2006, 15h28
2 Conditions:
-userid
-FIRSTPOSTID

A toi de faire ça :) !

Fred
19/12/2006, 16h29
je vois pas le raport avec firstpostid
car il veut image sur tous ses reply
donc seulement userid intervient

Netsurfer
19/12/2006, 17h13
Voilà! Ce n'est pas uniquement le premier de mes messages mais tous mes messages et partout sur le forum. Par contre, je ne veux pas qu'une image apparaisse pour les autres membres et c'est le cas actuallement mais je ne comprend pas pourquoi puisque la condition est bien là...

myryen
21/12/2006, 08h57
au pire (ca va peut etre parraitre bete ce que je vais dire mais je ne m'y connais pas beaucoup. A vrai dire j'apprends un petit peu tous les jours a lire vos post :p)
bref revenons a nos moutons, si tu es le seul admin peut etre que tu peux autoriser ton image qu'au groupe administrateur de ton forum, ou limiter le BB a ce groupe?

Netsurfer
21/12/2006, 12h51
Bien pour laquestion de limiter l'affichage au groupe admin, oui c'est certain que cela pourrait être fait comme ça, mais n'ayant pas les connaissances, j'ai essayé ce qu'on m'a proposé.

Pour le BB code, j'ai déjà exprimé le fait que je ne veux pas avoir à toujours penser à cliquer sur le code et mettre mon image à chaque fois. De toute façon, il y aurait des conditions à inclure afin d'arriver à la même chose donc on se retrouve encore avec le même problème.

Mako
21/12/2006, 23h01
Punaise ça fait presque plus d'une demi heure que je recherche ce mod sur vborg ça va trop vite la bas lol
Bon alors voila, avec ce mod tu devrais pouvoir faire ce que tu veux, à la base il est prevus pour s'amuser
avec les casse pieds en qq sorte, il suffit de te l'appliquer à toi même et tu obtiens le résultat voulu,
tous tes post avec une couleur differente ou une image de fond:
http://www.vbulletin.org/forum/showthread.php?t=134327

Netsurfer
03/01/2007, 01h45
Hmm oui je vois, il y a encore quelques bugs à son hack mais ça paraît faire le travail. J'aurais espéré avoi un suivi sur ce que Sofia avait entrepris avec moi mais merci pour le lien.

Netsurfer
08/01/2007, 18h56
J'ai essayé ça et c'est vraiment pas ce que je recherche. Donc, j'attends toujours que Sofia fasse un suivi sur ce qu'elle avait commencé avec moi.

Netsurfer
14/01/2007, 03h50
J'espère que Sofia viendra essayer de résoudre mon malheureux problème.

Netsurfer
18/01/2007, 16h07
Je suis tenace n'est-ce pas? meoui

Mako
19/01/2007, 06h39
C'est le moins que l'on puisse dire, mais c'est une qualité :)
Pourquoi la solution avec le bbcode ne convient pas ?

Netsurfer
19/01/2007, 06h57
La raison est que je ne désire pas à avoir à cliquer sur le BB code, je voudrais que le tout soit automatique dans tous mes messages.

Mako
19/01/2007, 16h22
http://www.vbulletin.org/forum/showthread.php?t=134327
Il y à une nouvelle version depuis le 7 janvier elle convient toujours pas ?

Netsurfer
19/01/2007, 16h45
Non c'est pas vraiment ça et l'origine de ce hack comme tu l'as dit est surtout pour faire autre chose, je ne veux pas trop mélanger mes choses...

Je me demande si je ne pourrais pas utiliser ceci et en ajoutant des conditions afin que cela ne s'applique que pour moi: http://www.vbulletin-ressources.com/forum/showthread.php?t=2235

C'est différent de ce que Sofia me proposait...

Mako
19/01/2007, 20h01
En tous cas ça à l'air réalisable donc il faut essayer :)

Netsurfer
20/01/2007, 03h52
Bon, j'ai essayé de mixer ce que j'ai vu dans l'autre modif. que j'ai citée dans mon message précédent avec celle proposée par Sofia.

Mon image apparaît maintenant correctement dans le postbit mais j'ai toujours le même problème au niveau des conditions. L'image s'affiche pour tout le monde, alors il y a certainement quelque chose qui ne tourne pas rond avec ces conditions. Il ne resterait que cela à corriger mais je n'arrive pas à trouver la bonne condition afin que l'image ne s'affiche que dans TOUS mes messages mais UNIQUEMENT pour moi (UserID 1, Groupe 6)

Voici ce que j'ai actuellement dans mon template postbit:

J'ai cherché ceci:

<td class="alt1" id="td_post_$post[postid]">
et j'ai remplacé par:

<if condition="is_member_of($bbuserinfo, 1,2,3,4,5,7)"><td class="alt1" id="td_post_$post[postid]"></if>
<if condition="$bbuserinfo[userid] == 1"><td class="imfond" id="td_post_$post[postid]"></if>
Quelqu'un peut m'aider?

Fred
20/01/2007, 07h14
jmatte ca dés que j'ai un peu de temps
je pense avoir la soluce faut juste que je mette ca en place

Mako
20/01/2007, 07h21
Fred le specialiste, quand il cherche il trouve :)

Netsurfer
20/01/2007, 19h16
Merci pour le suivi. Ça fait quelque temps que j'essaie par tous les moyens de trouver comment faire, mais je n'y arrive tout simplement pas. :)

Mako
20/01/2007, 19h32
Heu on ta pas dit dans un autre sujet que qq va regarder des qu'il à le temp ?

Netsurfer
20/01/2007, 21h34
On vient de me le dire dans le message #29 ici oui, C'est pour cette raison que je lui disait merci! :)

Mako
20/01/2007, 21h42
Ah ben c'est la grande forme chez moi ce soir lol nan mais quel boulet,
ne pas voir qu'il y à 3 pages avant ton message c'est fort quand même lol
Sorry j'ai crus à un doublon de question ;)

Netsurfer
15/02/2007, 03h39
J'ai hâte que Fred ait un peu de temps devant lui, il est fort occupé on dirait avec le hack database... J'attends mon tour. :)

Fred
15/02/2007, 11h31
ui et encore j'ai pas fini
car je dois d'abord m'occuper d'un hack que allan ma demander
ensuite mettre a jour mes hacks deja posté
et apré je serait a toi ;)

Netsurfer
16/02/2007, 06h54
C'est très gentil à toi. Merci beaucoup. :)

shaki
17/02/2007, 00h17
Je suis également interessé :-) et quand ce hack sera "sortis" j'aimerais bien le bidouiller pour faire apparaitre plusieures images aleatoirement chaque fois qu'une page est rechargée plutôt qu'une seule.

Mathelec
17/02/2007, 09h46
Tu veux que tous tes messages aient un fond ou seulement le premier message d'une nouvelle discution ?

Netsurfer
17/02/2007, 19h51
J'aimerais bien avoir un mod qui me permettrais de mettre une image de fond dans tous mes messages automatiquement, sans passer par un BB code.

Je dis bien uniquement mes messages (genre USERID 1) à moi mais TOUS mes nouveaux messages.

C'est un peu comme ce qui a été fait ici: http://www.vbulletin-ressources.com/forum/showthread.php?t=2711

Pour référence: http://www.vbulletin-ressources.com/forum/showthread.php?t=2604

sauf que celui-là, c'est en passant par un BB Code.

Comme indiqué dans mon premier message... donc tous MES message et non pas seulement le premier message d'une sujet. Par contre, seulement mes messages et non pas ceux de tous les autres membres...

Mathelec
17/02/2007, 23h13
Tu ajoutes une condition dans ton template postbit & postbit_legacy :) !

Netsurfer
18/02/2007, 01h06
Cela a déjà été fait et essayé mais ça ne marche pas... il faut relire le thread au complet. De toute façon Fred m'a déjà indiqué qu'il allait m'aider. Merci quand même pour avoir tenté de le faire.

Fred
28/02/2007, 15h42
Dans Gestionnaire de style -> Choix du style -> CSS principal
Tout en bas, dans Définitions des CSS supplémentaires

Rajoute dans la deuxième case :

.imfond{
background: url(lien_de_l'image_de_fond)
}Mets y ici le lien de ton image de fond.

Ensuite,

Si tu as une disposition horizontale des messages, modifie le template postbit

Si tu as une disposition verticale des messages, modifie le template postbit_legacy


Cherche :

<div id="post_message_$post[postid]" >$post[message]</div>

Remplace par ceci :

<!-- message -->
<if condition="$post[userid]==1">
<div id="post_message_$post[postid]" class="imfond">$post[message]</div></if>
<else />
<div id="post_message_$post[postid]">$post[message]</div>
</if>
<!-- / message -->

voilou xD

Netsurfer
28/02/2007, 16h47
J'ai essayé cela et ça n'a pas marché du premier coup sauf que j'ai essayé autre chose et Bingo ça fonctionne.

Voici ce qui fonctionne:

<!-- message -->
<if condition="$post[userid]==1">
<div id="post_message_$post[postid]" class="imfond">$post[message]</div>
<else />
<div id="post_message_$post[postid]">$post[message]</div>
</if>
<!-- / message -->



Donc, j'ai enlevé le premier </if>

Maintenant, comment faire pour que la signature ait aussi l'image incluse? Est-ce possible? Et surtout, est-ce possible que ça soit la continuité de l'autre image et non une deuxième image?

Fred
28/02/2007, 17h06
oups j'avais laisser trainer un </if> :p

pour ce qui est de la sign

cherche

<!-- message -->
<div id="post_message_$post[postid]">$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>

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

remplace par

<if condition="$post[userid]==1">
<div class=imfond>
<!-- message -->
<div id="post_message_$post[postid]">$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>

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
</div>
<else />
<!-- message -->
<div id="post_message_$post[postid]">$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>

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
</if>


j'ai pas testé mais ca doi marché

Netsurfer
01/03/2007, 02h38
Non désolé, ça ne fonctionne pas. Ça affiche parfois les messages en blanc, ça décale à fond. Ça affiche le fond pour le autres membres parfois, bref, ça fait pas très beau.

Pourtant, les conditions ont l'air toutes correctes.

Ceci est le code que j'ai essayé:


<if condition="$post[userid]==1">
<div class=imfond>
<!-- message -->
<div id="post_message_$post[postid]">$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>

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

</div>
<else />
<!-- message -->
<div id="post_message_$post[postid]">$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>

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
</if>

Fred
01/03/2007, 09h16
remplace la modif que je t'ai fait faire par

<if condition="$post[userid]==1">
<div class="imfond">
<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>

<!-- / message -->



<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

</div>
<else />
<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>

<!-- / message -->




<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

</if>

<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>

non testé ^^

Netsurfer
02/03/2007, 22h40
Bingo! :p Merci énormément Fred! Ça fait un bout que j'étais sur celui-là. Ça fonctionne maintenant nickel et seulement que pour mes messages, TOUS MES messages à moi uniquement.

Bravo! :yahoo:

Ne reste plus que mon avatar dans l'équipe des forums à régler, ref.: http://www.vbulletin-ressources.com/forum/showthread.php?t=2929. Personne ne semble vouloir s'intéresser à mon cas mais il faut dire que la raison pourquoi ça ne fonctionne pas pour moi semble mystérieuse.

Fred
02/03/2007, 23h25
passe me voir sur msn la semaine prochaine si ton pb n'est pas resolu ;)

lagrace
04/03/2007, 23h37
Salut fred

Voivi mon posbit parceque j'arrive pas a avoir le resultat comme netsurfer merci du coup de pouce

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>
<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" 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" $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" align="$stylevar[right]">
&nbsp;
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;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]" onclick="inlineMod.toggle(this)" />
</if>
</td>
</if>
</tr>
<tr valign="top">
<td class="alt2" width="175">

<div class="info" id="postmenu_$post[postid]">
<if condition="$show['profile']">
<center><a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>&nbsp;$post[onlinestatus]</center>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>

<if condition="$post['usertitle']"><div class="info"><center>$post[usertitle]</center></div></if>
<if condition="$post['rank']"><div class="info"><center>$post[rank]</center></div></if>
<div class="info" align='center'>$stars</div>
<!-- Avatar -->
<center><if condition="$show['avatar']">
<div class="info">&nbsp;
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
<else />
<div class="info">&nbsp;<img src="images/noavatar.png" />
</div>
</if></center>
<!-- Avatar -->
<div class="info"><center><strong>Infos des ups</strong><br />
~~~~~~~~~~~~
<if condition="$post['ct_uploadinc'] >0">
Total upload: $ct_totalup</if><br>
$post[pb_quotat]
<a href="upload.php?userid=$post[userid]">$vbphrase[liste_up]</a>
</center></div>
<if condition="$post['userid']">
<div class="info"><center>
<strong>Infos du niveau</strong><br />
~~~~~~~~~~~~
&nbsp;
$vbphrase[level_particip]&nbsp;&nbsp;<span class="time">$powerlevel%</span>

<table cellpadding="0" cellspacing="0" border="0" width="130"> <tr>
<td class="alt1" align="$stylevar[left]" style="border:groove 1px"><img src="$stylevar[imagesfolder]/polls/bar1.gif" width="$powerlevel%" height="8" alt="$vbphrase[level_puissance]&nbsp;$powerlevel%"><img src="$stylevar[imagesfolder]/polls/bar1-l.gif" width="1" height="8"></td>
</tr>
</table>

$vbphrase[level_activite]&nbsp;&nbsp;<span class="time">$resulhp%</span>
<table cellpadding="0" cellspacing="0" border="0" width="130">
<tr>
<td class="alt1" align="$stylevar[left]" style="border:groove 1px"><img src="$stylevar[imagesfolder]/polls/bar2.gif" width="$hpf%" height="8" alt="$vbphrase[level_activite]&nbsp;$resulhp%"><img src="$stylevar[imagesfolder]/polls/bar2-l.gif" width="1" height="8"></td>
</tr>
</table>
$vbphrase[level_presence]&nbsp;&nbsp;<span class="time">$resulmp%</span>
<table cellpadding="0" cellspacing="0" border="0" width="130" height="5">
<tr>
<td class="alt1" align="$stylevar[left]" style="border:groove 1px"><img src="$stylevar[imagesfolder]/polls/bar6.gif" width="$mpf%" height="8" alt="$vbphrase[level_presence]&nbsp;$resulmp%"><img src="$stylevar[imagesfolder]/polls/bar6-l.gif" width="1" height="8"></td>
</tr>
</table>
$vbphrase[level_experience]&nbsp;&nbsp;<span class="time">$ep%</span>
<table cellpadding="0" cellspacing="0" border="0" width="130" height="5">
<tr>
<td class="alt1" align="$stylevar[left]" style="border:groove 1px"><img src="$stylevar[imagesfolder]/polls/bar3.gif" width="$ep%" height="8" alt="$vbphrase[level_experience]&nbsp;$ep%"><img
src="$stylevar[imagesfolder]/polls/bar3-l.gif" width="1" height="8"></td>
</tr>
</table>
</center></div></if>
<div class="info"><center><strong>Infos Membre</strong><br />
~~~~~~~~~~~~<br>
<if condition="!empty($post[mood])">

$vbphrase[my_mood]: <img src="images/mood/$post[mood].gif" border="0" />

</if>
Utilisateur ID: $post[userid]
<if condition="$post['joindate']">$vbphrase[join_date]: $post[joindate]</if>
<if condition="$post['field2']">$vbphrase[location_perm]: $post[field2]</if>
<if condition="$post['age']">$vbphrase[age]: $post[age]</if><br>
<if condition="$post[field12] != ''">Sexe: <img src="images/gender/$post[field12].gif" title="$post[field12]"></if><br>
$vbphrase[posts]: <a href="search.php?do=finduser&u=$post[userid]">$post[posts]</a><br>
$vbphrase[recipe_stats]: $post[recipe_stats]
</center></div>
<div class="info"><center><strong>Infos Astres</strong><br />
~~~~~~~~~~~~
Astral : <img src="$stylevar[imagesfolder]/zodiac/$imgzodiac" alt="$singzodiac" align="absmiddle" border="0"><br>
Chinois: <img src="$stylevar[imagesfolder]/zodiac/$imgzodiacchin" alt="$singzodiacchin" align="absmiddle" border="0">
</center></div>
<div class="info"><center><strong>Infos Remerciement</strong><br />
~~~~~~~~~~~~
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->
</center></div>
<div class="info"><center><strong>Infos Connection</strong><br />
~~~~~~~~~~~~<br />
<if condition="$post[field6] != ''">
Navigateur : <img src="images/navig/$post[field6].gif" title="$post[field6]"></if><br>
<if condition="$post[field14] != ''">
<div>FAI: <img src="images/fai/$post[field14].gif" title="$post[field14]" align="center">
</div></if>
Débit : $post[field13]
</center></div>
<div class="info"><center><strong>Tps sur la Board</strong><br />
~~~~~~~~~~~~<br />
$post[timeonboard]
</center></div>
<if condition="$post[field5] != ''"><div class="info"><center><strong>Infos du Pays</strong><br />
~~~~~~~~~~~~<br>
<img src="images/flags/$post[field5].gif" title="$post[field5]">
</center></div></if>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>

<div class="info"><center><strong>Infos Contact</strong><br />
~~~~~~~~~~~~<br>
<!-- [START HACK='vB Pager' AUTHOR='UAEWEB.COM' VERSION='3.0.3' CHANGEID= 7 ] -->
<if condition="$vboptions['vbpager_active'] AND $bbuserinfo['userid']">
<a href="#" onclick="window.open('pager.php?do=buddylist&amp;puserid=$post[userid]','pagerbuddylist','statusbar=no,menubar=no,toolba r=no,scrollbars=yes,resizable=yes,width=$vboptions[vbpager_width],height=$vboptions[vbpager_height]'); return false;"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/vbpager_icon.gif" alt="<phrase 1="$post[username]">$vbphrase[pager_send_pager_message_to_x]</phrase>" border="0" /></a></if>
<!-- [END HACK='vB Pager' AUTHOR='UAEWEB.COM' VERSION='3.0.3' CHANGEID= 7 ] -->
$post[icqicon] $post[aimicon] $post[msnicon] $post[jabbericon] $post[yahooicon] $post[skypeicon]
<if condition="$show['homepage']">
<a href="$post[homepage]" target="_blank" dir="ltr"><img src="images/misc/userhome.png" border="0" /></a>
</if>
</center></div>

</div>

</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>

<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]" />
<!-- / icon and title -->
</if>
<!-- message -->

<div id="post_message_$post[postid]" ><if condition="$post['field8'] != '' OR $post['field7'] != ''">
<font face="$post[field8]" color="$post[field7]"><if condition=" $post['field9'] == 'oui'"><b></if><if condition=" $post['field10'] == 'oui'"><i></if><if condition=" $post['field11'] == 'oui'"><u></if>$post[message]<if condition=" $post['field9'] == 'oui'"></b></if><if condition=" $post['field10'] == 'oui'"></i></if><if condition=" $post['field11'] == 'oui'"></u></if></font>

<else />
$post[message]
</if></div>
<!-- / message -->

<if condition="$show['attachments']">
<!-- attachments -->
<if condition="$show['unhiddenattachment']">

<div style="padding:$stylevar[formspacer]px">
$post[unhiddenattachments]
</div>
</if>

<if condition="$show['hiddenattachment']">
<div style="padding:$stylevar[formspacer]px">
$post[hiddenattachments]
</div>
</if>
<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>

</td>
</tr>
<tr>
<td class="alt2" valign="bottom"><center>

<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></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]
<if condition="$show['warning']"><br /><br /><div class="info">$post[warning]</div></if></center>
&nbsp;
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]">
<else />
<td class="alt1">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%">
<!-- Signature -->
<!-- sig -->
<div>
<center>
----------------------------------</center><br />
</div>
<!-- / sig -->
<if condition="$post['signature']">

<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<span class="smallfont"><fieldset><legend>$post[username]'s Sig:</legend>$post[signature]</fieldset>
</span>
</if>
<!-- / End Signature -->

<!-- Edit Note -->
<if condition="$show['postedited']">
<div class="smallfont">
<hr size="1" color="$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
</if>
<!-- End Edit Note -->

<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
</td>
</tr>
<tr>
<td class="alt1" align="$stylevar[right]">
</if>
<!-- controls -->
<!-- Start Post Thank You Hack -->
$post_thanks_button
<!-- End Post Thank You Hack -->
<if condition="$post['editlink']">
<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['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>
<!-- / controls -->

</td>
</tr>
</table>
</td>
</tr>
</table>
<if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1">
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-4195405652878398";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>
</tr>
</table>
</if>
<!-- 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&amp;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&amp;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&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$bbuserinfo[usergroupid] == 6">
<tr><td class="vbmenu_option"><a href="./admincp/user.php?$session[sessionurl]do=edit&u=$post[userid]" rel="nofollow">Editer les infos de l'utilisateur</if></a></td></tr>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->
<!-- Start Post Thank You Hack -->
$post_thanks
<!-- End Post Thank You Hack -->
<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->

Fred
05/03/2007, 01h29
je vois ca demain car la jtaff sur mon new hack

Netsurfer
07/03/2007, 03h32
passe me voir sur msn la semaine prochaine si ton pb n'est pas resolu ;)

OK pas de problème, je suis en vacances alors j'essaierai de me logguer à tes heures... :)

Netsurfer
15/03/2007, 03h54
Oups je viens de me rendre compte pour l'image de fond, c'est parfait pour l'affichage de nos infos en haut dans le profil mais pour l'affichage avec les infos à gauche c'est pas très beau. Comment est-ce que je pourrais faire afin que ça fonctionne aussi?

Fred
21/03/2007, 12h45
en gros tu veu l'image sur le postbit et le fond?

Netsurfer
21/03/2007, 20h39
Euh, non, ce que je veux dire c'est qu'avec le postbit_legacy ça fait bizarre un peu comme affichage. Avec le postbit c'est correct avec le code que tu m'avais fourni dans le message #47.

Fred
21/03/2007, 20h41
ué mais la tu veu que je modif quoi au juste?
tu veu que l'image soi sur le postbit et le fond?

Netsurfer
21/03/2007, 21h32
Oups j'avais oublié de te dire que j'avais aussi intégré les boutons Modifier, Citer, Modifier, etc avec l'image en ond, en plus du code que tu avais mis pour le postbit. J'arrive pas à faire la même chose pour le postbit_legacy... si mon message est court, l'image arrête après la signature et il y a un grand vide avant que l'on voit les boutons dans le bas... j'aimerais que l'image englobe les boutons aussi pour le postbit_legacy. Voilà!

Voici une partie du code modifié de mon postbit (avec l'image qui englobe les boutons):


<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><!-- v3 Arcade --> <if condition="$post['arcadeawards']"><a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><img src="$vboptions[arcadeimages]/trophy.gif" align="absmiddle" alt="$vbphrase[arcade_champion]" border="0" /></a></if>
<!-- /v3 Arcade -->
$post[onlinestatus]
<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>

</td>
<td width="100%">&nbsp;</td>
<td valign="top" nowrap="nowrap">
<div class="smallfont">$post[crowns]$post[champtext]<br /></div>

<div class="smallfont">
<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]
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->
</div>
<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>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
<div align="right">
<a href="hackinstall.php?do=installview&userid=$post[userid]"><img src="$stylevar[imgdir_misc]/downarrow.gif" border="0" alt="Téléchargements" /></a>&nbsp;
<a href="hackinstall.php?do=create&userid=$post[userid]"><img src="$stylevar[imgdir_misc]/uparrow.gif" border="0" alt="Soumissions" /></a>
</div>
<div>$post[install]</div>
</div>
</td>
</tr>
</table>
<!-- / user info -->
</td>
</tr>
<tr>
<td class="alt1" id="td_post_$post[postid]">
<!-- message, attachments, sig -->

<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]" />
<!-- / icon and title -->
</if>

<if condition="$post[userid]==1">
<div class="imfond">
<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>

<!-- / message -->

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

<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>

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>

<div style="margin-top: 10px" align="$stylevar[right]">
<!-- controls -->
<if condition="$post[userid] != $bbuserinfo[userid] AND THIS_SCRIPT!='private'"><if condition="$show['pmlink'] AND $show[member]"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" target="_blank" rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if></if>
<!-- Start Post Thank You Hack -->
$post_thanks_button
<!-- End Post Thank You Hack -->
<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['deletedpost']">
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;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&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
<!-- / controls -->
</div>

<!-- message, attachments, sig -->
</div>
<else />
<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>

<!-- / message -->

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

<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>

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>

<div style="margin-top: 10px" align="$stylevar[right]">
<!-- controls -->
<if condition="$post[userid] != $bbuserinfo[userid] AND THIS_SCRIPT!='private'"><if condition="$show['pmlink'] AND $show[member]"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" target="_blank" rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if></if>
<!-- Start Post Thank You Hack -->
$post_thanks_button
<!-- End Post Thank You Hack -->
<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['deletedpost']">
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;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&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
<!-- / controls -->
</div>

<!-- message, attachments, sig -->

</if>

</td>
</tr>
</table>

<!-- 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&amp;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&amp;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&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_all_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&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
<!-- v3 Arcade -->
<if condition="$post['arcadeawards']">
<tr><td class="thead"><phrase 1="$post[username]">$vbphrase[xs_arcade_awards]</phrase></a></td></tr>
$post[arcadeawards]
</if>
<if condition="($post['arcadeoptions'] & 1) AND $post['userid']!=$bbuserinfo['userid']">
<tr><td class="thead">$vbphrase[arcade]</a></td></tr>
<tr><td class="vbmenu_option"><a href="arcade.php?do=newchallenge&userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[challenge_x_in_the_arcade]</phrase></td></tr></if>
<!-- /v3 Arcade -->
</table>
</div>
<!-- / post $post[postid] popup menu -->
<!-- Start Post Thank You Hack -->
$post_thanks
<!-- End Post Thank You Hack -->

Voici maintenant le résultat... sur l'image.

Fred
21/03/2007, 21h38
Bon test ca
Ton_Postbit represente le contenu de ton postbit_legacy

alor dans le template postbit_legacy tu met

<if condition="$post[userid]==1">
<div class="imfond">
Ton_Postbit
</div>
</if>
<else />
Ton_Postbit
</if>

mais sans garenti

Netsurfer
21/03/2007, 22h19
J'avais déjà testé et ça n'englobe pas tout. Ça décale toute mes choses et ça fait pas très beau.

J'avais aussi oublié de te dire que le pourquoi du postbit dans le postbit_legacy est que j'ai un style profile en haut et un style profil à gauche, voilà le pourquoi du contenu du legacy dans le postbit... enfin un peu difficile à expliquer mais j'ai choisi cette méthode au-lieu d'un plugin.... afin de donner le choix à mes membres de choisir leur affichage de postbit...

Fred
21/03/2007, 22h25
erf bin la je seche
moi et les templates ca fait 2

Allan
21/03/2007, 22h33
Tu a un screen de l'état actuel ou de ce que tu veux obtenir ?

Netsurfer
22/03/2007, 02h20
Voici une image de ce qui ne fonctionne pas avec une partie du code de mon postbit_legacy (profil à gauche).

Prenez note que j'ai aussi ajouté l'image où cela fonctionne avec l'autre template, soit le postbit (profil en haut) dans le message #57 avec une partie du code correspondant.


<div>$post[install]</div>
<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]
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->
</div>
<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>

<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-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
<else />
<td class="alt1" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
</if>

<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]" />
<!-- / icon and title -->
</if>

<if condition="$post[userid]==1">
<div class="imfond">
<!-- message -->
<div id="post_message_$post[postid]">$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>

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>


</div>
<else />
<!-- message -->
<div id="post_message_$post[postid]">$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>

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>

</if>

</td>
</tr>
<tr>
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
<a href="#top" onclick="self.scrollTo(0, 0); return false;"><img class="inlineimg" src="$stylevar[imgdir_button]/Arrow.gif" alt="$vbphrase[top]" border="0"></a>
$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&amp;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]
&nbsp;
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
<else />
<td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
</if>
<!-- controls -->
<if condition="$post[userid] != $bbuserinfo[userid] AND THIS_SCRIPT!='private'"><if condition="$show['pmlink'] AND $show[member]"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" target="_blank" rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if></if>
<!-- Start Post Thank You Hack -->
$post_thanks_button
<!-- End Post Thank You Hack -->
<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['deletedpost']">
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;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&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
<!-- / controls -->
</td>
</tr>
</table>

<!-- 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&amp;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&amp;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&amp;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&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
<!-- v3 Arcade -->
<if condition="$post['arcadeawards']">
<tr><td class="thead"><phrase 1="$post[username]">$vbphrase[xs_arcade_awards]</phrase></a></td></tr>
$post[arcadeawards]
</if>
<if condition="($post['arcadeoptions'] & 1) AND $post['userid']!=$bbuserinfo['userid']">
<tr><td class="thead">$vbphrase[arcade]</a></td></tr>
<tr><td class="vbmenu_option"><a href="arcade.php?do=newchallenge&userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[challenge_x_in_the_arcade]</phrase></td></tr></if>
<!-- /v3 Arcade -->
</table>
</div>
<!-- / post $post[postid] popup menu -->
<!-- Start Post Thank You Hack -->
$post_thanks
<!-- End Post Thank You Hack -->

Netsurfer
25/03/2007, 09h39
Tu a un screen de l'état actuel ou de ce que tu veux obtenir ?

C'est fait. Un petit suivi peut-être?

Fred
26/03/2007, 11h39
bin alors personne pour aider ce garcon? :D
je t'aurais bien aider mais la je seche

suleiman
26/03/2007, 13h19
J'ai arrivé plus tard ..
Je ne sais pas maintenant quel probème tu as ..

Mais .

Si tu veux que tes sujets ont automatiquement une image de fond .

Dans le postbit_legacy :

Cherche :

<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->


et tu mets la condition :

<if condition="$post['userid'] == 1">


alors :

<!-- message -->
<if condition="$post['userid'] == 1">
<div id="post_message_$post[postid]" style="background-image: url('le_lien_de_ton_image');">
$post[message]
</div>
<else />
<div id="post_message_$post[postid]">
$post[message]
</div>
</if>
<!-- / message -->


Tu peux changer : style="background-image: url('le_lien_de_ton_image');

mettant class="ma_class" , est dans le css du style tu mets les conditions du ta classe .

suleiman
26/03/2007, 13h58
Ou bien ..
Si tu veux changer la couleur dans toute la partie "droite"

Dans postbit_legacy
Cherche

<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
<else />
<td class="alt1" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
</if>


remplace ca par :

<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
<else />
<if condition="$post['userid'] == 1">
<td class="alt1" style="background-color: #FF9999;" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
<else />
<td class="alt1" id="td_post_$post[postid]" sty