Route Changer 1.1.3 (Đổi slug link trên Xenforo)

Thảo luận trong 'Add-ons Xenforo' bắt đầu bởi Blue, 01/11/2015.

  1. Blue

    Blue Admin - Founder Thành viên BQT

    Tham gia:
    25/02/2015
    Bài viết:
    796
    Đã được thích:
    1,246
    Điểm thành tích:
    93
    Giới tính:
    Nam
    Hướng dẫn nhanh:
    Addon hoạt động rất đơn giản: Giúp bạn đổi link của các trang trên Xenforo thành link bạn mong muốn. Chú ý là chỉ đổi link slug nhé các bạn.
    Ví dụ: Một bài viết có link là: http://domain.com/threads/ten-bai-viet.1/
    Bạn có thể đổi thành http://domain.com/bai-viet/ten-bai-viet.1/
    Ở ví dụ này: threads đã được đổi thành bai-viet

    Deprecated:

    XenForo 1.2 now has a "route filter" feature which functionally replaces this addon. Moving forward you should use the "route filter" feature in 1.2 instead of this addon.

    __________

    This addon lets you change any URL route. For example, this URL:

    http://bet365 có những phương thức nạp tiền nào_link vào bet365_điểm số trực tiếp bet365.com/community/forums/off-topic.7/

    Can be changed to this:

    http://bet365 có những phương thức nạp tiền nào_link vào bet365_điểm số trực tiếp bet365.com/community/boards/off-topic.7/

    Features:
    - allows you to change any URL route including routes from third party addons.
    - supports forward and backwards route changes, such as if you change a route and then decide to go back to the original route.
    - redirects are handled automatically by XF for all important routes including forums, threads, members, pages, categories, and attachments.

    Here is a picture of the settings page:

    Screen shot 2012-03-04 at 2.35.48 AM.png

    Installation:
    This addon uses the standard install procedure...

    1) Upload the files. The zip file contains an "upload" folder. Upload the contents of that folder, thereby creating a library/RouteChanger directory on your server.
    2) Import the XML in your Admin CP. You can enter the path to the XML file on the server (./library/RouteChanger/addon-RouteChanger.xml) or use the Browse button to upload it from your computer:

    Screen shot 2012-10-04 at 7.32.04 PM.png

    SEO?
    Redirects are handled automatically so search engine links will update and preserve your rank. But you don't want to go changing your routes often. Be thoughtful when changing your routes, and try not to change your mind later.

    Technical details:
    1) This addon doesn't change anything in the database. It is an added layer that changes routes and links at run time. This addon can be disabled or uninstalled without any lasting effects, but of course you will lose the route changes you implemented which will break old links and may affect SEO.

    2) All templates and PHP code that use link syntax can and should continue to use the original routes. So if I use this addon to change "forums" to "boards" then my link syntax in the templates should continue to use "forums". This addon intercepts and changes links on the fly without requiring any changes to the internal routes.

    3) This addon has 0 query overhead.

    XenPorta:
    Note that this addon has a conflict with XenPorta but you can work around it. XenPorta has an option to swap out the index:

    Screen shot 2012-03-08 at 6.32.06 PM.png

    But the Route Changer addon overrides this option in XenPorta. If you use XenPorta and want to keep your portal at the index then you need to disable the above checkbox in XenPorta and apply the following route changes in this addon:

    Screen shot 2012-03-08 at 6.29.54 PM.png
     

    Các file đính kèm:

  2. Minh Bảo

    Minh Bảo Khách VNXF

    cái này hiện tại bet365 có những phương thức nạp tiền nào_link vào bet365_điểm số trực tiếp bet365 đã hỗ trợ rồi, đâu cần cài cái này đâu anh?
     

Chia sẻ trang này