Page Index Toggle Pages: [1] 2 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) [YaBB 2.3.1] Recent Posts Menu 1.0 (Read 14508 times)
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
[YaBB 2.3.1] Recent Posts Menu 1.0
Jan 21st, 2009 at 5:11pm
Print Post  
Hi YaBB Friends .....

..... Mod updated for YaBB 2.3.1

Recent Posts Menu for YaBB 2.3.1 Version 1.0


Author Information:

Original Code by ztc
Code Modification and Mod Writer: ThM

Credit: Special Thanks goes to ztc for the permission to update his Mod for YaBB Versions after 2.1 -  Wink

Description:

This simple mod replaces the most recent posts link with a pull-down menu. Small layout and code modifications in this version compared with the previous versions..

Screenshots:




Zip Package included:

  • Recent Posts Menu 1.0
  • Recent Posts Menu 1.0 German_Du Patch
  • Recent Posts Menu 1.0 German Patch

Installation:

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

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

Mod History:

- First Relaese for YaBB 2.3.1 on January, 21th 2009 - Version 1.0

Note: Tested on a fresh YaBB 2.3.1 installation

« Last Edit: Jan 27th, 2009 at 6:40am by ThM »  

recent_posts_menu.zip ( 3 KB | Downloads )

Greeting ThM
Back to top
 
IP Logged
 
chillipepper
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 189
Joined: Jul 1st, 2008
Gender: Male
Re: [YaBB 2.3.1] Recent Posts Menu 1.0
Reply #1 - Jan 21st, 2009 at 5:32pm
Print Post  
Install ok on a new 2.3.1 forum.. Smiley
  
Back to top
 
IP Logged
 
cjs12505
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 22
Joined: Jan 3rd, 2009
Re: [YaBB 2.3.1] Recent Posts Menu 1.0
Reply #2 - Jan 21st, 2009 at 6:28pm
Print Post  
HI Folks,

Did not work this end...

2.3.1
Event Calendar / Birthday List V1.3      
Countdown Event      
Quiz 0.5 YaBB23 231
Custompages

Returned a blank line



Kind Regards
Chris


  
Back to top
 
IP Logged
 
chillipepper
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 189
Joined: Jul 1st, 2008
Gender: Male
Re: [YaBB 2.3.1] Recent Posts Menu 1.0
Reply #3 - Jan 21st, 2009 at 6:42pm
Print Post  
works ok also on my modded board
mods are
Yamms 4
Autotab 4
Boardveiwer V1.1
ChatIRC V1
Hotlinks 4
Whoposted V1
UserToday V2.1
Eventcal V1.3
Quiz 05a
Boardpass V2
Recent Post Menu
  
Back to top
 
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: [YaBB 2.3.1] Recent Posts Menu 1.0
Reply #4 - Jan 21st, 2009 at 10:29pm
Print Post  
Hi,

I get an step-fault on step 7. Search string could not
be found.

I compare the search string with the part in my boardindex.pl:
(first lines = searchstring, second lines from my boardindex.pl)

Code
Select All
		$lastpostlink    = qq~$boardindex_txt{'236'} <b><a href="$scripturl?num=$lspostid/$lsreply#$lsreply"><b>$lssub</b></a></b>~;
		$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'}~;
		$recentpostslink = qq~$boardindex_txt{'791'} <a href="$scripturl?action=recent;display=25">$boardindex_txt{'792'}</a> $boardindex_txt{'793'}~;

		$boardindex_template =~ s/({|<)yabb lastpostlink(}|>)/$lastpostlink/g;
		$boardindex_template =~ s/({|<)yabb lastpostlink(}|>)/$lastpostlink/g;

		$boardindex_template =~ s/({|<)yabb recentposts(}|>)/$recentpostslink/g;
		$boardindex_template =~ s/({|<)yabb recentposts(}|>)/$recentpostslink/g;

		$boardindex_template =~ s/({|<)yabb lastpostdate(}|>)/$tmlsdatetime/g;
		$boardindex_template =~ s/({|<)yabb lastpostdate(}|>)/$tmlsdatetime/g;

	} else {
	} else {

		$boardindex_template =~ s/({|<)yabb lastpostlink(}|>)//g;
		$boardindex_template =~ s/({|<)yabb lastpostlink(}|>)//g;

		$boardindex_template =~ s/({|<)yabb recentposts(}|>)//g;
		$boardindex_template =~ s/({|<)yabb recentposts(}|>)//g;

		$boardindex_template =~ s/({|<)yabb lastpostdate(}|>)//g;
		$boardindex_template =~ s/({|<)yabb lastpostdate(}|>)//g;

	}
	}
 



Because I can't see a difference, I change the search-string
with the code of my BoardIndex.pl
After this, it runs.

Installed with little Problems, runs well!

