Simon
25/04/2010, 20h20
Cette modification de template ajoute un lien pour partager l'article sur Facebook dans le postbit.
http://www.vbulletin-ressources.com/forum/attachment.php?attachmentid=13899&stc=1&d=1272216003
Conception
Auteur du mod : Simon (http://www.vbulletin-ressources.com/forum/member.php?u=12718)
Version du mod : 4.0.3
Version vBulletin Requise / Version vBulletin Required : vB 4.0.3
Testé / Tested: oui sur 4.0.3
Ce Mod a été réalisé pour vBulletin-Ressources sous licence http://i.creativecommons.org/l/by-nc-sa/2.0/fr/80x15.png (http://creativecommons.org/licenses/by-nc-sa/2.0/fr/) / This Mod was made for vBulletin-Ressources under http://i.creativecommons.org/l/by-nc-sa/2.0/fr/80x15.png (http://creativecommons.org/licenses/by-nc-sa/2.0/fr/) licence.
Merci à Ombre (http://www.vbulletin-ressources.com/forum/member.php?u=1668) pour l'optimisation du code
Installation (1/3)
Dans le template "postbit", trouver:
Pour l'afficher à gauche de Bloguer ce message, rechercher:
<span class="postlinking">
Pour l'afficher après Infraction, rechercher:
<vb:if condition="$show['reportlink']">
<a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> --> </a>
</vb:if>
Ajouter après:
Pour l'afficher uniquement sur le premier message:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
<a class="fb_share" href="http://www.facebook.com/sharer.php?u={vb:raw vboptions.bburl}/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}">Partager sur Facebook</a>
</vb:if>
Pour l'afficher sur tous les messages:
<vb:if condition="(THIS_SCRIPT == showthread)">
<a class="fb_share" href="http://www.facebook.com/sharer.php?u={vb:raw vboptions.bburl}/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}">Partager sur Facebook</a>
</vb:if>
Installation (2/3)
Dans le template "postbit_legacy", trouver:
Pour l'afficher à gauche de Bloguer ce message, rechercher:
<span class="postlinking">
Pour l'afficher après Infraction, rechercher:
<vb:if condition="$show['reportlink']">
<a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> --> </a>
</vb:if>
Ajouter après:
Pour l'afficher uniquement sur le premier message:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
<a class="fb_share" href="http://www.facebook.com/sharer.php?u={vb:raw vboptions.bburl}/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}">Partager sur Facebook</a>
</vb:if>
Pour l'afficher sur tous les messages:
<vb:if condition="(THIS_SCRIPT == showthread)">
<a class="fb_share" href="http://www.facebook.com/sharer.php?u={vb:raw vboptions.bburl}/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}">Partager sur Facebook</a>
</vb:if>
Installation (3/3)
Dans le template "additional.css":
Ajouter à la fin:
.postbitlegacy .postfoot .textcontrols a.fb_share:hover, .postbitlegacy .postfoot .textcontrols a.fb_share, .postbit .postfoot .textcontrols a.fb_share, .postbit .postfoot .textcontrols a.fb_share:hover {
background: url({vb:stylevar imgdir_misc}/facebook.gif) no-repeat transparent {vb:stylevar left} ;
padding-{vb:stylevar left}: 20px;
}
Captures
http://www.vbulletin-ressources.com/forum/attachment.php?attachmentid=13899&stc=1&d=1272216003
Conception
Auteur du mod : Simon (http://www.vbulletin-ressources.com/forum/member.php?u=12718)
Version du mod : 4.0.3
Version vBulletin Requise / Version vBulletin Required : vB 4.0.3
Testé / Tested: oui sur 4.0.3
Ce Mod a été réalisé pour vBulletin-Ressources sous licence http://i.creativecommons.org/l/by-nc-sa/2.0/fr/80x15.png (http://creativecommons.org/licenses/by-nc-sa/2.0/fr/) / This Mod was made for vBulletin-Ressources under http://i.creativecommons.org/l/by-nc-sa/2.0/fr/80x15.png (http://creativecommons.org/licenses/by-nc-sa/2.0/fr/) licence.
Merci à Ombre (http://www.vbulletin-ressources.com/forum/member.php?u=1668) pour l'optimisation du code
Installation (1/3)
Dans le template "postbit", trouver:
Pour l'afficher à gauche de Bloguer ce message, rechercher:
<span class="postlinking">
Pour l'afficher après Infraction, rechercher:
<vb:if condition="$show['reportlink']">
<a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> --> </a>
</vb:if>
Ajouter après:
Pour l'afficher uniquement sur le premier message:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
<a class="fb_share" href="http://www.facebook.com/sharer.php?u={vb:raw vboptions.bburl}/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}">Partager sur Facebook</a>
</vb:if>
Pour l'afficher sur tous les messages:
<vb:if condition="(THIS_SCRIPT == showthread)">
<a class="fb_share" href="http://www.facebook.com/sharer.php?u={vb:raw vboptions.bburl}/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}">Partager sur Facebook</a>
</vb:if>
Installation (2/3)
Dans le template "postbit_legacy", trouver:
Pour l'afficher à gauche de Bloguer ce message, rechercher:
<span class="postlinking">
Pour l'afficher après Infraction, rechercher:
<vb:if condition="$show['reportlink']">
<a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> --> </a>
</vb:if>
Ajouter après:
Pour l'afficher uniquement sur le premier message:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
<a class="fb_share" href="http://www.facebook.com/sharer.php?u={vb:raw vboptions.bburl}/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}">Partager sur Facebook</a>
</vb:if>
Pour l'afficher sur tous les messages:
<vb:if condition="(THIS_SCRIPT == showthread)">
<a class="fb_share" href="http://www.facebook.com/sharer.php?u={vb:raw vboptions.bburl}/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}">Partager sur Facebook</a>
</vb:if>
Installation (3/3)
Dans le template "additional.css":
Ajouter à la fin:
.postbitlegacy .postfoot .textcontrols a.fb_share:hover, .postbitlegacy .postfoot .textcontrols a.fb_share, .postbit .postfoot .textcontrols a.fb_share, .postbit .postfoot .textcontrols a.fb_share:hover {
background: url({vb:stylevar imgdir_misc}/facebook.gif) no-repeat transparent {vb:stylevar left} ;
padding-{vb:stylevar left}: 20px;
}
Captures