Steffen
Well-known member
I think this makes sense if you have a few forums that were very active in the past but nowadays serve mostly (but not only) as archives.
	
	
	
		
				
			
		Diff:
	
	diff --git a/src/XF/Pub/Controller/Forum.php b/src/XF/Pub/Controller/Forum.php
index 5b822e56c..cf337b7b8 100644
--- a/src/XF/Pub/Controller/Forum.php
+++ b/src/XF/Pub/Controller/Forum.php
@@ -370,7 +370,7 @@ class Forum extends AbstractController
     protected function getAvailableDateLimits(\XF\Entity\Forum $forum)
     {
-        return [-1, 7, 14, 30, 60, 90, 182, 365];
+        return [-1, 7, 14, 30, 60, 90, 182, 365, 730, 1825];
     }
     protected function applyForumFilters(\XF\Entity\Forum $forum, \XF\Finder\Thread $threadFinder, array $filters)
diff --git a/src/addons/XF/_data/templates.xml b/src/addons/XF/_data/templates.xml
index 4ae4c6d19..b59e622c5 100644
--- a/src/addons/XF/_data/templates.xml
+++ b/src/addons/XF/_data/templates.xml
@@ -6259,6 +6259,8 @@ html
                 <xf:option value="90">{{ phrase('x_months', {'months': '3'}) }}</xf:option>
                 <xf:option value="182">{{ phrase('x_months', {'months': '6'}) }}</xf:option>
                 <xf:option value="365">{{ phrase('1_year') }}</xf:option>
+                <xf:option value="730">{{ phrase('x_years', {'years': '2'}) }}</xf:option>
+                <xf:option value="1825">{{ phrase('x_years', {'years': '5'}) }}</xf:option>
             </xf:selectrow>
             <xf:macro template="node_edit_macros" name="style" arg-node="{$node}" arg-styleTree="{$styleTree}" />
@@ -41039,6 +41041,8 @@ span.fr-sr-only {
                 <xf:option value="90">{{ phrase('x_months', {'months': '3'}) }}</xf:option>
                 <xf:option value="182">{{ phrase('x_months', {'months': '6'}) }}</xf:option>
                 <xf:option value="365">{{ phrase('1_year') }}</xf:option>
+                <xf:option value="730">{{ phrase('x_years', {'years': '2'}) }}</xf:option>
+                <xf:option value="1825">{{ phrase('x_years', {'years': '5'}) }}</xf:option>
             </xf:select>
         </div>
     </div>
@@ -41806,7 +41810,9 @@ span.fr-sr-only {
         '60': phrase('x_months', {'months': '2'}),
         '90': phrase('x_months', {'months': '3'}),
         '182': phrase('x_months', {'months': '6'}),
-        '365': phrase('1_year')
+        '365': phrase('1_year'),
+        '730': phrase('x_years', {'years': '2'}),
+        '1825': phrase('x_years', {'years': '5'})
     } }}" />
     <xf:set var="$sortOrders" value="{{ {
         'last_post_date': phrase('last_message'),
		
		Upvote
		2
		
	
			