[REQ] two mods

Sticky Background Color Change with Rollover Effect
ACP -> Styles & Templates -> Style Manager -> Edit Templates -> Threadbit

Find:

Code:
<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]">
Replace with:

Code:
<!-- Sticky Rollover Color -->
<if condition="$thread['sticky'] == 1">
    <td class="stickybg" id="td_title_$thread[realthreadid]" title="$thread[preview]" onmouseover="this.className='stickyover';" onmouseout="this.className='stickybg';">
<else />
<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]">
</if>
<!-- /Sticky Rollover Color -->
ACP -> Styles & Templates -> Style Manager -> Style Name -> Main CSS -> Additional CSS Definitions

You will need to add these two declarations:

The normal background color, change #333333 to your desired background color:


Code:
  .stickybg
{
    background-color: #333333;
} 
And the mouseover color, change #444444 to your desired highlight color:

     Code:
     .stickyover
{
         background-color: #444444;
}
Note: This does NOT effect any ajax functionality.

Close/open thread via quick reply

To add this new feature, you'll need to edit the "SHOWTHREAD" template (it can be found in the "Show Thread Templates" group).


Find this text, about a 1/3 of the way down:

Code:
<label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" />$vbphrase[quote_message_in_reply]</label>
                        </div>
                    </fieldset>
After all of that, add all of this:

HTML:
<if condition="$show['openclose']">
                    <fieldset class="fieldset" style="margin:$stylevar[formspacer]px 0px 0px 0px">
                        <legend>Thread Management</legend>
                        <div style="padding:3px">
                            <div>
                                <label for="cb_openclose"><input type="checkbox" name="openclose" value="1" id="cb_openclose" tabindex="1" /><if condition="$show['closethread']">Close<else />Open</if> this thread after reply post (the reply button's icon will not be updated for you)</label>
                            </div>
                    </fieldset>
</if>
 
Back
Top