vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - Alphabetical Forum Filtering (ABC Threads Menu) (https://vborg.vbsupport.ru/showthread.php?t=227174)

RenatoMN 10-31-2009 10:00 PM

Alphabetical Forum Filtering (ABC Threads Menu)
 
1 Attachment(s)
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).

[S]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[/S] :)

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

abouahmed 11-01-2009 07:53 AM

nice mod
thanks,

Cerbero1000 11-01-2009 08:15 AM

Very nice, but popup menu don't working.

mbc100 11-01-2009 10:33 AM

great but, I think it works with forums that use Latin characters

soulface 11-01-2009 11:07 AM

After installing this mod, when I go to any forum I'm getting this error...

Quote:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/global.php(355) : eval()'d code on line 472

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/forumdisplay.php(111) : eval()'d code on line 82

RenatoMN 11-01-2009 04:45 PM

Quote:

Originally Posted by abouahmed (Post 1908919)
nice mod
thanks,

Thanks. :D
Mark as installed, please.

Quote:

Originally Posted by funmasti (Post 1908953)
i was looking for this

Nominate? :rolleyes:

Quote:

Originally Posted by Cerbero1000 (Post 1908926)
Very nice, but popup menu don't working.

Try this updated version. If still not working with your skin, try default vB skin.

Let me know the results, please.

Quote:

Originally Posted by mbc100 (Post 1908970)
great but, I think it works with forums that use Latin characters

Sorry?

Quote:

Originally Posted by soulface (Post 1908976)
After installing this mod, when I go to any forum I'm getting this error...

Thanks for reporting. Warnings were disabled in my server.

Updated.

delibakis 11-01-2009 05:15 PM

English is not my 'm sorry for writing wrong
How beginners as beginners will do 0.1.2.3.4.5.6.7.8.9 figures

RenatoMN 11-01-2009 06:41 PM

@delibakis,

The button # will show all threads not starting with A-Z.

So it show threads starting with: 0-9, [ ] { } $ # % ^ & * .. whatever

You may replace the "#" symbol for other text in:
Plugins > Alphabetical FF - Show ABC Menu (@around line 18)
Code:

        $abcfilter_upper = "#";
Code:

        $abcfilter_upper = "0-9";
I may also add a field to change it at mod options in next update, or show both separated: 0-9 and # (symbols) buttons.

Where are you from?

killerkraft 11-01-2009 07:19 PM

Great addon, thank's.
I was waiting for this...

Obrigad?o Renato...:up:

abdobasha2004 11-01-2009 08:14 PM

thanks great mod


All times are GMT. The time now is 03:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01227 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete