The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Work in progress
i am currently trying to adapt a mod to vbulletin 4 but i am running into some difficultly, i am getting the most part working but its not showing the options in the drop down menu
<!-- Subforum pull-down menu ---------------------------------------> <form action="forumdisplay.php" method="get"> <input name="s" value="" type="hidden"> <input name="daysprune" value="-1" type="hidden"> <select name="f" onchange="this.form.submit();"> <if condition="$forum[statusicon] == 'new'"> <option value="$forum[forumid]" style="font-weight:bold;">$forum[title]</option> <else /> <option value="$forum[forumid]">$forum[title]</option> </if> $forum[subforums] </select> <input class="button" value="$vbphrase[go]" type="submit"> </form> <!-- Subforum pull-down menu ---------------------------------------> the problems i am having i have highlighted in red, they only seem to be showing that text in the red and not the actual sub sections, the original code if anyone wishes to develop it themeselves is located here https://vborg.vbsupport.ru/showthread.php?t=99821 |
#2
|
|||
|
|||
Try this:
Code:
<!-- Subforum pull-down menu ---------------------------------------> <form action="forumdisplay.php" method="get"> <input name="s" value="" type="hidden"> <input name="daysprune" value="-1" type="hidden"> <select name="f" onchange="this.form.submit();"> <vb:if condition="$forum[statusicon] == 'new'"> <option value="{vb:raw forum.forumid}" style="font-weight:bold;">{vb:var forum.title}</option> <vb:else /> <option value="{vb:raw forum.forumid}">{vb:var forum.title}</option> </vb:if> {vb:raw forum.subforums} </select> <input class="button" value="{vb:phrase go}" type="submit"> </form> <!-- Subforum pull-down menu ---------------------------------------> |
Благодарность от: | ||
leejohn02 |
#3
|
|||
|
|||
thats great now i just need get the depth of the forums to work the original line
<if condition="$forum[depth] == '2'"> </if> doesnt work any ideas?? |
#4
|
|||
|
|||
not sure if this will help or even what u are looking for
Code:
<!-- Subforum pull-down menu ---------------------------------------> <option value="$forum[forumid]"> <if condition="$forum[depth] == '2'"> </if> <if condition="$forum[depth] == '3'"> </if> <if condition="$forum[statusicon] == 'new'"> + <else /> - </if> $forum[title] </option> <!-- Subforum pull-down menu ---------------------------------------> Code:
<!-- Subforum pull-down menu ---------------------------------------> <option value="$forum[forumid]"> <if condition="$forum[depth] == '2'"> </if> <if condition="$forum[depth] == '3'"> </if> <if condition="$forum[statusicon] == 'new'"> + <else /> - </if> $forum[title] </option> Code:
<!-- Subforum pull-down menu ---------------------------------------> <option value="$forum[forumid]"> <if condition="$forum[depth] == '2'"> </if> <if condition="$forum[depth] == '3'"> </if> <if condition="$forum[statusicon] == 'new'"> + <else /> - </if> $forum[title] </option> <!-- Subforum pull-down menu ---------------------------------------> |
#5
|
|||
|
|||
still doesnt work, this is getting annoying, any more suggestions will be appericated, the first part works, but for some reason it wont find the 2nd part and continues to use the 2nd level and not the 3rd
|
#6
|
|||
|
|||
Maybe this?
Code:
<vb:if condition="$forum[depth] == '2'"> </vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|