Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.2 (Read 18236 times)
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
[YaBB 2.2.1-2.2.3] Newest Topic Overview 1.2
Jul 20th, 2008 at 7:01pm
Print Post  
Hi YaBB Friends .....

..... a new Mod for YaBB 2.2.1/2.2.2/2.2.3

---------------------------------------------------------------
Newest Topic Overview 1.2 - Final Version -
for YaBB 2.2.1/2.2.2/2.2.3
----------------------------------------------------------------


Author Information:

Code Modification and Mod Writer: ThM

Description:

This Mod add a Drop-Down Selection Field into the Info-Center. You can select 5, 10, 25 or 50 newest Topics for Viewing in a Overview. It's possible to enable/disable these Option in your Admin Panel - Global Settings - Tab Posting.

Screenshot Settings: (Version 1.1)



Screenshot Info-Center: Version 1.1)



Zip Package included:

NOTICE: Four seperate Modfiles available. One, only for using with yabb 2.2.3, one with using for yabb 2.2.1 and 2.2.2 and two compatible with Recent Post Menu !! If you want you use it with Recent Posts Menu please use the included compatible modfile for that !!

  • Newest_Topics_Mod_V1_2.mod [YaBB 2.2.3]
  • Newest_Topics_Mod_223_MRPC_V1_2.mod [Only for using YaBB 2.2.3 AND Recent Post Menu (MRPC)]
  • Newest_Topics_Mod_221_222_V1_2.mod[YaBB 2.2.1/2.2.2]
  • Newest_Topics_Mod_221_222_MRPC_V1_2.mod [Only for using YaBB 2.2.1/2.2.2 AND Recent Post Menu (MRPC)]
  • Newest_Topics_Mod_German_Du_V1_2.mod [YaBB 2.2.1/2.2.2/2.2.3 and compatible]
  • Newest_Topics_Mod_German_V1_2.mod[YaBB 2.2.1/2.2.2/2.2.3 and combatible]

Installation:

1) Modify YaBB files using BoardMod or manually.
2) Load modified files to your server in ASCII mode.

  • Admin/Modlist.pl
  • Admin/ManageTemplates.pl
  • Admin/Admin/NewSettings.pl
  • Admin/Settings_Main.pl
  • Languages/English/BoardIndex.lng
  • Languages/English/Main.lng
  • Languages/English/Admin.lng
  • Sources/BoardIndex.pl
  • Sources/Recent.pl
  • Templates/default/BoardIndex.template
  • Templates/yabb21/BoardIndex.template


Mod History:

Version 1.0 - 20.07.2008
- Initial Release
Version 1.1 - 20.07.2008
- Bug fixed: Author Name was show twice
- Bug fixed: Display shows everytime the newest 10 Posts no 5 or 25  
Version 1.2 - 22.07.2008 (FINAL VERSION)
- Code Modification in Recent.pl
- Bug fixed in Topic Display Overview if a Topic was moved by:
- Style Modification for all Versions - Now it displays in the Title the Number of Newest Topics and link color change
- New Selection Option - Show the newest 50 Topics
- Change in Language Strings and adding a new String
- New German Language File
- Makes it compatible with Recent Posts Menu for 2.2.1 - 2.2.3 - If you want to use Recent Posts Menu AND Newest Topic please install Recent Posts Menu first!

Note: Tested on a fresh YaBB 2.2.1/2.2.2/2.2.3 installation



Feedback welcome  Smiley
« Last Edit: Jul 22nd, 2008 at 12:49pm by ThM »  

Newest_Topics_V1_2.zip ( 13 KB | Downloads )

Greeting ThM
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.0
Reply #1 - Jul 20th, 2008 at 9:00pm
Print Post  
Great... Works fine.

Maybe a future version could be compatible with your Recent Posts Menu Mod?  Smiley
  
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.0
Reply #2 - Jul 20th, 2008 at 9:25pm
Print Post  
New zip File at the first Post !


Works not fine - sorry

Two Bugs found .........  Tongue

First: Author Name was show twice
Second: Display shows everytime the newest 10 Posts no 5 or 25

Please de-install the Version 1.0 and install the Version 1.1. new.

Sorry again.... i hope i have solved these two bugs. Runs now with my board.

Quote:
Maybe a future version could be compatible with your Recent Posts Menu Mod?  Smiley


I will take a look for this in the next few days  Wink

  

Greeting ThM
Back to top
 
IP Logged
 
pyragony
Junior Member
**
Offline


abgeschlafft und ausgebufft

