Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Hide Old Threads (Read 3796 times)
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Hide Old Threads
Reply #6 - Mar 2nd, 2016 at 1:49pm
Print Post  
Better zip in 1st post
added 1 line of language in InstantMessages.lng:
Code
Select All
$messageindex_txt{'nomess'} = q~<span class="small">No threads less than {yabb chopdays} days old</span> ~; 

  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Hide Old Threads
Reply #5 - Mar 1st, 2016 at 9:36pm
Print Post  
Installs in 2.6.12
Edited:
But it doesn't seem to work.  Embarrassed

Edited:
The problem is: the button doesn't do anything when there are no new threads. Will work better in 2.7.00.
« Last Edit: Mar 2nd, 2016 at 12:42am by Dandello »  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Hide Old Threads
Reply #4 - Nov 30th, 2015 at 7:35pm
Print Post  
Um - it doesn't seem work right when the Board with old threads has more than one page.  Embarrassed Got to rethink this.

Edited:
New zip in 1st post - the chop variable hadn't gotten into the 'pageindex' section.
« Last Edit: Nov 30th, 2015 at 10:21pm by Dandello »  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 163
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Re: Hide Old Threads
Reply #3 - Jan 6th, 2015 at 6:43am
Print Post  
Working perfectly now, including the whole timing aspect!
  

If you don't know where you are, but you don't care, you're not lost ... you're exploring!
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Hide Old Threads
Reply #2 - Jan 6th, 2015 at 2:45am
Print Post  
Smiley ARGGHH!
(New zip in 1st post.)
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 163
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Re: Hide Old Threads
Reply #1 - Jan 5th, 2015 at 11:49pm
Print Post  
Unless I have screwed this up somehow, when I enter a number in the board area, and ask it to save it, the number never gets saved.
  

If you don't know where you are, but you don't care, you're not lost ... you're exploring!
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Hide Old Threads
Dec 31st, 2014 at 4:54pm
Print Post  
Hide Old Threads YaBB 2.6.12

This mod adds allows Admins to hide old inactive threads in the Message Index and creates a link so Users can choose to see them.

Version History
---------------
0.5 - March 3, 2015 - better handling on only old threads, bug fixes
0.2 - Dec 31, 2014 (2.6.11)
0.1 - Sep 2, 2014 (2.6.1)
0.5 - Aug 14, 2014 - Mod Hooks (Build 1530)
0.3 alpha - June 23, 2014 - fixed 0 days issue.
0.2 alpha - June 22, 2014
0.1 alpha - First release - June 20, 2014

Instructions:

Apply the mod and upload (in ASCII mode):

cgi-bin/yabb2/Admin/Modlist.pm
cgi-bin/yabb2/Admin/ManageBoards.pm
cgi-bin/yabb2/Languages/English/Admin.lng
cgi-bin/yabb2/Languages/English/MessageIndex.lng
cgi-bin/yabb2/Sources/Load.pm
cgi-bin/yabb2/Sources/MessageIndex.pm
cgi-bin/yabb2/Templates/default/Menu.def
cgi-bin/yabb2/Templates/default/MessageIndex.template

Upload eye_minus.png and eye_plus.png to yabbfiles/ModImages

In the Admin Center -> ManageBoards set the number of days after which inactive threads will be hidden. If no number is set, all threads will be shown.

German translations courtesy Pyragony.
« Last Edit: Mar 2nd, 2016 at 1:51pm by Dandello »  

hide_old_threads_2612.zip (Attachment deleted | 24 Downloads )
hide_old_threads_German_2611.zip (Attachment deleted | 32 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint