1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Discuss] Route Prefix Loading process

Discussion in 'XenForo Development Discussions' started by ponology, Oct 6, 2010.

  1. ponology

    ponology Member

    I want to use the load_class_route_prefix code event to "hook" into buildLink method of XenForo_Route_Prefix_Threads and XenForo_Route_Prefix_Forums to prevent them to produce links with non ascii characters.

    In theory, it should be find by extending those classes with a code event listener. BUT actually, it's not possible because XenForo_Link::_loadPrefixHandlerClass loads those classes using XenForo_Application::autoload instead of XenForo_Application::resolveDynamicClass.

    Anybody's interested in this?
  2. Mike

    Mike XenForo Developer Staff Member

    That's probably a worth-while add, though you may still have the limitations of whether the class is called to build the link.
    ponology likes this.
  3. cedivad

    cedivad Active Member

    Newbie here.
    Then, we should be supposed to have the ability to edit what is in this class:
    class XenForo_Route_Prefix_Threads implements XenForo_Route_Interface
    by just putting some shiny stuff on the acp/our mod directory?

    I ask because i started my voyage with xenforo by editing that file and having the edit done automatically by the plugins system sounds great (i know that for eg ipb does this, but ipb where documented, here i understand nothing :D)
  4. ponology

    ponology Member

    So... will this get changed in the next release? :D

    I don't think that feature will be implemented. It just feels like... not Kier and Mike's style

Share This Page