Page Index Toggle Pages: [1] 2 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) Search New and Show New for SP1.3.1 (Read 18087 times)
eChris
Junior Member
**
Offline


I really do *love* YaBB!

Posts: 98
Location: Liverpool
Joined: May 9th, 2004
Gender: Male
Search New and Show New for SP1.3.1
Jul 1st, 2004 at 11:04am
Print Post  

Search New & Show New for SP1.3.1.

This is an updated mod from SP1. Add two new search functions to your YaBB forum!

1) "Search New" - search only in unread posts
2) "Show New" - show ALL unread posts in a tree view format - this rocks!

See this mod working here (u/n test p/w test, or create your own!)

Screenshots
Instructions

Should easily install on even heavily modded boards since the code is virtually all in SearchNew.pl

Before starting!!
  • If you have the Add More Membergroups mod installed then rename SearchNew.AMM.pl to SearchNew.pl
  • If you DO NOT have the Add More Membergroups mod installed then rename SearchNew.withoutAMM.pl to SearchNew.pl

1) Upload SearchNew.pl to your /Sources directory
2) Upload the gif files to your /YaBBImages directory
3) Apply the mod and upload the changed files:
     -- Subs.pl and Sublist.pl to /Sources
     -- english.lng to your main YaBB directory.

All done!

Version History

Version 1.0b      
 -- Updated to SP 1.3.1
 -- Added "Show New" feature - displays ALL unread posts in tree view format
 -- Added "Mark selected as read" to the results page
 -- Fixed Javascript bugs in Search New page
 -- Made SearchNew.pl compatible with Add More Membergroups Mod

Version 0.1        
 -- First release by Forge[FU]

mod tested on YaBB Gold SP 1.3.1

Please post your feedback and suggestions for modification or improvements. Thanks!
« Last Edit: Jul 3rd, 2004 at 12:25pm by eChris »  

http://mytreo.net/forum - for owners of the treo smartphone
Mobile version
Back to top
WWW  
IP Logged
 
JoeLouie
New Member
*
Offline



Posts: 13
Location: Halifax
Joined: May 9th, 2004
Gender: Male
Re: Search New and Show New for SP1.3.1
Reply #1 - Jul 2nd, 2004 at 5:00am
Print Post  
Looks good. I got it installed no problem on my board with about 25 other mods. The only thing I noticed was that when you're at the results page it's looking for search_t1.gif, but the name of the file in the .zip is search_t.gif. Just rename it and it to search_t1.gif and it works fine.
  
Back to top
WWWICQ  
IP Logged
 
eChris
Junior Member
**
Offline


I really do *love* YaBB!

Posts: 98
Location: Liverpool
Joined: May 9th, 2004
Gender: Male
Re: Search New and Show New for SP1.3.1
Reply #2 - Jul 3rd, 2004 at 12:02pm
Print Post  
Thanks JoeLouie well spotted. I have added the search_t1.gif to the zip.
  

http://mytreo.net/forum - for owners of the treo smartphone
Mobile version
Back to top
WWW  
IP Logged
 
eChris
Junior Member
**
Offline


I really do *love* YaBB!

Posts: 98
Location: Liverpool
Joined: May 9th, 2004
Gender: Male
Re: Search New and Show New for SP1.3.1
Reply #3 - Jul 3rd, 2004 at 12:27pm
Print Post  
Minor change - added date formatting to the search results page so the dates will be displayed according to your forum preferences.

Zip file, test board and screenshot #2 have been updated to reflect these changes
« Last Edit: Jul 3rd, 2004 at 4:18pm by eChris »  

http://mytreo.net/forum - for owners of the treo smartphone
Mobile version
Back to top
WWW  
IP Logged
 
xtremecruiser
Full Member
***
Offline



Posts: 106
Joined: Nov 14th, 2002
Gender: Male
Re: Search New and Show New for SP1.3.1
Reply #4 - Nov 6th, 2004 at 10:12pm
Print Post  
Great mod, I will be installing this one
  
Back to top
 
IP Logged
 
Carlos
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 219
Joined: Aug 28th, 2004
Gender: Male
Re: Search New and Show New for SP1.3.1
Reply #5 - Nov 8th, 2004 at 3:24pm
Print Post  
Just a suggestion, but in my opinion, it would be better to have these search views as an option ON the search board, and not on the menu bar. - It's just that the menu bar gets rather cluttered. - As I said, just my opinion.

Got to be said though, a really great mod. I'm no mod junkie, but I'll deffinately install this one! Wink
  
Back to top
 
IP Logged
 
TheSkier
Junior Member
**
Offline



Posts: 94
Location: Sakhalin
Joined: Jul 9th, 2004
Gender: Male
Re: Search New and Show New for SP1.3.1
Reply #6 - Nov 9th, 2004 at 12:01am
Print Post  
Carlos wrote on Nov 8th, 2004 at 3:24pm:
Just a suggestion, but in my opinion, it would be better to have these search views as an option ON the search board, and not on the menu bar. ...

