J'ai créé un nouveau champ personnalisé à partir du CP pour donner le choix de l'affichage du postbit aux membres, en suivant les indications fournies sur vbulletin.com. Les boutons radio s'affichent bien et le choix reste dans les options du profil une fois enregistré. En revanche, l'affichage ne marche pas une fois rendu dans le showthread.
Voir ce que j'ai entré comme options dans les 2 pièces jointes.
Je n'ai rien mis sur "thread viewing", l'option en question n'est dispo nulle part sinon (???)(1) Create a new Custom Profile Field of the your choosing (yes/no / radio / select). I am going to use a single-selection menu for this demo. I put in two options "Top" and "Left". At the very bottom of the custom profile edit page, set the Display Page option to Options: Thread Viewing. Submit your new profile field.
Field 5 pour moi...(2) Now you are redirected to your list of custom profile fields. Find the new field you selected and note its Name. Mine is called field66 for example.
(3) Then I placed this in my phpinclude_start template:
---> Le code qui en découle, placé dans le PHP include start :
if ($bbuserinfo['field5'] == 'Vertical')
{
$vboptions['legacypostbit'] = 1;
}
Rien qu'à la première phrase, ça coince car effectivement, on peut choisir, mais ça ne marche pasNow everyone will default to top style but can choose left style in their User CP. You can adjust the code to default everyone to left style by enabling the vboption for legacy postbit and then changing the above code to:
Aurais-je oublié quelquechose ? (Mes 2 templates legacy_postbit et postbit sont par défaut)