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

If page not found, load something.

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

  1. cedivad

    cedivad Active Member

    Where can i find the controller that worries about loading /thread/ to thread.php (that's an example)?
    I would edit it so that if no match is found the script does what i want =)
  2. Lawrence

    Lawrence Well-Known Member

    You shouldn't need to edit any php files. You can use the load_class_controller listener to listen for the class XenForo_ControllerPublic_Thread
    cedivad likes this.
  3. cedivad

    cedivad Active Member

    That allows me to edit whatever happens when the url is ./threads/something, true?
    I would see where xf decides to load ./threads/* instead of ./forums/* etc.

    I think i will have to sit back and study, study and study. This OO lets me ... :confused:

Share This Page