Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Recent posts menu 0.1 (Read 15264 times)
ztc
New Member
*
Offline



Posts: 21
Joined: Jun 22nd, 2004
Gender: Male
Recent posts menu 0.1
Jan 14th, 2006 at 7:36pm
Print Post  
This simple mod replaces the most recent posts link with a pull-down menu. The options are: 5, 10, 25, 50, & 100. This mod allows members who haven't visited your forum for a few days to see up to 100 of the latest posts.

This mod was created without any knowledge of Perl, thanks to some of the tags (modified) in the Member Map mod.

Version 0.2
-Updated the menu size and color

Tested on YaBB 2.1.

Files edited:
Admin/ModList.pl
Languages/English/BoardIndex.lng
Templates/default/BoardIndex.template
Sources/BoardIndex.pl
Sources/Recent.pl
« Last Edit: Jan 17th, 2006 at 2:45pm by ztc »  

Recent_posts_menu02.zip ( 1 KB | Downloads )

NationalAnthems.us Online Forum
Over 700 members - 3500 topics - 14000 posts
Back to top
WWWAIM  
IP Logged
 
Flowageboy
New Member
*
Offline


Hunt em up!

Posts: 45
Location: Stevens Point
Joined: Feb 20th, 2005
Gender: Male
Re: Recent posts menu 0.1
Reply #1 - Jan 15th, 2006 at 12:28am
Print Post  
Weird...tried installing this with boardmod, but it gets stuck on step 3. The tag <yabb recentposts> is there, but the program can't find it for whatever reason...I hate doing these by hand...too many things can easily go wrong...

Sorry, just ranting.
  
Back to top
 
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Recent posts menu 0.1
Reply #2 - Jan 15th, 2006 at 1:07am
Print Post  
Installed this mod and it works okay ......... BUT after I modded the mod.

SOme errors cam up - in step 1 and 2, but they were primarily due to  spaces or lines in the <search> tags. Once I took these out, all was fine.

The following needs to be modified in the mod

Quote:
<edit file>

Admin/Modlist.pl

</edit file>



<search for>

### END BOARDMOD ANCHOR ###

</search for>



<add before>


     $recent_posts_menu_mod = "Replace the most recent posts link with a pull-down menu version 0.1|ztc|This mod replaces the most recent posts link with a pull-down menu.  |0.1|01/14/06";
     push (@installed_mods, "$recent_posts_menu_mod");

</add before>


TO

Quote:
<edit file>
Admin/Modlist.pl
</edit file>

<search for>
### END BOARDMOD ANCHOR ###
</search for>

<add before>
     $recent_posts_menu_mod = "Replace the most recent posts link with a pull-down menu version 0.1|ztc|This mod replaces the most recent posts link with a pull-down menu.  |0.1|01/14/06";
     push (@installed_mods, "$recent_posts_menu_mod");
</add before>


Job well done - I like it !! Grin

cheers
Tom
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
Flowageboy
New Member
*
Offline


Hunt em up!

Posts: 45
Location: Stevens Point
Joined: Feb 20th, 2005
Gender: Male
Re: Recent posts menu 0.1
Reply #3 - Jan 15th, 2006 at 1:41am
Print Post  
How do you mod a mod? I've been in mod editor and can't figure out how to change anything.
  
Back to top
 
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Recent posts menu 0.1
Reply #4 - Jan 15th, 2006 at 1:48am
Print Post  
You have two panes of windows - on the left is the file beinf edited with sear/replace/before after etc tags, and on the right the code that is going to be inserted and replaced.

Simply edit the code on the right, then save !!
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
Flowageboy
New Member
*
Offline


Hunt em up!

Posts: 45
Location: Stevens Point
Joined: Feb 20th, 2005
Gender: Male
Re: Recent posts menu 0.1
Reply #5 - Jan 15th, 2006 at 1:58am
Print Post  
If I click on the first one, the right pane says 
SEARCH FOR
### END BOARDMOD ANCHOR ###

AND BEFOR THAT

$recent_posts_menu_mod = "Replace the most recent posts link with a pull-down menu version 0.1|ztc|This mod replaces the most recent posts link with a pull-down menu.  |0.1|01/14/06";
     push (@installed_mods, "$recent_posts_menu_mod");



