Page Index Toggle Pages: 1 ReplyAdd Poll Send Topic
Normal Topic Hide Old Threads (Read 2592 times)
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Hide Old Threads
Dec 31st, 2014 at 4:54pm
Mark & QuoteQuote  
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 » 
Reason: morebug fixes - new zip file. 

hide_old_threads_2612.zip ( 5 KB | 174 Downloads )
hide_old_threads_German_2611.zip ( 1 KB | 164 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 165
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Mood: Depressed
Zodiac sign: Libra
Re: Hide Old Threads
Reply #1 - Jan 5th, 2015 at 11:49pm
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Hide Old Threads
Reply #2 - Jan 6th, 2015 at 2:45am
Mark & QuoteQuote  
Smiley ARGGHH!
(New zip in 1st post.)
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 165
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Mood: Depressed
Zodiac sign: Libra
Re: Hide Old Threads
Reply #3 - Jan 6th, 2015 at 6:43am
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Hide Old Threads
Reply #4 - Nov 30th, 2015 at 7:35pm
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Hide Old Threads
Reply #5 - Mar 1st, 2016 at 9:36pm
Mark & QuoteQuote  
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
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Hide Old Threads
Reply #6 - Mar 2nd, 2016 at 1:49pm
Mark & QuoteQuote  
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
 
Page Index Toggle Pages: 1
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Hide Old Threads

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry