Signature tehsig.com

Voici un système de signature bien sympatique car entièrement modifiable à l'aide d'un astucieux système de template XML.

Petit exemple adapté à notre équipe :


Quelques autres "créations" et un mode d'emploi dans la suite de l'article.

EDIT 2005-08-10 : J'ai modifié le code pour que vous ayez vous aussi la ligne aléatoire représesantant les stats des différentes classes que vous avez joué en dessous de votre signature. Attention il y a encore quelques bugs.

EDIT 2005-09-27 MRIC-Rooky : j'ai édité la section sniper pour corriger les 2 bugs.

EDIT 2005-09-27 MRIC-Rooky : j'ai ajouté une nouvelle version où toutes les infos apparaissent, pas en random. A voir si on garde.

EDIT 2005-11-17 No_One : Mise à jour du template afin de conserver la compatibilité avec les nouveaux code de tehsig

EDIT 2006-03-02 No_One : Mise à jour du template afin de virer la ligne aléatoire qui augmentais les temsp de chargement de l'image sur les forums. Modification du poid des images de fond pour diminuer les temsp de chargement et corriger un bug de "poid".{mos_sb_discuss:6}






-> Inscrivez-vous.
-> Cliquez le lien du mail.
-> Logez-vous sur le site.
-> Cliquez-sur User CP.
-> Subscribe to Battlefield2 feed, leave the ID as bf2, and enter your player ID (not name).
-> Creez un nouveau  template, choisissez un design de base.
-> L'URL de votre signature s'affichera en haut à droite de la page.

-> Aide sur les templates :  http://forums.tehsig.com/index.php/topic,7.0.html
-> Aide sur les templates BF2 : http://forums.tehsig.com/index.php/topic,8.0.html
-> Controlez l'ID de votre feed.

A titre d'exemple, voici mon template que je souhaiterais voir utilisé sur nos forums afin d'éviter les signatures trop hautes.
                  <?sigml version='1.1'?>
<canvas width="600" height="115" fill="807d624f">          
  
<!-- Random stock background image -->
<random>
<select><image url="/images/signatures/sig2.png" x="0" y="0" width="400" height="180"/></select>
<select><image url="/images/signatures/sig3.png" x="0" y="0" width="400" height="180"/></select>
<select><image url="/images/signatures/sig4.png" x="0" y="0" width="400" height="180"/></select>
<select><image url="/images/signatures/sig5.png" x="0" y="0" width="400" height="180"/></select>
</random>


<!-- Top box -->
<rect id="topbox" x="1" y="1" width="[?{sig:canvas:width}-2?]" height="21" fill="0000007F"/>
<line x="[?{sig:topbox:x}?]" y="[?{sig:topbox:y}+{sig:topbox:height}?]" x2="[?{sig:topbox:x}+{sig:topbox:width}?]" y2="[?{sig:this:y}?]" color="00000000"/>
<text string="{feed:bf2:playerrank:to_rankname} {feed:bf2:nick} ({feed:bf2:fkit:to_kitname})" x="5" y="13" font="verdanaz.ttf" size="8" color="FFFFFF00" angle="0" />
<image render="bf2:flag" x="[?({sig:canvas:width})-({sig:this:height}+2)?]" y="2" width="[?{sig:this:height}?]" height="14"/>

<!-- Rank Box -->
<rect id="rankbox" x="3" y="[?{sig:topbox:y}+{sig:topbox:height}+{sig:topbox:border_width}+3?]" width="51" height="55" fill="807d624f" border="00000000" border_width="1"/>
<image render="bf2:rank" x="[?{sig:last:x}+5?]" y="[?{sig:last:y}+3?]" width="[?{sig:this:height}?]" height="40"/>
<image render="bf2:vprogressbar" x="[?{sig:rankbox:x}+1?]" y="[?{sig:rankbox:y}+1?]" width="10" height="[?{sig:rankbox:height}-2?]" color="6e6b5570"/>
<text string="{feed:bf2:f_rankpercent}%" x="[?{sig:rankbox:x}+{sig:this:width}+2?]" y="[?{sig:rankbox:y}+({sig:rankbox:height}/2)+({sig:this:height}/2)?]" font="lucon.ttf" angle="90" size="8" color="e6dfaa00"/>
<text string="P:{feed:bf2:f_ranketa}" x="[?{sig:rankbox:x}+14?]" y="[?{sig:rankbox:y}+{sig:rankbox:height}-2?]" font="sylfaen.ttf" size="8" angle="0" color="FFFFFF00"/>


