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

How to build the SEO URL?

Discussion in 'General PHP and MySQL Discussions' started by Richey, Jan 4, 2015.

  1. Richey

    Richey Member

    Hey guys,

    I have to write a "latest posts" script for an external website that shows the latest posts of a xenforo forum.

    There is only one problem: I have no idea how to build/generate the urls of the posts because they are not stored in the database (I think).

    Can you please tell me how I can do this?

    Kind regards.
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Richey

    Richey Member

    Good Morning Brogan,

    thank you for the reply, but what I need is the seo url (user friendly url) of a thread.

    In this case: https://xenforo.com/community/threads/how-to-build-the-seo-url.90152/

    I can't find it in the database.

    Any ideas?

    Kind regards.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    That is constructed from the thread title and (I believe) Link.php.
    Richey likes this.
  5. Richey

    Richey Member

    Thank you Brogan :)

    the function/method I was looking for is placed in line 740 (/library/Xenforo/Link.php).

    Kind regards.

Share This Page