Changing Redirect Default Selections

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Removed-1078464
    Senior Member
    • Oct 2004
    • 796
    • 3.6.x

    Changing Redirect Default Selections

    Group,

    Anyone know what areas I need to edit in order to change the default selections for the "Redirect" when moving a post?

    Default shows a radio button next to "Leave Permanent Redirect" and next to "Leave Expiring Redirect", "Expires in (1) (Months).

    What I would like to do is change which selection by default the radio button is located next to, as well as change the default settings for the expiring redirection drop down menus.

    Can anyone help me with this?

    Thanks much

    Doug
  • peterska2
    Senior Member
    • Oct 2003
    • 8869
    • 3.7.x

    #2
    You need to edit the threadadmin_move* templates

    Each template is slightly different but they call contain similar code from the area starting


    <legend>$vbphrase[redirect]</legend>

    Comment

    • Removed-1078464
      Senior Member
      • Oct 2004
      • 796
      • 3.6.x

      #3
      Doesnt really help me out much, sorry.

      Doug

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        Admin CP -> Styles & Templates -> Style Manager -> « » -> Thread Administration Templates -> threadadmin_movethread

        Move the red code appropriately to change the default selections (you have to scroll right for one of the red pieces), and add the blue code to that one menu that has no default (place it next to any option, I added it to the number 2 as an example):

        Code:
        		<if condition="$show['move']">
        		<fieldset class="fieldset">
        			<legend>$vbphrase[redirect]</legend>
        			
        			<div style="padding:$stylevar[formspacer]px">
        			
        			<div class="fieldset">
        					<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" [color=red]checked="checked"[/color] />$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 />
        					<img style="padding-left: 4px" class="inlineimg" src="$stylevar[imgdir_misc]/tree_$stylevar[textdirection].gif" alt="" border="0" /> $vbphrase[expires_in] 
        					<select name="period">
        						<option value="1">1</option>
        						<option value="2" [color=blue]selected="selected"[/color]>2</option>
        						<option value="3">3</option>
        						<option value="4">4</option>
        						<option value="5">5</option>
        						<option value="6">6</option>
        						<option value="7">7</option>
        						<option value="8">8</option>
        						<option value="9">9</option>
        						<option value="10">10</option>
        					</select>
        					
        					<select name="frame">
        						<option value="h">$vbphrase[hours]</option>
        						<option value="d">$vbphrase[days]</option>
        						<option value="w">$vbphrase[weeks]</option>
        						<option value="m" [color=red]selected="selected"[/color]>$vbphrase[months]</option>
        						<option value="y">$vbphrase[years]</option>
        					</select>
        			</div>
        			
        			<div class="fieldset">
        				$vbphrase[redirect_title]:<br />
        				<input type="text" class="bginput" name="redirecttitle" value="$title" size="50" maxlength="85" />
        			</div>
        			
        			</div>
        		</fieldset>
        		</if>

        Comment

        • Removed-1078464
          Senior Member
          • Oct 2004
          • 796
          • 3.6.x

          #5
          Thanks Jake, I will give that a try and let ya know.

          Also is that the only table that I will need to edit that pertains to redirects?

          Nevermind, I found it... movethreads as well.

          Thanks fo the help with this Jake, Once I did a little digging I was able to figure it all out and now have it working the way I want it.

          Doug
          Last edited by Removed-1078464; Mon 10 Dec '07, 6:32am.

          Comment

          • djbaxter
            Senior Member
            • Aug 2006
            • 1418
            • 4.2.5

            #6
            Great stuff! I've been wondering if there were an add-on for this. Thanks, Jake.
            Psychlinks Web Services Affordable Web Design & Site Management
            Specializing in Small Businesses and vBulletin/Xenforo Forums

            Comment

            • djbaxter
              Senior Member
              • Aug 2006
              • 1418
              • 4.2.5

              #7
              Turns out you need to edit TWO templates in vBulletin 3.6.8 PL2 (not sure about earlier versions):

              Admin CP -> Styles & Templates -> Style Manager -> « » -> Thread Administration Templates -> threadadmin_movethread

              and

              Admin CP -> Styles & Templates -> Style Manager -> « » -> Thread Administration Templates -> threadadmin_movethreads
              Psychlinks Web Services Affordable Web Design & Site Management
              Specializing in Small Businesses and vBulletin/Xenforo Forums

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...