<!-- Stats Boxes -->
<rect id="botbox" x="1" y="83" width="[?{sig:canvas:width}-201?]" height="32" fill="807d624f" />
<text id="row1" x="2" y="[?{sig:last:y}+9?]" size="8" font="framd.ttf" color="FFFFFF00" string="G-Score: {feed:bf2:scor:to_number}"/>
<text x="[?{sig:last:x}+88?]" y="[?{sig:row1:y}?]" size="8" font="framd.ttf" color="FFFFFF00" string="Capt: {feed:bf2:cpcp:to_number} ({feed:bf2:cacp:to_number})"/>
<text x="[?{sig:last:x}+80?]" y="[?{sig:row1:y}?]" size="8" font="framd.ttf" color="FFFFFF00" string="Tues: {feed:bf2:kill:to_number} ({feed:bf2:bksk:to_number})"/>
<text x="[?{sig:last:x}+90?]" y="[?{sig:row1:y}?]" size="8" font="framd.ttf" color="FFFFFF00" string="Vic: {feed:bf2:wins:to_number}"/>

<text id="row2" x="2" y="[?{sig:row1:y}+10?]" size="8" font="framd.ttf" angle="0" color="FFFFFF00" string="C-Score: {feed:bf2:cmsc:to_number}"/>
<!-- text x="[?{sig:last:x}+89?]" y="[?{sig:row2:y}?]" size="8" font="framd.ttf" color="FFFFFF00" string="Pilote Kas: {feed:bf2:dkas:to_number}"/ -->
<text x="[?{sig:last:x}+88?]" y="[?{sig:row2:y}?]" size="8" font="framd.ttf" color="FFFFFF00" string="T.Joue: {feed:bf2:time:to_elapsed:%rdj %rhh}"/>
<text x="[?{sig:last:x}+80?]" y="[?{sig:row2:y}?]" size="8" font="framd.ttf" color="FFFFFF00" string="Morts: {feed:bf2:deth:to_number} ({feed:bf2:wdsk:to_number})"/>
<text x="[?{sig:last:x}+90?]" y="[?{sig:row2:y}?]" size="8" font="framd.ttf" color="FFFFFF00" string="Def: {feed:bf2:loss:to_number}"/>
<line x="[?{sig:botbox:x}?]" y="[?{sig:botbox:y}-1?]" x2="[?{sig:botbox:x}+{sig:botbox:width}?]" y2="[?{sig:this:y}?]" color="00000000"/>

<!-- Temps Joue: {feed:bf2:time:to_elapsed:%y Yr %rM Months %rw Weeks %rd Days %rh Hours %rm Mins %rs Secs} -->
<text id="row3" x="3" y="[?{sig:row2:y}+10?]" size="8" font="framd.ttf" angle="0" color="FFFFFF00" string="Score/min: {feed:bf2:f_ospm:to_number:2}"/>
<text x="[?{sig:last:x}+88?]" y="[?{sig:row3:y}?]" size="8" font="framd.ttf" color="FFFFFF00" string="T.Lead: {feed:bf2:tsql:to_elapsed:%rdj %rhh}"/>
<!-- text x="[?{sig:last:x}+85?]" y="[?{sig:row3:y}?]" size="8" font="framd.ttf" color="FFFFFF00" string="Tues/min: {feed:bf2:klpm:to_number}"/ -->
<text x="[?{sig:last:x}+80?]" y="[?{sig:row3:y}?]" size="8" font="framd.ttf" color="FFFFFF00" string="Tues/Morts: {feed:bf2:f_kdrf}"/>
<text x="[?{sig:last:x}+90?]" y="[?{sig:row3:y}?]" size="8" font="framd.ttf" color="FFFFFF00" string="Precis: {feed:bf2:f_osaa:to_number}%"/>

