Sofia
25/11/2006, 15h34
Description :
Ce hack permet d'afficher sous le titre d'une discussion une description d'une discussion.
Remerciements et support / Thanks and support :
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 Hack / Author Of Hack : Def
Source / Link of Thread: Description des discussions (http://www.vbulletin.org/forum/showthread.php?t=131239)
Version vBulletin Requise / Version vBulletin Required : vB 3.6.x
Testé / Tested: oui vB 3.6.3
Traducteur / Translator: Sofia
Copyright © 2006 vBulletin-Ressources.com - Tous droits réservés Uniquement pour nos traductions/ Copyright © 2006 vBulletin-Ressources.com - All Rights Reserved Only For Ours TranslationsInstallation :
Sur votre FTP, importez l'image dans le dossier Image.
Importez le xml dans Includes -> xml.
Importez le produit.(si vous upgradez n'oubliez pas d'autoriser l'écrassement).
Pour accepter les descriptions, il suffit d'aller dans chaque forum puis tout en bas, activer l'option.
Après l'installation :
6 Templates sont à modifier :
Ouvrez le template threadbit.
Trouvez :
<if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if>Ajouter au-dessous :
<if condition="$thread[description] != ''"> <img class="inlineimg" src="$stylevar[imagesfolder]/strela_w.gif" border="0" alt=""><span class="time"><em>$thread[description]</em></span> <br /> </if>Ouvrez le template editpost
Trouvez :
<!-- subject field -->
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="$vboptions[titlemaxchars]" tabindex="1" title="$vbphrase[optional]" /></td>
<td> </td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
</tr>
</table>
<!-- / subject field -->Ajoutez au-dessous :
<!-- description field -->
<if condition="$foruminfo['allowdesc'] == 1">
<if condition="$isfirstpost">
<if condition="$vbulletin->GPC[advanced]">
<input type="hidden" name="desc_adv" value="1" />
</if>
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
<tr>
<td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
</tr>
<tr>
<td><input type="text" class="bginput" name="description" value="$description" size="50" maxlength="100" tabindex="1.5" title="$vbphrase[optional]" /></td>
</tr>
</table>
</if></if>
<!-- / description field -->
Ouvrez le template threadadmin_editthread
Trouvez :
<!-- subject field -->
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="title" value="$threadinfo[title]" size="50" maxlength="$vboptions[titlemaxchars]" tabindex="1" title="$vbphrase[optional]" /></td>
<td> </td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
</tr>
</table>
<!-- / subject field -->Ajouter au-dessous :
<!-- description field -->
<if condition="$foruminfo['allowdesc'] == 1">
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
<tr>
<td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
</tr>
<tr>
<td><input type="text" class="bginput" name="description" value="$threadinfo[description]" size="50" maxlength="100" tabindex="1.5" /></td></tr>
</table></if>
<!-- / description field -->Ouvrez le template newthread
Trouvez :
<!-- subject field -->
<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" /></td>
<td> </td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td> </tr>
</table>
<!-- / subject field -->Ajoutez au-dessous :
<!-- description field -->
<if condition="$foruminfo['allowdesc'] == 1">
<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
</tr>
<tr>
<td><input type="text" class="bginput" name="description" value="$description" size="40" maxlength="100" tabindex="1.5" /></td></tr>
</table></if>
<!-- / description field -->Ouvrez le template search_results_postbit
Trouvez :
</div>
<div class="smallfont" style="float:$stylevar[right]">
$vbphrase[views]: <strong>$post[views]</strong>
</div>Ajouter au-dessous :
<if condition="$post[description] != ''">
<div class="smallfont">
<img class="inlineimg" src="$stylevar[imagesfolder]/strela_w.gif" border="0" alt=""><span class="time"><em>$post[description]</em></span>
</div>
</if>Ouvrez le template navbar
Trouvez :
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span>Ajouter au-dessous :
<if condition="THIS_SCRIPT == 'showthread' AND $threadinfo[description] != ''">
<br /><img class="inlineimg" src="$stylevar[imagesfolder]/strela_w.gif" border="0" alt=""><span class="smallfont">$threadinfo[description]</span>
</if>
Ce hack permet d'afficher sous le titre d'une discussion une description d'une discussion.
Remerciements et support / Thanks and support :
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 Hack / Author Of Hack : Def
Source / Link of Thread: Description des discussions (http://www.vbulletin.org/forum/showthread.php?t=131239)
Version vBulletin Requise / Version vBulletin Required : vB 3.6.x
Testé / Tested: oui vB 3.6.3
Traducteur / Translator: Sofia
Copyright © 2006 vBulletin-Ressources.com - Tous droits réservés Uniquement pour nos traductions/ Copyright © 2006 vBulletin-Ressources.com - All Rights Reserved Only For Ours TranslationsInstallation :
Sur votre FTP, importez l'image dans le dossier Image.
Importez le xml dans Includes -> xml.
Importez le produit.(si vous upgradez n'oubliez pas d'autoriser l'écrassement).
Pour accepter les descriptions, il suffit d'aller dans chaque forum puis tout en bas, activer l'option.
Après l'installation :
6 Templates sont à modifier :
Ouvrez le template threadbit.
Trouvez :
<if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if>Ajouter au-dessous :
<if condition="$thread[description] != ''"> <img class="inlineimg" src="$stylevar[imagesfolder]/strela_w.gif" border="0" alt=""><span class="time"><em>$thread[description]</em></span> <br /> </if>Ouvrez le template editpost
Trouvez :
<!-- subject field -->
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="$vboptions[titlemaxchars]" tabindex="1" title="$vbphrase[optional]" /></td>
<td> </td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
</tr>
</table>
<!-- / subject field -->Ajoutez au-dessous :
<!-- description field -->
<if condition="$foruminfo['allowdesc'] == 1">
<if condition="$isfirstpost">
<if condition="$vbulletin->GPC[advanced]">
<input type="hidden" name="desc_adv" value="1" />
</if>
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
<tr>
<td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
</tr>
<tr>
<td><input type="text" class="bginput" name="description" value="$description" size="50" maxlength="100" tabindex="1.5" title="$vbphrase[optional]" /></td>
</tr>
</table>
</if></if>
<!-- / description field -->
Ouvrez le template threadadmin_editthread
Trouvez :
<!-- subject field -->
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="title" value="$threadinfo[title]" size="50" maxlength="$vboptions[titlemaxchars]" tabindex="1" title="$vbphrase[optional]" /></td>
<td> </td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
</tr>
</table>
<!-- / subject field -->Ajouter au-dessous :
<!-- description field -->
<if condition="$foruminfo['allowdesc'] == 1">
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
<tr>
<td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
</tr>
<tr>
<td><input type="text" class="bginput" name="description" value="$threadinfo[description]" size="50" maxlength="100" tabindex="1.5" /></td></tr>
</table></if>
<!-- / description field -->Ouvrez le template newthread
Trouvez :
<!-- subject field -->
<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" /></td>
<td> </td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td> </tr>
</table>
<!-- / subject field -->Ajoutez au-dessous :
<!-- description field -->
<if condition="$foruminfo['allowdesc'] == 1">
<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
</tr>
<tr>
<td><input type="text" class="bginput" name="description" value="$description" size="40" maxlength="100" tabindex="1.5" /></td></tr>
</table></if>
<!-- / description field -->Ouvrez le template search_results_postbit
Trouvez :
</div>
<div class="smallfont" style="float:$stylevar[right]">
$vbphrase[views]: <strong>$post[views]</strong>
</div>Ajouter au-dessous :
<if condition="$post[description] != ''">
<div class="smallfont">
<img class="inlineimg" src="$stylevar[imagesfolder]/strela_w.gif" border="0" alt=""><span class="time"><em>$post[description]</em></span>
</div>
</if>Ouvrez le template navbar
Trouvez :
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span>Ajouter au-dessous :
<if condition="THIS_SCRIPT == 'showthread' AND $threadinfo[description] != ''">
<br /><img class="inlineimg" src="$stylevar[imagesfolder]/strela_w.gif" border="0" alt=""><span class="smallfont">$threadinfo[description]</span>
</if>