Your trying to add the if conditions as the custom html but it's basicly seen as php and will not render meaning all it spits out is the html/text.
My suggestion would be to maybe just double up i.e create 2 sets of options 1 for showthread and 1 for forumdisplay rather then if else as it currently is, then have an enable/disable option for each.