suleiman
19/11/2009, 15h16
Ce module permet d'avoir vos sujets en mode horizontal (postbit) et les messages en mode vertical (postbit_legacy).
Changez Le paramètre
admincp -> Options vBulletin -> Style & langue -> Employer le template de message traditionnel (à la verticale) : non
Ajouter un nouveau module
admincp -> Modules & Produits -> Ajouter un nouveau module :
Produit : vBulletin
Emplacement du crochet : postbit_display_complete
Intitulé : postbit et postbit_legacy
Ordre d'exécution : 5
Code PHP du module :
if($post['postcount'] == '1')
{
$this->templatename = 'postbit';
}else
{
$this->templatename = 'postbit_legacy';
}
Le module est actif : oui
Ajouter un autre module
admincp -> Modules & Produits -> Ajouter un nouveau module :
Produit : vBulletin
Emplacement du crochet : cache_templates
Intitulé : Cache Templates: postbit_legacy
Ordre d'exécution : 5
Code PHP du module :
if($vbulletin->options['legacypostbit'] == '0' AND THIS_SCRIPT == 'showthread')
{
$cache[] = 'postbit_legacy';
}
Le module est actif : oui
Capture
http://www.vbulletin-ressources.com/forum/images/tutoriaux/1_1258648861.gif
N.B.
POSTBIT = FORME DU SUJET » HORIZONTAL
POSTBIT_LEGACY = FORME DU SUJET » VERTICALE
MAJ 18/01/2010 : Il faut cacher le template postbit_legacy
Changez Le paramètre
admincp -> Options vBulletin -> Style & langue -> Employer le template de message traditionnel (à la verticale) : non
Ajouter un nouveau module
admincp -> Modules & Produits -> Ajouter un nouveau module :
Produit : vBulletin
Emplacement du crochet : postbit_display_complete
Intitulé : postbit et postbit_legacy
Ordre d'exécution : 5
Code PHP du module :
if($post['postcount'] == '1')
{
$this->templatename = 'postbit';
}else
{
$this->templatename = 'postbit_legacy';
}
Le module est actif : oui
Ajouter un autre module
admincp -> Modules & Produits -> Ajouter un nouveau module :
Produit : vBulletin
Emplacement du crochet : cache_templates
Intitulé : Cache Templates: postbit_legacy
Ordre d'exécution : 5
Code PHP du module :
if($vbulletin->options['legacypostbit'] == '0' AND THIS_SCRIPT == 'showthread')
{
$cache[] = 'postbit_legacy';
}
Le module est actif : oui
Capture
http://www.vbulletin-ressources.com/forum/images/tutoriaux/1_1258648861.gif
N.B.
POSTBIT = FORME DU SUJET » HORIZONTAL
POSTBIT_LEGACY = FORME DU SUJET » VERTICALE
MAJ 18/01/2010 : Il faut cacher le template postbit_legacy