Back to vBulletin 4.x Template Modifications

Disable Default Redirect in Move and Merge Threads
Mod Version: 1.00, by djbaxter

vB Version: 4.0.4 Rating: (4 votes - 4.75 average) Installs: 25
Released: 17 Jul 2010 Last Update: Never Downloads: 0
Not Supported Template Edits  

The default behavior for moving or merging threads is to leave a non-expiring redirect in the original thread.

I find this annoying, since it clutters up the thread listings. Most of the time I either want no redirect or at most an expiring redirect.

This mod changes the default to NO REDIRECT (you can still manually select redirect or expiring redirect fo any threads where you want it).

1. MOVE
In Thread Administration Templates > template threadadmin_movethread

Find:

PHP Code:
                    <li>
                        <
label><input type="checkbox" name="enableredirect" 

id="redirect" value="1" class="dep_ctrl" tabindex="1" checked="checked" /> {vb:rawphrase yes}</label>
                    </
li>
                    <
li id="redirect_deps" class="floatcontainer deps">

                        <
ul class="group checkradio">
                            <
li>
                                <
label for="rb_redirect_perm"><input 

type
="radio" name="redirect" value="perm" id="rb_redirect_perm" checked="checked" tabindex="1" /> {vb:rawphrase 

leave_permanent_redirect
}</label>
                            </
li


Change two instances of checked="checked". Replace with:

PHP Code:
                    <li>
                        <
label><input type="checkbox" name="enableredirect" 

id="redirect" value="1" class="dep_ctrl" tabindex="1" /> {vb:rawphrase yes}</label>
                    </
li>
                    <
li id="redirect_deps" class="floatcontainer deps">

                        <
ul class="group checkradio">
                            <
li>
                                <
label for="rb_redirect_perm"><input 

type
="radio" name="redirect" value="perm" id="rb_redirect_perm" tabindex="1" /> {vb:rawphrase 

leave_permanent_redirect
}</label>
                            </
li


Similarly, in Thread Administration Templates > template threadadmin_movethreads

Find:

PHP Code:
                    <li><label><input type="checkbox" name="enableredirect" id="redirect" 

value="1" class="dep_ctrl" tabindex="1" check="checked" /> {vb:rawphrase yes}</label></li>
                    <
li id="redirect_deps" class="floatcontainer deps">
                        <
ul class="group checkradio">
                            <
li>
                                <
label for="rb_redirect_perm"><input 

type
="radio" name="redirect" value="perm" id="rb_redirect_perm" checked="checked" tabindex="1" /> {vb:rawphrase 

leave_permanent_redirect
}</label>
                            </
li
Change two instances of checked="checked". Replace with:

PHP Code:
                    <li><label><input type="checkbox" name="enableredirect" id="redirect" 

value="1" class="dep_ctrl" tabindex="1" /> {vb:rawphrase yes}</label></li>
                    <
li id="redirect_deps" class="floatcontainer deps">
                        <
ul class="group checkradio">
                            <
li>
                                <
label for="rb_redirect_perm"><input 

type
="radio" name="redirect" value="perm" id="rb_redirect_perm" tabindex="1" /> {vb:rawphrase 

leave_permanent_redirect
}</label>
                            </
li

2. MERGE

In Thread Administration Templates > template threadadmin_mergethreads

Find:

PHP Code:
                    <li>
                        <
label><input type="checkbox" name="redir" id="redirect" value="1" class="dep_ctrl" tabindex="1" checked="checked"/> {vb:rawphrase yes}</label>
                    </
li>
                    <
li id="redirect_deps" class="floatcontainer deps">
                        <
ul class="group checkradio">
                            <
li>
                                <
label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" checked="checked" tabindex="1" /> {vb:rawphrase leave_permanent_redirect}</label>
                            </
li
Change to:

PHP Code:
                    <li>
                        <
label><input type="checkbox" name="redir" id="redirect" value="1" class="dep_ctrl" tabindex="1" /> {vb:rawphrase yes}</label>
                    </
li>
                    <
li id="redirect_deps" class="floatcontainer deps">
                        <
ul class="group checkradio">
                            <
li>
                                <
label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" tabindex="1" /> {vb:rawphrase leave_permanent_redirect}</label>
                            </
li

Download

No files for download.

Similar Mods

Move threads with leave no redirect as default or Expired redirect as default vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024