Page Index Toggle Pages: [1]  ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) Hide Old Threads (Read 9990 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
Jun 21st, 2014 at 12:35am
Mark & QuoteQuote  
This mod adds allows Admins to hide old inactive threads in the Message Index and creates a button so Users can choose to see them.

Should be useful for BIG Boards

Version History
---------------
0. alpha - July 8, 2014 - fixed button issue
0.3 alpha - June 23, 2014 - fixed 0 days issue.
0.2 alpha - June 22, 2014
0.1 alpha - First release - June 20, 2014

For YaBB 2.6.0

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/Templates/Forum/default

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.

Package also contains:
hot_German_ANSI.mod
hot_German_utf8.mod
hot_German_du_ANSI.mod
hot_German_du_utf8.mod

Choose the encoding appropriate for your installation - ANSI for upgraded forums, utf8 for new forums.
« Last Edit: Jul 8th, 2014 at 10:44pm by Dandello »  

hide_old_threads_yabb260_4.zip ( 7 KB | 171 Downloads )

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


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Hide Old Threads
Reply #1 - Jun 22nd, 2014 at 1:00pm
Mark & QuoteQuote  
Code
Select All
<edit file>
 Languages/German/Admin.lng
 </edit file>

 <search for>
 );

 %floodtxt = (
 </search for>

 <add before>
 'chopthread' => 'Verstecke alte Themen',
 'chopthread2' => '<br />Um nur die aktiven Beiträge, die neuer sind als XXX Tage anzuzeigen, geben Sie hier einen Wert ein.<br />0 (Null) für keine Beschränkung.<br /><b>Note: Standardwert für neue Foren = 0</b>',
 </add before>

 <edit file>
 Languages/German/MessageIndex.lng
 </edit file>

 <search for>
 );

 %messageindex_sort = (
 </search for>

 <add before>
 'chopshow' => 'Zeige alle Themen',
 'chop' => q~Zeige letzte aktive Themen~,
 'choptitle' => 'Nicht mehr als {yabb chopdays} Tage alt',
 </add before> 



Code
Select All
<edit file>
 Languages/German_Du/Admin.lng
 </edit file>

 <search for>
 );

 %floodtxt = (
 </search for>

 <add before>
 'chopthread' => 'Verstecke alte Themen',
 'chopthread2' => '<br />Um nur die aktiven Beiträge, die neuer sind als XXX Tage anzuzeigen, gebe hier einen Wert ein.<br />0 (Null) für keine Beschränkung.<br /><b>Note: Standardwert für neue Foren = 0</b>',
 </add before>

 <edit file>
 Languages/German_Du/MessageIndex.lng
 </edit file>

 <search for>
 );

 %messageindex_sort = (
 </search for>

 <add before>
 'chopshow' => 'Zeige alle Themen',
 'chop' => q~Zeige letzte aktive Themen~,
 'choptitle' => 'Nicht mehr als {yabb chopdays} Tage alt',
 </add before> 


  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Hide Old Threads
Reply #2 - Jun 22nd, 2014 at 1:49pm
Mark & QuoteQuote  
Uppppsssss!!!!!

A empty window?
As yet, what should be written.
  

Bild2_002.jpg ( 44 KB | 193 Downloads )

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
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 #3 - Jun 22nd, 2014 at 2:31pm
Mark & QuoteQuote  
Um, Are you sure you installed your German mod?  Wink (Because they both installed fine on my testboard.)

New zip in the first post.
  

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


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Hide Old Threads
Reply #4 - Jun 22nd, 2014 at 2:41pm
Mark & QuoteQuote  
I have switched to English, the same. It says nothing.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
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 #5 - Jun 22nd, 2014 at 5:15pm
Mark & QuoteQuote  
That's weird as I just installed a fresh copy of build 1501 on my home server and installed Hide Old Threads and it shows up fine in the Admin Center.

  

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


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Hide Old Threads
Reply #6 - Jun 22nd, 2014 at 5:20pm
Mark & QuoteQuote  
I also have the 1501, but I have already installed some mods. Maybe it is not compatible with any. Regardless, I do not need him so and so.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
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 #7 - Jun 22nd, 2014 at 5:21pm
Mark & QuoteQuote  
It's also possible you grabbed the very first zip which may have had some typos.
  

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


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Hide Old Threads
Reply #8 - Jun 22nd, 2014 at 5:35pm
Mark & QuoteQuote  
hide_old_threads_yabb260_2.zip i have
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
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 #9 - Jun 22nd, 2014 at 6:57pm
Mark & QuoteQuote  
Okay - this is just weird.

The two language variables that aren't showing up for you are $admin_txt{'chopthread'} and $admin_txt{'chopthread2'}

Make sure they are in Admin/ManageBoards.pm

Later this afternoon I'll install the mod on this board.

Maybe there's another Mod using 'chopthread' as an identifier?
  

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 #10 - Jun 22nd, 2014 at 7:36pm
Mark & QuoteQuote  
Just added the Mod here - The YaBB News section is currently set to hide posts older than 100 days.
  

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


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Hide Old Threads
Reply #11 - Jun 23rd, 2014 at 7:55am
Mark & QuoteQuote  
So I do not understand it myself. I've searched all the mods and found nothing. Get the forum play again today and re-install the mod first. Let's see what happens then. The mod itself works, the button is displayed.

The Help - files I must make ready.
« Last Edit: Jun 23rd, 2014 at 12:00pm by pyragony54 »  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
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 #12 - Jun 23rd, 2014 at 12:51pm
Mark & QuoteQuote  
And I found the problem - Slider Catcha must be installed LAST.
  

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


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Hide Old Threads
Reply #13 - Jun 23rd, 2014 at 1:48pm
Mark & QuoteQuote  
Then I would not have come. I had, however, only uninstall this mod to remove slider Capcha. The total conflict.
And it works.

But as I said, I need this mod not, it must still come with all the mods still work. Conflicts but it will always exist, especially with very complex mods like "YaMMS". There is still a lot of work to us.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
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 #14 - Jun 23rd, 2014 at 2:27pm
Mark & QuoteQuote  
What's happening (and XTC will have it fixed in the next version of Slider Captcha):
Slider Captcha put its language list above the string that most Mods use to find the end of %admin_txt. That meant the new language string that should have been added to %admin_txt ended up being added to the Slider Captcha section instead.

So the next version of Slider Captcha should be compatable with other Mods.
  

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


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Hide Old Threads
Reply #15 - Jun 23rd, 2014 at 2:34pm
Mark & QuoteQuote  
I have already read. XTC is there very fast in this relationship.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
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 #16 - Jun 23rd, 2014 at 6:08pm
Mark & QuoteQuote  
Minor issue with button showing when it shouldn't.
New zip in first post
  

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


I Love YaBB!

Posts: 36
Joined: Feb 12th, 2014
Mood: Confused
Re: Hide Old Threads
Reply #17 - Jun 26th, 2014 at 7:52pm
Mark & QuoteQuote  
I like the idea of this mod but I was wondering, instead of just hiding old threads maybe having the option of only locking old threads. Might be nice.
  
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 #18 - Jun 26th, 2014 at 8:24pm
Mark & QuoteQuote  
That sounds like a good addition to Hide Old Threads.
  

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 #19 - Jul 8th, 2014 at 10:43pm
Mark & QuoteQuote  
Found some issues. New zip in first post.
  

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 10000 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