PDA

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


Hornstar
09-11-2006, 10:00 PM
Okay I requested this here a while ago then Daniel showed how it was done for 3.5.4 here https://vborg.vbsupport.ru/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://vborg.vbsupport.ru/ :)


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://vborg.vbsupport.ru/ Button if you install this, so i'll update it for future vbulletin releases.

Hornstar
09-12-2006, 06:53 AM
Reserved

Ninth Dimension
09-12-2006, 09:08 AM
Simple, yet effective... thank you :)

Hornstar
09-14-2006, 03:16 AM
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
09-16-2006, 12:09 PM
Thank you! Works great.

Hornstar
10-19-2006, 04:29 AM
Thank you! Works great.

Glad you like it :)

Hornstar
11-15-2006, 11:21 PM
Reverted my templates, and tried this again in 3.6.3 and it is still working perfect.

ND4SPD
12-22-2006, 12:26 AM
Good timesaver!

Tralala
03-09-2007, 09:08 PM
Great, thanks for this...

Muellmann
04-10-2007, 10:18 PM
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
04-10-2007, 10:31 PM
Yes good work ! I need that ;)

davis31b
04-11-2007, 04:00 AM
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
05-18-2007, 10:59 AM
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
09-06-2007, 03:01 PM
Thanks a heap, very useful modification!!!

dvbusuario
06-27-2008, 03:51 AM
Very good, thx

Install!

trulylowcarb
08-04-2008, 08:26 PM
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
09-08-2008, 04:25 PM
this shud also be extended to "merge thread" .. :)

adpar
12-23-2013, 01:54 PM
thank u it worked on 3.8 !!! super!