The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Move threads with leave no redirect as default or Expired redirect as default Details »» | |||||||||||||||||||||||||||
Move threads with leave no redirect as default or Expired redirect as default
Developer Last Online: Dec 2013
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 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: Code:
<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 /> Code:
<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: Code:
<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 /> Code:
<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: Code:
<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 /> Code:
<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: Code:
<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 /> Code:
<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 /> Show Your Support
|
Comments |
#12
|
|||
|
|||
Yes good work ! I need that
|
#13
|
|||
|
|||
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: Code:
<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 /> Code:
<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 /> |
#14
|
|||
|
|||
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.
|
#15
|
||||
|
||||
Thanks a heap, very useful modification!!!
|
#16
|
||||
|
||||
Very good, thx
Install! |
#17
|
||||
|
||||
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. |
#18
|
|||
|
|||
this shud also be extended to "merge thread" ..
|
#19
|
|||
|
|||
thank u it worked on 3.8 !!! super!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|