(Don't have problem like cjs12505, post #2)

Thank You, ThM!!
Edited:
Boah! I see the different now!!

I changed original BoardIndex.pl to see 25, not 10, last posts...
Code
Select All
		$recentpostslink = qq~$boardindex_txt{'791'} <a href="$scripturl?action=recent;display=10">$boardindex_txt{'792'}</a> $boardindex_txt{'793'}~;
		$recentpostslink = qq~$boardindex_txt{'791'} <a href="$scripturl?action=recent;display=25">$boardindex_txt{'792'}</a> $boardindex_txt{'793'}~; 



I get old...

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



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: [YaBB 2.3.1] Recent Posts Menu 1.0
Reply #5 - Jan 22nd, 2009 at 7:32am
Print Post  
cjs12505 wrote on Jan 21st, 2009 at 6:28pm:
Returned a blank line


Are you sure, you have upload all changed files ?

mick wrote on Jan 21st, 2009 at 10:29pm:
I get old...


Grin
  

Greeting ThM
Back to top
 
IP Logged
 
cjs12505
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 22
Joined: Jan 3rd, 2009
Re: [YaBB 2.3.1] Recent Posts Menu 1.0
Reply #6 - Jan 22nd, 2009 at 7:48am
Print Post  
ThM wrote on Jan 22nd, 2009 at 7:32am:
Are you sure, you have upload all changed files ?


Re-installed.  This time manually uploaded files 1 by 1.

Mod is good.  Working fine - thanks very much for the mod and response... appreciated.

Original upload I used Core Ftp and just tagged all folders to upload and initiated a overwrite if more recent function - obviously something decided not to overwrite...  Manual sorted it...

Cheers,
Kind Regards
Chris
  
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.3.1] Recent Posts Menu 1.0
Reply #7 - Jan 22nd, 2009 at 12:22pm
Print Post  
Perfectly. It extended directly on 99

Look

http://anti-scam.de
  

Back to top
WWW  
IP Logged
 
chillipepper
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 189
Joined: Jul 1st, 2008
Gender: Male
Re: [YaBB 2.3.1] Recent Posts Menu 1.0
Reply #8 - Jan 22nd, 2009 at 1:20pm
Print Post  
Hi ThM.I would like to change the background from white to blue and change the text to red so it blends  in with my new template colors..how would i do this..Thanks
  
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: [YaBB 2.3.1] Recent Posts Menu 1.0
Reply #9 - Jan 22nd, 2009 at 4:28pm
Print Post  
Ok ....

first .....

Code
Select All
<search for>
<select size="1" style="font-size: 7pt; font-family: Verdana" name="display" onchange="submit()">
</search for> 


and add  the highlighted.......

Code
Select All
<select size="1" style="font-size: 7pt; font-family: Verdana" class="mrp" name="display" onchange="submit()"> 



second ......

open your template css source file and add ....


Code
Select All
.mrp {
	color: #ff0000;
	background-color: #0000ff;
} 


  

Greeting ThM
Back to top
 
IP Logged
 
chillipepper
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 189
Joined: Jul 1st, 2008
Gender: Male
Re: [YaBB 2.3.1] Recent Posts Menu 1.0
Reply #10 - Jan 22nd, 2009 at 5:24pm
Print Post  
Thank you,That did the trick  Wink
  
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: [YaBB 2.3.1] Recent Posts Menu 1.0
Reply #11 - Jan 22nd, 2009 at 5:28pm
Print Post  
your welcome  Wink
  

Greeting ThM
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: [YaBB 2.3.1] Recent Posts Menu 1.0
Reply #12 - Feb 2nd, 2009 at 3:33pm
Print Post  
The drop down box in the info center overlaps with the PM info on low rez screens or when window resized to a small width.

Maybe I will just reduce the length of the drop down option texts.

All recent posts
last 5 recent posts
last 10 recent posts


etc.....
  

issue1.JPG ( 26 KB | Downloads )
issue1.JPG
Back to top
 
IP Logged
 
laurin31135
New Member
*
Offline


I love YaBB 2.2.3

Posts: 48
Location: vor der Höhe
Joined: Aug 11th, 2008
Gender: Male
Re: [YaBB 2.3.1] Recent Posts Menu 1.0
Reply #13 - Feb 2nd, 2009 at 5:40pm
Print Post  
I am surprised! What are low rez screens for youu? I tried it with 800 x 600 (that's the lowest rez I can use) and there is no problem for me.

Is ist because you've installed the shoutbox-mod?
  
Back to top
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: [YaBB 2.3.1] Recent Posts Menu 1.0
Reply #14 - Feb 2nd, 2009 at 6:04pm
Print Post  
Its very possible that its because I have the shoutbox mod installed but still the information above the drop down box is wrapping correctly. I think the text is a little too long so I will shorten the drop down text a bit anyways for myself.  If others do not have issues then just leave it as it is.


Great mod ThM
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 
Send TopicPrint