Bạn ghé thăm diễn đàn lần đầu? hãy đăng ký ngay bây giờ để tham gia.
  • Đăng nhập:

Chào mừng bạn đến với ITVNN FORUM - Diễn đàn công nghệ thông tin.

Nếu đây là lần đầu tiên bạn tham gia diễn đàn, xin mời bạn xem phần Hỏi/Ðáp để biết cách dùng diễn đàn. Để có thể tham gia thảo luận bạn phải đăng ký làm thành viên, click vào đây để đăng ký.


  • Partner Area
    • ITVNN HOSTING - Thiết kế website, Cung cấp Domain, Hosting, VPS Việt Nam Anh Hùng - Thông tin truyền thông
kết quả từ 1 tới 1 trên 1
Tăng kích thước phông chữ Giảm kích thước phông chữ
  1. #1
    thanhdia's Avatar

    Trạng thái
    Offline
    Tham gia ngày
    Sep 2009
    Thành viên thứ
    9
    Giới tính
    Bài gởi
    218
    Level: 37 [?]
    Experience: 1,169,267
    Next Level: 1,209,937
    Cảm ơn 0
    Cảm ơn 48 lần / 26 Bài viết

    Default Alphabetical Forum Filtering (ABC Threads Menu)  

    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).
    Hình Kèm Theo Hình Kèm Theo
    File Kèm Theo File Kèm Theo
    thay đổi nội dung bởi: thanhdia; 06-11-2009 lúc 05:48 PM


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Alphabetical Filtering
    By admin in forum v5.x Modifications
    Trả lời: 0
    Bài mới gởi: 04-11-2012, 08:42 PM
  2. Help - Last X threads in forumhome for a specific forum
    By vuvanhoan in forum Hỏi đáp & Thảo luận
    Trả lời: 2
    Bài mới gởi: 21-02-2012, 11:35 AM
  3. Ai biết tạo thêm menu cho Forum giúp mình vơi
    By keroppi in forum Hỏi đáp & Thảo luận
    Trả lời: 9
    Bài mới gởi: 19-03-2011, 08:04 PM
  4. Alphabetical Forum Filtering
    By admin in forum v4.0.x Modifications
    Trả lời: 0
    Bài mới gởi: 29-12-2010, 10:59 AM
  5. My Threads & My Posts Links in a Drop-Down Menu
    By admin in forum v4.0.x Modifications
    Trả lời: 0
    Bài mới gởi: 21-11-2009, 04:45 PM

Tags for this Thread

Bookmarks

Quuyền Hạn Của Bạn

  • Bạn không thể tạo chủ đề mới
  • Bạn không thể trả lời bài viết
  • Bạn không thể gửi file đính kèm
  • Bạn không thể chỉnh sửa bài viết
  •