<!-- Players soldier -->
<image render="bf2:mysol" x="[?407-{sig:this:width}?]" y="32" height="84" width="127"  src_h="167" src_w="254"/>

<!-- Awards Box
<rect id="awb" x="1" y="[?{sig:canvas:height}-{sig:this:height}?]" width="[?{sig:canvas:width}-2?]" height="80" fill="44444444"/>
<line x="1" y="[?{sig:last:y}?]" x2="[?{sig:canvas:width}-2?]" y2="[?{sig:last:y}?]" color="00000000"/>
<random>
<select><text string="HONOR" y="[?({sig:awb:y}+{sig:awb:height}/2)+({sig:this:height}/2)?]" x="[?({sig:canvas:width}/2)-({sig:this:width}/2)?]" font="timesbd.ttf" size="40" color="FFFFFFEE" angle="0" /></select>
<select><text string="COURAGE" y="[?({sig:awb:y}+{sig:awb:height}/2)+({sig:this:height}/2)?]" x="[?({sig:canvas:width}/2)-({sig:this:width}/2)?]" font="timesbd.ttf" size="40" color="FFFFFFEE" angle="0" /></select>
<select><text string="DUTY" y="[?({sig:awb:y}+{sig:awb:height}/2)+({sig:this:height}/2)?]" x="[?({sig:canvas:width}/2)-({sig:this:width}/2)?]" font="timesbd.ttf" size="40" color="FFFFFFEE" angle="0" /></select>
</random>
-->
<line x="400" y="22" x2="400" y2="122" color="00000000"/>


<!-- The Awards/Medals/Ribbons -->
<image render="bf2:awards" all="true" x="483" y="[?{sig:topbox:height}+4?]" rows="4" cols="5" width="120" height="90" uniform="true" id="awards" />
<image render="bf2:ribbons" all="true" x="402" y="[?{sig:last:y}?]" rows="6" cols="3" width="79" height="90" uniform="false"/>
<image render="bf2:medals" all="true" x="220" y="3" rows="3" cols="18" width="260" height="58" uniform="false"/>

<!-- The Medal Counts -->
<text string="{feed:bf2:f_medal_count:2051902}" y="[?{sig:medal_2051902:y}+{sig:medal_2051902:height}?]" x="[?{sig:medal_2051902:x}?]" font="AuXDotBitC.ttf" size="8" color="FFFFFF00"/>
<text string="{feed:bf2:f_medal_count:2051907}" y="[?{sig:medal_2051907:y}+{sig:medal_2051907:height}?]" x="[?{sig:medal_2051907:x}?]" font="AuXDotBitC.ttf" size="8" color="FFFFFF00"/>
<text string="{feed:bf2:f_medal_count:2051919}" y="[?{sig:medal_2051919:y}+{sig:medal_2051919:height}?]" x="[?{sig:medal_2051919:x}?]" font="AuXDotBitC.ttf" size="8" color="FFFFFF00"/>

<!-- 1px Border -->
<rect x="1" y="1" width="[?{sig:canvas:width}-2?]" height="[?{sig:canvas:height}-2?]" fill="000000FF" border="00000000" border_width="1"/>

<!-- Copyright notice must come last -->
<!-- Original Template by [LSD-NF]No_One from www.scorpions-du-desert.com-->
<!-- Template translate by [LSD]ZFiR3 -->
<copyright x="[?{sig:canvas:width}-{sig:this:width}-20?]" y="3" font="arialblk.ttf" size="7" color="88888800" angle="0" />
</canvas>