Create a dropdown list in vBulletin

Discussion in 'Web Design & Programming' started by RHochstenbach, Oct 13, 2007.

  1. RHochstenbach

    RHochstenbach Administrator

    Likes Received:
    26
    Trophy Points:
    48
    I got a question. On my forum I've added a small code to show members computer information in the postbit_legacy template.

    Using this code:
    Code:
    <if condition="$post['field6'] == '1'">	
    <b>My Computer</b><br>
    </if>
    <if condition="$post['field7'] AND $post['field6'] == '1'">
    	CPU: $post[field7]<br>
    </if>
    <if condition="$post['field8'] AND $post['field6'] == '1'">
    	GFX: $post[field8]<br>
    </if>
    <if condition="$post['field9'] AND $post['field6'] == '1'">
    	RAM: $post[field9]<br>
    </if>
    <if condition="$post['field10'] AND $post['field6'] == '1'">
    	HDD: $post[field10]<br>
    </if>
    <if condition="$post['field11'] AND $post['field6'] == '1'">
    	Mobo: $post[field11]<br>
    </if>
    <if condition="$post['field12'] AND $post['field6'] == '1'">
    	OS: $post[field12]<br>
    </if>
    <if condition="$post['field13'] AND $post['field6'] == '1'">
    	Sound: $post[field13]
    </if>
    
    Now my question: how can I modify the code, so the computer information is hidden inside a dropdown menu that can be expanded (like on HWF)?
     

Share This Page