PDA

View Full Version : <optioncode>


TheMayhem
05-11-2010, 02:51 AM
I am getting ready for the next release of my product and started experimenting with the <optioncode> setting for a drop down menu list within the vBulletin settings page in the Admin CP. I currently have:

<setting varname="market_gift_location" displayorder="10">
<datatype>free</datatype>
<optioncode>select:piped 0|postbit_userinfo_right_after_posts|postbit_useri nfo_left|postbit_userinfo_right</optioncode>
<defaultvalue>0</defaultvalue>
</setting>


However, instead of displaying the correct output of a drop down menu list, it is visibly displaying:

Select the location of the gift items to be displayed for members to view on the postbit template. select:piped 0|postbit_userinfo_right_after_posts|postbit_useri nfo_left|postbit_userinfo_right

The part in bold above is where it should be a drop down menu but isn't. What am I missing or doing wrong?

Lynne
05-11-2010, 03:24 AM
I think you need to put a line break and values.
<optioncode>select:piped
0|postbit_userinfo_right_after_posts
1|postbit_userinfo_left
2|postbit_userinfo_right</optioncode>

TheMayhem
05-11-2010, 02:50 PM
Nope, still displayed the text. I even went to other author's hacks and tried to put some of their <optioncodes> into my <optioncode> to see why and theres didn't work.

Lynne
05-11-2010, 06:56 PM
Why aren't you just doing this the way you are supposed to... through debug mode?

TheMayhem
05-11-2010, 11:59 PM
Debug mode isn't playing nice on my server or forums; however, I was able to get it to work by pure accident so all is well :)