Hi,
our users which to have an higher threadview as standard 150px.
I found this in the styles at showthreadlist:
PHP Code:
<div style="height:auto; <if condition="$show['postlistwidth']">width:$postlistwidth;</if> overflow:auto; border:2px inset; padding: 0px; text-align:$stylevar[left];" class="alt1" id="links">
there i change the standard from 150px into auto, but for some users it is to much, they more like the smaller view...
Then I made an extra profilfield with radio-buttons, so they can chose a standard of 150px, double height of 300px or auto height.
But I don?t know how to put it into the style.
I just took the above code snippet and packed it into a simple if block:
PHP Code:
<if condition="$post['field16'] & 1">
<div style="height:150; <if condition="$show['postlistwidth']">width:$postlistwidth;</if>
overflow:auto; border:2px inset; padding: 0px;
text-align:$stylevar[left];" class="alt1" id="links">
</if>
<if condition="$post['field16'] & 2">
<div style="height:300; <if condition="$show['postlistwidth']">width:$postlistwidth;</if>
overflow:auto; border:2px inset; padding: 0px;
text-align:$stylevar[left];" class="alt1" id="links">
</if>
<if condition="$post['field16'] & 4">
<div style="height:auto; <if condition="$show['postlistwidth']">width:$postlistwidth;</if>
overflow:auto; border:2px inset; padding: 0px;
text-align:$stylevar[left];" class="alt1" id="links">
</if>
but this doesn?t work. I don?t know realy much about it, but is ist possible that my code isn?t working because there are to if-questions in one block?
Is any one out here who has an idea to solve my problem?
best regards
Chewy