• 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?

DRE

Well-known member
#1
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?
 

Chris D

XenForo developer
Staff member
#2
Yeah in the template: "inline_mod_thread_helper_redirect"

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

Code:
<ul>
	<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">
			<li>
				<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>
				</select>
			</li>
		</ul>
	</li>
</ul>
 

DRE

Well-known member
#4
Yeah in the template: "inline_mod_thread_helper_redirect"

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

Code:
<ul>
<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">
<li>
<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>
</select>
</li>
</ul>
</li>
</ul>
Thanks alot Chris! You should make this into an addon. Actually anyone can with the TMS but not everyone has TMS.
Sweet. That always annoyed the cr@p outta me.

Thanks for bringin it up 8thos
YW. I'm surprised I tolerated it this long.
 
#8
Redirects as defaults is so annoying
Totally agree.
just edit the template as shown.
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))))))).