I don't see anything like what you have quoted above for Admin/Modlist.pl


Sorry for my ignorance...I'm really new to this.
  
Back to top
 
IP Logged
 
Flowageboy
New Member
*
Offline


Hunt em up!

Posts: 45
Location: Stevens Point
Joined: Feb 20th, 2005
Gender: Male
Re: Recent posts menu 0.1
Reply #6 - Jan 15th, 2006 at 2:27am
Print Post  
Try this again...here's a shot of what I see.
  

editorscreen.JPG ( 21 KB | Downloads )
editorscreen.JPG
Back to top
 
IP Logged
 
Flowageboy
New Member
*
Offline


Hunt em up!

Posts: 45
Location: Stevens Point
Joined: Feb 20th, 2005
Gender: Male
Re: Recent posts menu 0.1
Reply #7 - Jan 15th, 2006 at 5:39am
Print Post  
anyway...I did it manually and it works lik a champ. It does pick up the wrong color for dropdown menus in my color schemes...seems to pick up the color of the bar that it's under for whatever reason, but that;s a small glitch.

Thanks for the mod!

Not related to the mod, but I wish there was a way for BM to record that the mod was installed manually, ortherwise I have no record that this mod was installed...now I can remember, but a year from now I'm sure I'll forget.
  
Back to top
 
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Recent posts menu 0.1
Reply #8 - Jan 15th, 2006 at 10:44am
Print Post  
look at the "class" value in the select statement - I changed mine to "nav" as opposed to "titlebg", as "nav" appears the norm in most select statements in the native yabb 2.1
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
ztc
New Member
*
Offline



Posts: 21
Joined: Jun 22nd, 2004
Gender: Male
Re: Recent posts menu 0.1
Reply #9 - Jan 15th, 2006 at 4:49pm
Print Post  
tompocz- I updated the class tag as you said. However, the text editor in which I created the mod shows no line breaks in steps 1 & 2 as pictured. Hopefully the update will install with no problems. If anyone finds that it still doesn't work, let me know and I'll save it in a different text editor.
  

NationalAnthems.us Online Forum
Over 700 members - 3500 topics - 14000 posts
Back to top
WWWAIM  
IP Logged
 
multikon
Full Member
***
Offline


Hakuna Matata

Posts: 240
Joined: May 14th, 2003
Re: Recent posts menu 0.1
Reply #10 - Jan 16th, 2006 at 5:54am
Print Post  
Hi

Can you make it compatible to use in the template ?


cya
  

beware ... yabb goes wbb ^^
Back to top
ICQ  
IP Logged
 
ztc
New Member
*
Offline



Posts: 21
Joined: Jun 22nd, 2004
Gender: Male
Re: Recent posts menu 0.1
Reply #11 - Jan 16th, 2006 at 12:08pm
Print Post  
multikon- What do you mean?
  

NationalAnthems.us Online Forum
Over 700 members - 3500 topics - 14000 posts
Back to top
WWWAIM  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Recent posts menu 0.1
Reply #12 - Jan 16th, 2006 at 12:39pm
Print Post  
Hi
can you make the pulldown-Menu smaller? its very big as another dropdownmenu's
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
multikon
Full Member
***
Offline


Hakuna Matata

Posts: 240
Joined: May 14th, 2003
Re: Recent posts menu 0.1
Reply #13 - Jan 16th, 2006 at 2:38pm
Print Post  
ztc wrote on Jan 16th, 2006 at 12:08pm:
multikon- What do you mean?


Ähm, i cant use <yabb mostrecentthings> in my template ...
  

beware ... yabb goes wbb ^^
Back to top
ICQ  
IP Logged
 
ztc
New Member
*
Offline



Posts: 21
Joined: Jun 22nd, 2004
Gender: Male
Re: Recent posts menu 0.1
Reply #14 - Jan 16th, 2006 at 7:45pm
Print Post  
Jet Li- I don't know how to make the menu smaller, as I don't know any Perl--I just copied or modified code I found in other files to make this mod. But if you find out, please let me know.

multikon- I don't know how to do that, either.
  

NationalAnthems.us Online Forum
Over 700 members - 3500 topics - 14000 posts
Back to top
WWWAIM  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint