PDA

View Full Version : On and Off Option


John3971
22 Nov 2007, 15:12
hey im working on my first mod and i need some help. im using on and off button and when you choose 1 alternative it stands yes/no and i wonder how i can fix so it stands something else like alt1/alt2

here is the php code:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Analogpoint
22 Nov 2007, 17:07
I'm not quite sure what you're asking. Can you rephrase the question and explain exactly what it is you'd like to accomplish?

John3971
22 Nov 2007, 17:16
okey gonna try to explain it better.

im working on a mod that give you an option in each forum so subforums will be shown different and i have succed to fix this so its work but the option is yes/no when you edit the forum and i want it to say something else. here is a ss so you see what its look like now.
http://img81.imageshack.us/img81/8745/namnlsuk0.png
i hope you understand what i mean now :D

Analogpoint
22 Nov 2007, 17:25
Yes, now I understand. Why don't you use a dropdown list to display the two options (alt1 or 2)?

John3971
22 Nov 2007, 17:28
did not think of that. im not so good in this but how do i fix so it is a dropdown?

Analogpoint
22 Nov 2007, 17:34
Use print_select_row (http://members.vbulletin.com/api/vBulletin/_includes_adminfunctions_php.html#functionprint_select_row)

John3971
22 Nov 2007, 17:40
okey now i only have 1 more question. how do i get the option in there?

Analogpoint
22 Nov 2007, 17:46
Read this http://members.vbulletin.com/api/vBulletin/_includes_adminfunctions_php.html#functionprint_select_row

John3971
22 Nov 2007, 17:51
i donīt really understand that so i stick with yes and no option. thanks anyway.

Marco van Herwaarden
23 Nov 2007, 06:49
print_radio_row() might be more suitable.