in that case you will have to wait until search menu opens (it takes time, especially on slow connection)
may be some sort of drop-down menu with sub-options would be better Wink
(for me, on my forum - SearchNew is the main button Smiley )
  
Back to top
WWW  
IP Logged
 
Carlos
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 219
Joined: Aug 28th, 2004
Gender: Male
Re: Search New and Show New for SP1.3.1
Reply #7 - Nov 9th, 2004 at 8:31pm
Print Post  
I'll be installing this soon, and I imagine it will be the shownew function that will the main one for me. I'd still prefer the search functions to be combined, perhaps the way you suggested for speed.

I've seen eChris' board, and he has a real nack for practical mods. If memory serves, he's a novice, which you'd never guess! I wish coding was as easy for me to pick up. I guess I'll just have to continue scavenging! Wink
  
Back to top
 
IP Logged
 
bill karpin
Guest


Re: Search New and Show New for SP1.3.1
Reply #8 - Jan 7th, 2005 at 9:12pm
Print Post  
Hey man works great

but where do i have to change for the backround color? where is it on the template?

appreciate the help

  
Back to top
 
IP Logged
 
fbiss
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 20
Location: philly
Joined: Jan 8th, 2005
Re: Search New and Show New for SP1.3.1
Reply #9 - Jan 11th, 2005 at 2:02am
Print Post  
found it, it is pulling the color from the Settings.pl, instead of the template
  
Back to top
 
IP Logged
 
paclady
Full Member
***
Offline


I love YaBB 1G - SP1.3!

Posts: 196
Joined: Feb 6th, 2004
Re: Search New and Show New for SP1.3.1
Reply #10 - Mar 21st, 2005 at 8:39pm
Print Post  
How would I go about making the change so it pulls the correct info (background colors etc....)
  
Back to top
WWW  
IP Logged
 
paclady
Full Member
***
Offline


I love YaBB 1G - SP1.3!

Posts: 196
Joined: Feb 6th, 2004
Re: Search New and Show New for SP1.3.1
Reply #11 - Mar 22nd, 2005 at 1:55am
Print Post  
I have another question.

I have seen some boards use this and there is a Check All box at the bottom. 

I loaded this on mine with no problems however there is no check all box at the bottom


All the coding is there so can you help me figure this one out.

Thanks
  
Back to top
WWW  
IP Logged
 
TheSkier
Junior Member
**
Offline



Posts: 94
Location: Sakhalin
Joined: Jul 9th, 2004
Gender: Male
Re: Search New and Show New for SP1.3.1
Reply #12 - Mar 22nd, 2005 at 8:38am
Print Post  
Hi!
please find (and try) attached the updated version of SearchNew.pl file (it should be in your YaBB ./Sources folder, please backup your current SearchNew.pl file first!)
whole updated mode is not ready yet

it will require the additional variables to be set in your language.lng file as below:
Code
Select All
$searchnew{'01'} = "Messages I haven't seen before.";
$searchnew{'02'} = "Messages within range:";
$searchnew{'03'} = "Search new messages in treeview";
$searchnew{'03a'} = "Show new messages in treeview";
$searchnew{'04'} = "Mark selected as read";
$searchnew{'05'} = "Search New";
$searchnew{'06'} = "Show New";
$searchnew{'07'} = "Maximum number of results to display in Search/Show New (default 250):";
$searchnew{'08'} = "Number of characters of the beginning of each post to display in Search/Show New (default 60)";
 



plus 2 more global variables:
Code
Select All
$maxsearchnew = 250;
# Maximum number of results to display in Search/Show New (default 250)
$chompsearchnew = 60;
# Number of characters of the beginning of each post to display in Search/Show New (default 60)
 


i dunno what version are you using, those vars should exist
and, as i said, mod is not ready yet Wink

attachment reaploaded
« Last Edit: Mar 23rd, 2005 at 2:38am by TheSkier »  

SearchNew.zip ( 4 KB | Downloads )
Back to top
WWW  
IP Logged
 
paclady
Full Member
***
Offline


I love YaBB 1G - SP1.3!

Posts: 196
Joined: Feb 6th, 2004
Re: Search New and Show New for SP1.3.1
Reply #13 - Mar 22nd, 2005 at 12:25pm
Print Post  
Thank you.  I am using version 1b

I made the correction for my Ing file.  Where do I place the Global Varables?  What file?

Also, when I uploaded the new SearchNew file it DID show the check mark AND corected my colors/backgrounds however missed the end of results and Return to board index option in the lower left corner.   It also removed all my previous items (I guess is because it is a new install of that pl file?)


Looking forward to hearing from you and once again Thank you!
  
Back to top
WWW  
IP Logged
 
Dam Yankee
God Member
*****
Offline



Posts: 1538
Location: Maryville
Joined: Jun 13th, 2003
Gender: Female
Re: Search New and Show New for SP1.3.1
Reply #14 - Mar 22nd, 2005 at 1:38pm
Print Post  
Paclady, that second code box stuff goes in AdminEdit.pl (step 6). You should already have those.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 
Send TopicPrint