Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Alphabetical Forum Filtering (ABC Threads Menu) Details »
Alphabetical Forum Filtering (ABC Threads Menu)
Mod Version: 1.1, by RenatoMN (Member) RenatoMN is offline
Developer Last Online: Aug 2011 I like it Show Printable Version Email this Page

vB Version: 3.8.4 Rating: (15 votes - 5.00 average) Installs: 97
Released: 01 Nov 2009 Last Update: 05 Nov 2009 Downloads: 560
Not Supported Uses Plugins Auto-Template  

This mod add an "ABC Menu" on top of forumdisplay.php, to filter threads by theirs initial letter. It's fully customisable, as you may see in the screenshots attached.

I take a lot of caution coding 3 different locations to place it and a variable that you can use to manual placement.

There's also styling options:

- active "filtered letter" link color;
- active "filtered letter" cell background color;
- letters cells classes (only alt2 or alternating alt1/alt2);
- configurable optional message above the ABC Menu - phrased (multi language);

When the user clicks a letter in the ABC Menu, the thread results will be filtered in the default order (configured in ACP or overriden by user options in UserCP). Then, a popup menu will be displayed aside the letter to reorder the filtering (there's all options: per title, starting date, last post date, replys number, number of views, thread started username and thread rating - all in both descending+ascending orders).

The # link lists not only the threads started by numbers, but all threads not started by a letter (what includes number 0-9 and all symbols).

Stop loosing your time. Download, install and see it yourself!

Installation instructions
- Import attached product

Upgrade instructions (any version to 1.1)
1- Import attached product (set Allow overwrite = Yes)
2- Check your configs (will need to adjust colspan and positioning again)

Note about colspan

Take some time checking the colspan value. The lower you set it, better. I'm saying this because if you set 5 for a skin that need only 4, newer browsers will renderize it ignoring the excess, but older will render 1 (or more) blank columns (and you will end up with an HTML structural error, regardless what the browser renderize).

It's now adjusted as 5 by default (new installs*). If you upgraded your version, you will need to manually adjust it. This occurs because the old version automatically add + 3 to configured value. But I saw some skins this week with very different layouts for forumdisplay (they have only 2-3 columns), so I decided to remove this "+3" adjustment in code. So, if you set it 3, you will have colspan="3", and so on.

The mod auto adjusts the colspan based in your forum configurations (the colspan is increased by 1 when the forum have threadicons and/or the inlinemod column is show). When you use manual placement, a key text should be used as colspan value in your template (--abcfilter-colspan--), to benefits of this function that identify the inlinemod/threadicons columns + the colspan setting.


Version History

01/11/2009 - 1.0
- Initial release.

01/11/2009 - 1.0b
- Fixed Plugin code (see post #1908976).
- Small edit in popup menu <if> statements.

05/11/2009 - 1.1
- Fixed pagination.
- New template positions.
- 1 more fix in the <if> statements.
- Removed unnecessary template caching.
- Added session hash in URL, when present.
- Configurable No Follow parameter in links.
- Optional line break (<br>) below ABC Menu.
- Configurable # symbol (set 0-9, @, or whatever).
- Selected letter cell class now match styles automatically.
- You may still customize the colors, if you want a "highlight".
- Re-ordering results in forum footer keeps the thread list filtered.*

* This may not work with all styles (let me know).

Known bugs: pagination works fine, however, page totals are not decreased after filtering.

e.g.: if you have 200 threads, divided in 10 pages (20 per page), after filtering the forum for the letter "A", if you have 35 results, you will see not only 2 pages, but all 10 (pages 3 to 10 returns the default "no threads to show" error). I do not see it as a big problems, specially because I added both Asc/Desc orders in the filtering, so you don't need to waste your time trying to find the "last page" of a filtering with 5+ pages: just inverse the order and go to page 1


IF YOU'RE USING IT, MARK AS INSTALLED. IT'S GOOD FOR YOU AND ME.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	alphabetical_ff_forum.jpg
Views:	1732
Size:	126.5 KB
ID:	105833   Click image for larger version

Name:	alphabetical_ff_acp.jpg
Views:	1092
Size:	120.8 KB
ID:	105834  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #31  
Old 06 Nov 2009, 03:22
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Question

Originally Posted by RenatoMN View Post
May you please post a screenshot (or a URL - better)?

Yes, next update, usergroup permissions
(actually, I simply forgot to include it in this version)
(Click the Image for Full Size)



I've set Red Color for the Text Option; as you can see, the Letters from A to T are in Red and from U to Z are in the Normal Color (Black in this case).

My Best Regards.

Reply With Quote
  #32  
Old 06 Nov 2009, 03:27
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Lightbulb

On the First Version the Colors where Being Displayed only for the Selected Letter, (I've Just Confirmed that on the Board where I have Installed the Previous Version).

My Best Regards.

Reply With Quote
  #33  
Old 06 Nov 2009, 14:16
RenatoMN's Avatar
RenatoMN RenatoMN is offline
 
Join Date: Nov 2008
Thanks for reporting. I really found some problems in the code.
But, strangely, it was working fine for me...

Try this version attached.
If works, I will add the selectable groups setting and send as v1.2.
Attached Files
File Type: xml product-alphabetical_ff_1_1.xml (21.7 KB, 11 views)
Reply With Quote
  #34  
Old 06 Nov 2009, 19:37
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Thumbs up

Originally Posted by RenatoMN View Post
Thanks for reporting. I really found some problems in the code.
But, strangely, it was working fine for me...

Try this version attached.
If works, I will add the selectable groups setting and send as v1.2.
The Attached Version Works Fine, Renato.

Now the Color Format is Applied Only to the Selected Letter.

One Detail I noticed since the beginning is that the Sticky Threads are not Filtered, but are Sorted when Choosing a Sorting Option; Perhaps would be nice for Future Versions to Include an Option for the Admin to Choose if Filter should be Applied (or Not) to the Sticky Threads too, (with a Long List of Sticky Threads this would help a lot to Clear the Forum Display Page).

Great Mod, I Hope it Gets Soon on the MOTM Poll.

My Best Regards; I'll wait for the Next Version to Update my Main Boards.

Reply With Quote
  #35  
Old 06 Nov 2009, 22:24
RenatoMN's Avatar
RenatoMN RenatoMN is offline
 
Join Date: Nov 2008
@inciarco,

Thanks for the suggestion, very cool!!

I have no control over the stickies db query (it's the only query without hooks in forumdisplay.php), therefore I can't filter them by letter.

However, I can hide them from page 2+ (or hide them in all pages) when filtering for a letter.

If you have too many sticky threads that mess your thread listing, maybe they should not be stickies, but only highlighted with a Prefix or a [tag] in the title (the tag will make them appear when filtering for symbols/numbers (clicking #)).

But now (with this new attached file) you may simply set to hide all sticky threads when filtering for a letter (only from page 2 or in all pages)!

Regards.
Attached Files
File Type: xml product-alphabetical_ff_1_1.xml (23.2 KB, 9 views)

Last edited by RenatoMN; 06 Nov 2009 at 22:40. Reason: attach the new file
Reply With Quote
  #36  
Old 06 Nov 2009, 23:38
RenatoMN's Avatar
RenatoMN RenatoMN is offline
 
Join Date: Nov 2008
Talking

Cool!!

You didn't even downloaded the last attached file and I already got around the lack of hooks for sticky threads!

This is the first function of the mod that handles an internal forumdisplay.php variable ($limitothers) ($prefix_filter). I do not like to do it, but I LOVED the result

NEW version attached.

Obs: need some test to confirm that users not allowed to see threads started by others see them when filtering by letter, but I think I coded right
Attached Files
File Type: xml product-alphabetical_ff_1_1.xml (24.3 KB, 17 views)

Last edited by RenatoMN; 07 Nov 2009 at 00:04. Reason: Replace the handled variable
Reply With Quote
  #37  
Old 07 Nov 2009, 01:13
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Thumbs up

Originally Posted by RenatoMN View Post
@inciarco,

Thanks for the suggestion, very cool!!

I have no control over the stickies db query (it's the only query without hooks in forumdisplay.php), therefore I can't filter them by letter.

However, I can hide them from page 2+ (or hide them in all pages) when filtering for a letter.

If you have too many sticky threads that mess your thread listing, maybe they should not be stickies, but only highlighted with a Prefix or a [tag] in the title (the tag will make them appear when filtering for symbols/numbers (clicking #)).

But now (with this new attached file) you may simply set to hide all sticky threads when filtering for a letter (only from page 2 or in all pages)!

Regards.
Originally Posted by RenatoMN View Post
Cool!!

You didn't even downloaded the last attached file and I already got around the lack of hooks for sticky threads!

This is the first function of the mod that handles an internal forumdisplay.php variable ($limitothers) ($prefix_filter). I do not like to do it, but I LOVED the result

NEW version attached.

Obs: need some test to confirm that users not allowed to see threads started by others see them when filtering by letter, but I think I coded right
I've Tested the Latest Version Attached on Post 37, and is Working Great, Renato.

It's Hiding the Sticky Threads from the Second Page on.

It's Filtering and Sorting the Sticky Threads with the "Filter Sticky Threads?" Option Set to "Yes", and when Set to No it Sort them but Present them All on the First Page. (Great Feature).

It's Very Nice the Option to Set the # Text as Desired.

And of Course the rel="nofollow" Parameter as You Describe on the ACP Mod Option, is Very Important to Keep it not to have Duplicate Content.

I Loved the New Features, Renato, Congratulations for this Great Mod and Thank You Again For Sharing it.

I Hope You Can Include the Usergroup Permissions Option on the ACP Mod's Options.

My Best Regards.

Reply With Quote
  #38  
Old 20 Nov 2009, 06:24
1up_dave 1up_dave is offline
 
Join Date: Jul 2008
Real name: David Thomas
How possible would it be to port this over to work on categories? I'd really like to at least attempt it.
Reply With Quote
  #39  
Old 22 Nov 2009, 22:12
libabom libabom is offline
 
Join Date: Dec 2005
Hi,

I use this add on. It is pretty successful except Turkish characters. When I click on Y; İ and are also displayed. When I click on C; both C and are displayed. How can I resolve this? Any ideas?
Edit/Delete Message
Reply With Quote
  #40  
Old 04 Dec 2009, 23:55
mykkal's Avatar
mykkal mykkal is offline
 
Join Date: May 2007
Real name: Mike McKoy
strange that nobody ever thought of it. Even I didn't...but this actually helps to make many things easy to find.

Dope mod!
Reply With Quote
  #41  
Old 05 Dec 2009, 05:39
Arashdn Arashdn is offline
 
Join Date: Jan 2009
Great ! and it will be greater if we could add Arabic & Persian Characters
Reply With Quote
  #42  
Old 05 Dec 2009, 10:06
Alucard^'s Avatar
Alucard^ Alucard^ is offline
 
Join Date: Feb 2008
Real name: Laureano
Wow man, this plugin is perfect! installed ofcourse.

I suggest something... you can add option like the "Show alphabetic Filtering forum list" but to add the forum that you don't want to show this alphabetic filtering?

And also, you can add option that if is enabled, the alphabetic filtering does not show if the forum don't have any thread.
Reply With Quote
  #43  
Old 05 Dec 2009, 17:54
kalisekj kalisekj is offline
 
Join Date: Dec 2006
Very Nice Mod Works great on 3.82
Reply With Quote
  #44  
Old 05 Dec 2009, 18:09
Ichigo88's Avatar
Ichigo88 Ichigo88 is offline
 
Join Date: Nov 2009
hi! thank you for this mod!
how to put in determinate section? not in all secion!
Reply With Quote
  #45  
Old 05 Dec 2009, 19:08
Alucard^'s Avatar
Alucard^ Alucard^ is offline
 
Join Date: Feb 2008
Real name: Laureano
Originally Posted by Ichigo88 View Post
hi! thank you for this mod!
how to put in determinate section? not in all secion!
With the "Show alphabetic Filtering forum list" option in the admin cp options.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 06:20.

Layout Options | Width: Wide Color: