1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirection Notice: Do Not Leave A Redirect As Default?

Discussion in 'Styling and Customization Questions' started by DRE, Mar 8, 2013.

  1. DRE

    DRE Well-Known Member

    Hi. I noticed when moving threads, 'Do not leave a redirect' is the first option but is not automatically selected. Instead 'Leave a redirect that expires after:' certain amount of days is automatically selected. How do I make the 'Do not leave a redirect' option automatically selected?
  2. Chris D

    Chris D XenForo Developer Staff Member

    Yeah in the template: "inline_mod_thread_helper_redirect"

    Add the code in green and remove the code in red:

    	<li><label for="ctrl_create_redirect_none"><input type="radio" name="create_redirect" value="" id="ctrl_create_redirect_none" checked="checked" /> {xen:phrase do_not_leave_redirect}</label></li>
    	<li><label for="ctrl_create_redirect_permanent"><input type="radio" name="create_redirect" value="permanent" id="ctrl_create_redirect_permanent" /> {xen:phrase leave_permanent_redirect}</label></li>
    	<li><label for="ctrl_create_redirect_expiring"><input type="radio" name="create_redirect" value="expiring" id="ctrl_create_redirect_expiring" checked="checked" class="Disabler" /> {xen:phrase leave_redirect_that_expires_after}:</label>
    		<ul id="ctrl_create_redirect_expiring_Disabler">
    				<input type="text" size="5" name="redirect_ttl_value" value="1" class="textCtrl autoSize" />
    				<select name="redirect_ttl_unit" class="textCtrl autoSize">
    					<option value="hours">{xen:phrase hours}</option>
    					<option value="days" selected="selected">{xen:phrase days}</option>
    					<option value="weeks">{xen:phrase weeks}</option>
    					<option value="months">{xen:phrase months}</option>
  3. gordy

    gordy Well-Known Member

    Sweet. That always annoyed the cr@p outta me.

    Thanks for bringin it up 8thos
    Chris D likes this.
  4. DRE

    DRE Well-Known Member

    Thanks alot Chris! You should make this into an addon. Actually anyone can with the TMS but not everyone has TMS.
    YW. I'm surprised I tolerated it this long.
  5. Lone Wolf

    Lone Wolf Well-Known Member

    Does this still work? Redirects as defaults is so annoying
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, just edit the template as shown.
    Lone Wolf likes this.
  7. Lone Wolf

    Lone Wolf Well-Known Member

    Thanks Brogan, I'll try it now
  8. Luna

    Luna Member

    Totally agree.
    Editing the templates each time after they are changed or updated is not so "just"

    I'm hoping to find some smart plugin that would keep those settings as defaults
    - Move threads. Do not leave a redirect. Checked
    - Move threads. Notify thread starter. Unchecked
    - Move threads. Notify subscribers. Unchecked
    - Edit post. Notify author. Unchecked
    - and maybe other defaulted notifications about moderation that I forgot.

    If anybody knows a plugin like this, please don't leave behind those in need))))))).

Share This Page