The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#6
|
||||
|
||||
![]()
Pfiouuuuuuuuuuuu, I did it ....
In the newthread template, added : Code:
<vb:if condition="$foruminfo['forumid']=='7'"> <label for="subject" class="full">Produit concern? :</label> <select name="produit"> <option value="" selected="selected">Faites votre choix</option> {vb:raw liste_produits} </select><br /> <font size=1><i>Un produit "gris?" est une cat?gorie rassemblant la liste de tous SES produits, soit tous les produits en dessous de celle ci, jusqu'? la prochaine cat?gorie</i></font><br /><br /> </vb:if> Code:
$listes_produits = $vbulletin->db->query_read(" SELECT * FROM devis_produits ORDER by id "); while ($liste_produit = $vbulletin->db->fetch_array($listes_produits)) { if ($liste_produit[est_parent]==1) $liste .="<option value=\"$liste_produit[id]\" style=\"font-weight:bold; background:#EBEBE6\">$liste_produit[nom]</option>"; else $liste .="<option value=\"$liste_produit[id]\">$liste_produit[nom]</option>"; } $templater = vB_Template::create('liste_produits'); $templater->register('liste', $liste); $templatevalues['liste_produits'] = $templater->render(); vB_Template::preRegister('newthread', $templatevalues); Code:
{vb:raw liste} ![]() |
Благодарность от: | ||
MarkFL |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|