Posts: 85
Location: Eichenau
Joined: Apr 26th, 2008
Gender: Male
Re: [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.1
Reply #3 - Jul 21st, 2008 at 5:08am
Print Post  
German Patch

Im German Patch ist ein Fehler:

Falsch:
[quote]<search for>
%pidtxt = (
'01' => 'alle',
'02' => 'Klicke hier zur vorherige Seite - Doppelklick zur ersten Seite.',
'03' => 'Klicke hier zur nächste Seite - Doppelklick zur letzten Seite.',
);
</search for>[/quote]


Richtig wäre:

[quote]<search for>
%pidtxt = (
'01' => 'alle',
'02' => 'Klicken Sie hier zur vorherige Seite - Doppelklick zur ersten Seite.',
'03' => 'Klicken Sie hier zur nächste Seite - Doppelklick zur letzten Seite.',
);
</search for>[/quote]


Germand_Du ist korrekt.
  

Newest_Topics_Mod_German_V1_0.mod (Attachment deleted)

Back to top
WWW  
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.2
Reply #4 - Jul 22nd, 2008 at 10:26am
Print Post  
New zip File at the First Post
- Final Version 1.2 -


Changes:

Version 1.2 - 22.07.2008 (FINAL VERSION)
- Code Modification in Recent.pl
- Bug fixed in Topic Display Overview if a Topic was moved by:
- Style Modification for all Versions - Now it displays in the Title the Number of Newest Topics and link color change
- New Selection Option - Show the newest 50 Topics
- Change in Language Strings and adding a new String
- New German Language File
- Makes it compatible with Recent Posts Menu for 2.2.1 - 2.2.3 - If you want to use Recent Posts Menu AND Newest Topic please install Recent Posts Menu first!

Please de-install old Version from these mod and install the Final Version 1.2. new.

Thanks  Wink

« Last Edit: Jul 22nd, 2008 at 12:46pm by ThM »  

Greeting ThM
Back to top
 
IP Logged
 
Derek Bullock
Full Member
***
Offline


I love Camp Oven Cooking

Posts: 184
Location: Brisbane
Joined: Nov 9th, 2007
Gender: Male
Re: [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.2
Reply #5 - Aug 2nd, 2008 at 10:25am
Print Post  
Just added this new version but have this problem.  Drop down box in Recent Posts and Recent topics are different sizes.  See photo

How can I change them.

  

Back to top
WWW  
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.2
Reply #6 - Aug 2nd, 2008 at 3:49pm
Print Post  
I know Derek.  Grin

That comes from the different select Options in the dropdown boxes . On the Last recent Posts it's possible to select up to 100 and on the newest topic overview last select option up to 50.

The easiest way to solution:

Set the last Recent Topic Posts select option to 50 (It's more as enough). 

How to make this. Take a look at this Post:   Wink

http://www.boardmod.org/yabb/YaBB.pl?board=beta_y22;action=display;num=120912924...
  

Greeting ThM
Back to top
 
IP Logged
 
Outumuro
God Member
*****
Offline


Publisher - YaBB Toolbar

Posts: 569
Location: Los Angeles
Joined: Apr 14th, 2004
Gender: Male
Re: [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.2
Reply #7 - Aug 5th, 2008 at 12:51pm
Print Post  
Handy mod ThM! Smiley

News item - Newest Topic Overview 1.2.
  


Back to top
WWW  
IP Logged
 
JonB
New Member
*
Offline


Gee I don't know

Posts: 42
Joined: Aug 25th, 2008
Gender: Male
Re: [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.2
Reply #8 - Aug 25th, 2008 at 7:46pm
Print Post  
Hi -

Before I commit admin harakiri and install this mod, can you select WHICH boards you wish to have in Reverse Order? or is it a global seeting - LOL I MAY have misunderstood this mod, too

Wink
  
Back to top
 
IP Logged
 
Captain John
Senior Member
****
Offline


Pass to Port !

Posts: 264
Location: Reno Beach
Joined: Jan 18th, 2007
Gender: Male
Re: [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.2
Reply #9 - Aug 27th, 2008 at 3:45am
Print Post  
JonB wrote on Aug 25th, 2008 at 7:46pm:
Hi -

Before I commit admin harakiri and install this mod, can you select WHICH boards you wish to have in Reverse Order? or is it a global seeting - LOL I MAY have misunderstood this mod, too  Wink


This MOD doesn't change order of Topics ... just allows how many New Topics are displayed
  

Love to live and love on the water
Back to top
 
IP Logged
 
freediver
New Member
*
Offline



Posts: 48
Joined: Nov 21st, 2006
Re: [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.2
Reply #10 - Sep 3rd, 2008 at 11:15am
Print Post  
Admin/Admin/NewSettings.pl

Installed. My recent list looks OK, but the dropdown box in the forum stats area isn't working.

http://www.ozpolitic.com/forum/YaBB.pl

Any chance of a recent list that is formatted more like a board? One that has an indicator for hot topics, thread smilies, a new post indicatror, replies, views and last post author?

The new topic indicator would be most useful.
  

Founding member of
Back to top
WWW  
IP Logged
 
freediver
New Member
*
Offline



Posts: 48
Joined: Nov 21st, 2006
Re: [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.2
Reply #11 - Sep 5th, 2008 at 1:46am
Print Post  
Also, the stuff on the right hand side of my forum stats area is missing - number of registered members with link to member list, most recent member, PMs.
  

Founding member of
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.2
Reply #12 - Sep 5th, 2008 at 3:46am
Print Post  
It sounds like you've got some code missing from BoardIndex.pl... If you don't have any other MODs installed, the easiest thing to do would be to upload a fresh BoardIndex.pl from back-up or from a fresh YaBB download and change the code to that file...

Step nine...

Code
Select All
<edit file>
Sources/BoardIndex.pl
</edit file>

<search for>
		$boardindex_template =~ s/({|<)yabb lastpostlink(}|>)/$lastpostlink/g;
		$boardindex_template =~ s/({|<)yabb recentposts(}|>)/$recentpostslink/g;
		$boardindex_template =~ s/({|<)yabb lastpostdate(}|>)/$tmlsdatetime/g;
	} else {
		$boardindex_template =~ s/({|<)yabb lastpostlink(}|>)//g;
		$boardindex_template =~ s/({|<)yabb recentposts(}|>)//g;
		$boardindex_template =~ s/({|<)yabb lastpostdate(}|>)//g;
	}
</search for>

<add before>
		$newesttopics .= qq~<br />$boardindex_txt{'791'} <form method="post" action="$scripturl?action=recentlist" style="font-size: 10px; font-weight: normal;" name="recentlist" style="display: inline">~ if $shownewesttopics;
		$newesttopics .= qq~<select size="1" name="display" onchange="if(this.options[this.selectedIndex].value) window.location.href='$scripturl?action=recentlist' + this.options[this.selectedIndex].value;">~ if $shownewesttopics;
		$newesttopics .= qq~<option value="5" selected="selected">---</option>~ if $shownewesttopics;
		$newesttopics .= qq~<option value=";display=5">5</option>~ if $shownewesttopics;
		$newesttopics .= qq~<option value=";display=10">10</option>~ if $shownewesttopics;
		$newesttopics .= qq~<option value=";display=25">25</option>~ if $shownewesttopics;
		$newesttopics .= qq~<option value=";display=50">50</option>~ if $shownewesttopics;
		$newesttopics .= qq~</select> $boardindex_txt{'804'}~ if $shownewesttopics;
		$newesttopics .= qq~</form><br>~ if $shownewesttopics;
		$boardindex_template =~ s/({|<)yabb newesttopics(}|>)/$newesttopics/g;
</add before> 

  
Back to top
 
IP Logged
 
freediver
New Member
*
Offline



Posts: 48
Joined: Nov 21st, 2006
Re: [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.2
Reply #13 - Sep 5th, 2008 at 5:44am
Print Post  
I just checked against a fresh version of the file in araxis merge. The only difference I found was the one you highlighted above.

My code:

Code
Select All
	if ($Show_RecentBar) {
		$lssub = &Censor($lssub);
		$lssub =~ s/\[m.*?\]/$maintxt{'758'}/;
		&ToChars($lssub);
		$tmlsdatetime    = qq~($lsdatetime).<br />~;
		$lastpostlink    = qq~$boardindex_txt{'236'} <b><a href="$scripturl?num=$lspostid/$lsreply#$lsreply"><b>$lssub</b></a></b>~;
		$recentpostslink = qq~$boardindex_txt{'791'} <a href="$scripturl?action=recent;display=10">$boardindex_txt{'792'}</a> $boardindex_txt{'793'}~;
		$newesttopics .= qq~<br />$boardindex_txt{'791'} <form method="post" action="$scripturl?action=recentlist" style="font-size: 10px; font-weight: normal;" name="recentlist" style="display: inline">~ if $shownewesttopics;
		$newesttopics .= qq~<select size="1" name="display" onchange="if(this.options[this.selectedIndex].value) window.location.href='$scripturl?action=recentlist' + this.options[this.selectedIndex].value;">~;
		$newesttopics .= qq~<option value="5" selected="selected">---</option>~ if $shownewesttopics;
		$newesttopics .= qq~<option value=";display=5">5</option>~ if $shownewesttopics;
		$newesttopics .= qq~<option value=";display=10">10</option>~ if $shownewesttopics;
		$newesttopics .= qq~<option value=";display=25">25</option>~ if $shownewesttopics;
		$newesttopics .= qq~<option value=";display=50">50</option>~ if $shownewesttopics;
		$newesttopics .= qq~</select> $boardindex_txt{'804'}~ if $shownewesttopics;
		$newesttopics .= qq~</form><br>~ if $shownewesttopics;
		$boardindex_template =~ s/({|<)yabb newesttopics(}|>)/$newesttopics/g;
		$boardindex_template =~ s/({|<)yabb lastpostlink(}|>)/$lastpostlink/g;
		$boardindex_template =~ s/({|<)yabb recentposts(}|>)/$recentpostslink/g;
		$boardindex_template =~ s/({|<)yabb lastpostdate(}|>)/$tmlsdatetime/g;
	} else {
		$boardindex_template =~ s/({|<)yabb lastpostlink(}|>)//g;
		$boardindex_template =~ s/({|<)yabb recentposts(}|>)//g;
		$boardindex_template =~ s/({|<)yabb lastpostdate(}|>)//g;
	} 

  

Founding member of
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: [YaBB 2.2.1-2.2.3] Newest Topic Overview 1.2
Reply #14 - Sep 5th, 2008 at 2:40pm
Print Post  
Have you tried uploading a fresh file with those changes?

Also, make sure that all the code is where it should be in Templates/default/BoardIndex.template

Did you install it manually or with BoardMod?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint