Redirection Notice: Do Not Leave A Redirect As Default?

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?
 
Yeah in the template: "inline_mod_thread_helper_redirect"

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

Rich (BB 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>
 
Yeah in the template: "inline_mod_thread_helper_redirect"

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

Rich (BB 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.
 
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))))))).
 
I don't see a template called inline_mod_thread_helper_redirect in either the XF Default style or my custom style.

Using XF 2.1.10 Patch 2

The template has changed in XF2.

Edit template helper_action

Find <xf:macro name="thread_redirect" arg-label="!">

But this references a macro called thread_alert

How do I find and edit this macro?
 
Last edited:
I don't see a template called inline_mod_thread_helper_redirect in either the XF Default style or my custom style.

Using XF 2.1.10 Patch 2

The template has changed in XF2.

Edit template helper_action

Find <xf:macro name="thread_redirect" arg-label="!">

But this references a macro called thread_alert

How do I find and edit this macro?
Bumping this. Which template needs to be edited for XF 2.1?
 
Ooh. This is something I have wondered about. If I want to make permanent redirect default option, do I just have to make this change?

Replaced none with permanent?

Code:
xf:radiorow name="redirect_type" value="permanent"
        label="{{ phrase('redirection_notice') }}">
 
Top Bottom