PDA

View Full Version : Move threads with leave no redirect as default or Expired redirect as default


Hornstar
12 Sep 2006, 06:50
Okay I requested this here a while ago then Daniel showed how it was done for 3.5.4 here http://www.vbulletin.org/forum/showthread.php?p=897060

I was just requesting for it to be done again as the old code had changed, but decided I will do something myself ^^ and not be lazy.

So here is my first release, it is only a small template edit, but if you install it please press the Install button https://www.vbulletin.org/forum/ :)


Description
This will have "Leave No Redirect" as the default selection when you go to move a thread. (This is the prefered way on my site, because redirects can look messy, and staff often forget to choose the other ones.)

You will need to edit the templates "threadadmin_movethread" and "threadadmin_movethreads"

Instructions for "No redirect" as default
Step 1:
In the template threadadmin_movethread find:


<label for="rb_redirect_none"><input type="radio" name="redirect" value="none" id="rb_redirect_none" />$vbphrase[leave_no_redirect]</label><br />
<label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" checked="checked" />$vbphrase[leave_permanent_redirect]</label><br />
<label for="rb_redirect_expires"><input type="radio" name="redirect" value="expires" id="rb_redirect_expires" />$vbphrase[leave_expiring_redirect]</label><br />



Replace with:



<label for="rb_redirect_none"><input type="radio" name="redirect" value="none" id="rb_redirect_none" checked="checked" />$vbphrase[leave_no_redirect]</label><br />
<label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" />$vbphrase[leave_permanent_redirect]</label><br />
<label for="rb_redirect_expires"><input type="radio" name="redirect" value="expires" id="rb_redirect_expires" />$vbphrase[leave_expiring_redirect]</label><br />




Step 2:

In the template threadadmin_movethreads find:


<label for="rb_redirect_none"><input type="radio" name="redirect" value="none" id="rb_redirect_none" />$vbphrase[leave_no_redirect]</label><br />
<label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" checked="checked" />$vbphrase[leave_permanent_redirect]</label><br />
<label for="rb_redirect_expires"><input type="radio" name="redirect" value="expires" id="rb_redirect_expires" />$vbphrase[leave_expiring_redirect]</label><br />



Replace with:



<label for="rb_redirect_none"><input type="radio" name="redirect" value="none" id="rb_redirect_none" checked="checked" />$vbphrase[leave_no_redirect]</label><br />
<label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" />$vbphrase[leave_permanent_redirect]</label><br />
<label for="rb_redirect_expires"><input type="radio" name="redirect" value="expires" id="rb_redirect_expires" />$vbphrase[leave_expiring_redirect]</label><br />






Instructions for "Expired Redirect" as default
Step 1:
In the template threadadmin_movethread find:


<label for="rb_redirect_none"><input type="radio" name="redirect" value="none" id="rb_redirect_none" />$vbphrase[leave_no_redirect]</label><br />
<label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" checked="checked" />$vbphrase[leave_permanent_redirect]</label><br />
<label for="rb_redirect_expires"><input type="radio" name="redirect" value="expires" id="rb_redirect_expires" />$vbphrase[leave_expiring_redirect]</label><br />



Replace with:



<label for="rb_redirect_none"><input type="radio" name="redirect" value="none" id="rb_redirect_none" />$vbphrase[leave_no_redirect]</label><br />
<label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" />$vbphrase[leave_permanent_redirect]</label><br />
<label for="rb_redirect_expires"><input type="radio" name="redirect" value="expires" id="rb_redirect_expires" checked="checked" />$vbphrase[leave_expiring_redirect]</label><br />




Step 2:

In the template threadadmin_movethreads find:


<label for="rb_redirect_none"><input type="radio" name="redirect" value="none" id="rb_redirect_none" />$vbphrase[leave_no_redirect]</label><br />
<label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" checked="checked" />$vbphrase[leave_permanent_redirect]</label><br />
<label for="rb_redirect_expires"><input type="radio" name="redirect" value="expires" id="rb_redirect_expires" />$vbphrase[leave_expiring_redirect]</label><br />



Replace with:



<label for="rb_redirect_none"><input type="radio" name="redirect" value="none" id="rb_redirect_none" />$vbphrase[leave_no_redirect]</label><br />
<label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" />$vbphrase[leave_permanent_redirect]</label><br />
<label for="rb_redirect_expires"><input type="radio" name="redirect" value="expires" id="rb_redirect_expires" checked="checked" />$vbphrase[leave_expiring_redirect]</label><br />



Enjoy and remember to press the https://www.vbulletin.org/forum/ Button if you install this, so i'll update it for future vbulletin releases.

Hornstar
12 Sep 2006, 07:53
Reserved

Ninth Dimension
12 Sep 2006, 10:08
Simple, yet effective... thank you :)

Hornstar
14 Sep 2006, 04:16
If you upgraded to vb 3.6.1 you will need to apply these changes again as those templates needed reverting.

These instructions have been tested and working with vb 3.6.0 and vb 3.6.1

Enjoy.

Snake
16 Sep 2006, 13:09
Thank you! Works great.

Hornstar
19 Oct 2006, 05:29
Thank you! Works great.

Glad you like it :)

Hornstar
16 Nov 2006, 00:21
Reverted my templates, and tried this again in 3.6.3 and it is still working perfect.

ND4SPD
22 Dec 2006, 01:26
Good timesaver!

Tralala
09 Mar 2007, 22:08
Great, thanks for this...

Muellmann
10 Apr 2007, 23:18
Cool idea, thanks! I saw a forum at my friend, there were more redirects than threads.
So I hope this Mod will change that! :D

Pvtiste
10 Apr 2007, 23:31
Yes good work ! I need that ;)

davis31b
11 Apr 2007, 05:00
For VB 3.6.5 I had to change the code up a bit for it to work:

Instructions for "No redirect" as default

In the template threadadmin_movethread & threadadmin_movethreads find:

<label for="rb_redirect_none"><input type="radio" name="redirect" value="none" id="rb_redirect_none" />$vbphrase[leave_no_redirect]</label><br />
<label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" checked="checked" />$vbphrase[leave_permanent_redirect]</label><br />
<label for="rb_redirect_expires"><input type="radio" name="redirect" value="expires" id="rb_redirect_expires" />$vbphrase[leave_expiring_redirect]</label><br />


Replace with:

<label for="rb_redirect_none"><input type="radio" name="redirect" value="none" id="rb_redirect_none" checked="checked" />$vbphrase[leave_no_redirect]</label><br />
<label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" />$vbphrase[leave_permanent_redirect]</label><br />
<label for="rb_redirect_expires"><input type="radio" name="redirect" value="expires" id="rb_redirect_expires" />$vbphrase[leave_expiring_redirect]</label><br />

Hornstar
18 May 2007, 11:59
Still working, but if you upgrade to 3.6.6 or higher you will need to apply the template edit again as those templates needed to be reverted.

trulylowcarb
06 Sep 2007, 16:01
Thanks a heap, very useful modification!!!

dvbusuario
27 Jun 2008, 04:51
Very good, thx

Install!

trulylowcarb
04 Aug 2008, 21:26
Thanks, this should be the default anyway!
I was able to just just look at your example, then move the checked=checked part to where I actually wanted it, in 3.7.2.

lazydesis
08 Sep 2008, 17:25
this shud also be extended to "merge thread" .. :)

adpar
23 Dec 2013, 13:54
thank u it worked on 3.8 !!! super!