Silviu
05-04-2011, 08:34 AM
Well, we have found the problem, but we don't know how to actually fix it:
In vB 3.x, the inline mod conditional in the search_results_postbit template looked like this:
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$post[postid]]" id="plist_$post[postid]" style="float:$stylevar[right]; vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="1"
<if condition="$show['disabled']">disabled="disabled"</if> />
</if>In vB 4.x though, it looks like this (in threadbit):
<label class="threadimod">
<input type="checkbox" id="thread_imod_checkbox_{vb:raw thread.realthreadid}" name="imodcheck[{vb:raw thread.realthreadid}]" />
</label>
</vb:if>As you can see, the "disabled" conditional for the checkbox (which is what we need):
<if condition="$show['disabled']">disabled="disabled"</if>
is gone from the vB 4 search templates (both postbit and threadbit), so in order for the search to work as it did before, we need to put it back, but, probably, with another conditional.
Something along the lines of:
<if condition="user cannot moderate this particular forum">disabled="disabled"</if>
Can anyone help in this regard?
In vB 3.x, the inline mod conditional in the search_results_postbit template looked like this:
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$post[postid]]" id="plist_$post[postid]" style="float:$stylevar[right]; vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="1"
<if condition="$show['disabled']">disabled="disabled"</if> />
</if>In vB 4.x though, it looks like this (in threadbit):
<label class="threadimod">
<input type="checkbox" id="thread_imod_checkbox_{vb:raw thread.realthreadid}" name="imodcheck[{vb:raw thread.realthreadid}]" />
</label>
</vb:if>As you can see, the "disabled" conditional for the checkbox (which is what we need):
<if condition="$show['disabled']">disabled="disabled"</if>
is gone from the vB 4 search templates (both postbit and threadbit), so in order for the search to work as it did before, we need to put it back, but, probably, with another conditional.
Something along the lines of:
<if condition="user cannot moderate this particular forum">disabled="disabled"</if>
Can anyone help in this regard?