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
    s0ct0j0c's Avatar
    Banned

    Trạng thái
    Offline
    Họ tên
    Kiều Sơn Lâm
    Tham gia ngày
    Jan 2011
    Thành viên thứ
    36613
    Đến từ
    TP.HCM
    Tuổi
    31
    Giới tính
    Bài gởi
    454
    Level: 41 [?]
    Experience: 2,205,598
    Next Level: 2,530,022
    Cảm ơn 91
    Cảm ơn 89 lần / 68 Bài viết

    Default [bd] WIdget Framework v1.0.3  

    [bd] Widget Framework
    People love widgets

    [INSTALLATION]
    1. Upload files and directories inside `upload` to XenForo's root directory. Select "Merge" for everything if you are asked
    2. Import the .xml file using XenForo addon importer
    3. Enjoy

    [WIDGETS]
    Currently, the addon is packed with the following widgets:
    1. Staff Online Now
    2. Members Online Now
    3. Forum Statistics
    4. Share
    5. Clear Sidebar
    6. Users. 2 modes: order by register_date or message_count
    7. Threads. 4 modes: New threads, Recent threads, Popular threads or all of them (tabbed interface)
    8. Conditional HTML. Test a PHP expression and display HTML on sidebar

    [WHY A FRAMEWORK?]
    I have seen many people releasing sidebar related addon on xenforo.com. The idea is the same: adding something to a page's sidebar. With the hook, developer can easily modify XenForo's sidebar, no big deal. The problem is each developer prefers a different way to do the job and forums administrator will have difficulties to manage all the stuff on their sidebar. With this framework, that problem is gone. Adminsitrator can manage all the widgets in one place, temporary disable one widget is simple as a click. The order can also be changed (well, not support drag and drop yet, sorry for that).

    Also, anyone who wants to develop widget to use with the framework can do it in just a few steps. The framework will take care of everything and developers only need to focus on getting the business done. There are 2 things to do: listen to code event "widget_framework_ready", push your class name in to the array to register your widget renderer. After doing so, you can start coding your renderer by extending the base class "WidgetFramework_WidgetRenderer"

    PHP:
    class MyWidget_WidgetA extends WidgetFramework_WidgetRenderer {
    }


    There are some abstract methods you will have to implement to make it work, just dig into the code and figure it out. If you got lost, feel free to contact me: pony@xfrocks.com

    One last thing, the framework really care about performance. In perfect conditions, no matter how many widgets you have, the framework only execute 1 additional query. I tried to cache as much as possible. The widget list is stored in XenForo's simple cache system while the rendered widgets are stored with Data Registry. Each renderer doesn't have to handle caching, the framework does that for all widgets. All templates are preloaded with the main page template also. Headache no more

    Version 1.0.7, 17-04-2011
    - Added option to hide visitor panel in the Empty widget
    - Added option to show polls in the Threads widget
    - Added "random" group feature
    - Added Visitor Panel widget
    - Removed other add-on widgets
    - Changed Share widget to Share This Page. It can now be used with any position



    Hình Kèm Theo Hình Kèm Theo
    File Kèm Theo File Kèm Theo


 

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Giới thiệu sơ lược ngôn ngữ framework Vue.js
    By cameralongan in forum Lập trình web
    Trả lời: 3
    Bài mới gởi: 07-10-2021, 05:03 PM
  2. Tìm hiểu CodeIgniter framework
    By filiallion in forum Lập trình web
    Trả lời: 7
    Bài mới gởi: 20-04-2018, 09:00 AM
  3. Trả lời: 0
    Bài mới gởi: 12-01-2016, 04:15 PM
  4. Trả lời: 0
    Bài mới gởi: 01-03-2013, 09:38 AM
  5. Ai có tài liệu về Yii framework share cho mình với...
    By vanquyen2790 in forum Lập trình web
    Trả lời: 0
    Bài mới gởi: 27-08-2011, 07:51 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
  •