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

Ability to Update Links with New Link Conversion Format

Discussion in 'XenForo Suggestions' started by Amaury, Jun 30, 2015.

  1. Amaury

    Amaury Well-Known Member

    With the introduction of link conversions, I think it would be nice if you could run a rebuild or something similar to update all of the links to show the page titles (or the current format if you changed the format) or vice-versa if you later decide you prefer the raw URL.

    The only way to do so right now is manually by editing each individual post from before the implementation, which would be tedious, especially on large forums.

    Edit: Maybe even make it a cron task. That would be useful for XenForo especially because of the threads that are moved from XenForo Bug Reports and XenForo Suggestions to Resolved Bug Reports and Closed Suggestions, respectively. The resolution prefix will be added in any links that were posted before that.
    Last edited: Jun 30, 2015
    popr, Biker, Fred. and 12 others like this.
  2. Shiro

    Shiro Well-Known Member

  3. The Dark Wizard

    The Dark Wizard Well-Known Member

    This does seem like it would be useful.
  4. Martok

    Martok Well-Known Member

    Although this might be a useful suggestion, I'm not sure how feasible this would actually be. To get this to work, you would have to have a system that checks every single post and re-parses all of those with URLs in them. Even if it could be done, I'd imagine that it would be quite an intensive process.
  5. Chris D

    Chris D XenForo Developer Staff Member

    Very intensive process.

    Ultimately, for little benefit.
    RoldanLT and Cyb3r like this.
  6. Amaury

    Amaury Well-Known Member

    I imagine this may be the reason why an official post rebuild hasn't been implemented yet, though I could be wrong. However, I am curious: couldn't the same be said for some of the other rebuilds? For example, rebuilding the user cache has to go through every single user, rebuilding the search index has to through every single post, etc.
    Last edited: Jun 30, 2015
  7. Martok

    Martok Well-Known Member

    Rebuilding those things won't be as intensive as one in which posts are re-parsed, changing existing links to effectively new ones where the thread title is pulled into the link.
  8. Fred.

    Fred. Well-Known Member

    I would like this too!
    It doesn't matter is it's a very intensive task. My server has the power to do it. :)
  9. Liam W

    Liam W Well-Known Member

    I made this an add-on.

    Auto Link Rebuild

    I will warn everyone though, it will request every link it finds, for every post. Use with caution.

    Fred. and Amaury like this.
  10. popr

    popr Active Member

  11. Amaury

    Amaury Well-Known Member

    Be sure to like the first post if you agree with this suggestion.

Share This Page