PDA

View Full Version : Use radio buttons in product settings


Diggo11
07-15-2012, 01:08 PM
I'm trying to write a product with settings, but I cannot seem to get radio buttons to work. From another mod I've seen, they use the following xml:

<setting displayorder="130" varname="ercufo">
<datatype>number</datatype>
<optioncode>radio:piped 0|Forum Multiplier overides Usergroup 1|Usergroup Multiplier overides Forum</optioncode>
<defaultvalue>1</defaultvalue>
</setting>


However I cannot seem to get this type of optioncode to work at all, regardless of what datatype and values I set. Can someone explain how to set this up properly?

kh99
07-15-2012, 01:30 PM
The options need to be on separate lines. Try this:

<setting displayorder="130" varname="ercufo">
<datatype>number</datatype>
<optioncode>radio:piped
0|Forum Multiplier overides Usergroup
1|Usergroup Multiplier overides Forum</optioncode>
<defaultvalue>1</defaultvalue>
</setting>

Diggo11
07-15-2012, 02:05 PM
Ah, it's always the little things! Thanks mate; you're on fire :)