So, my page fournisseurs.php is now finished and it works well, thanks to you
Now I need, when a user is in the wanted forum, to display a select box to choose the type of product he needs.
I added it to the
newthread template :
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 template_liste}
<option value="7" style="font-weight:bold; background:#EBEBE6">7</option>
<option value="8" style="font-weight:italic;">8</option>
</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>
and added a hook linked to
newthread_start :
Code:
$liste="
<option value=\"3\">3</option>
<option value=\"4\">4</option>";
$templater=vB_Template::create('liste_produits');
$templater->register('liste ', $liste);
$liste_produits .= $templater->render();
And finally created this template
liste_produits
Code:
<option value="1">1</option>
<option value="2">2</option>
{vb:raw liste}
But the content of this new template is not displayed, what did I do wrong ?