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

help/trophies

Discussion in 'XenForo Questions and Support' started by Wuebit, Mar 13, 2011.

  1. Wuebit

    Wuebit Well-Known Member

    help/trophies

    I need to rename that url >.> any idea's how I can do this?
    Thanks
     
  2. Mike

    Mike XenForo Developer Staff Member

    Changing URLs involves add-ons and/or file modifications. It's not generally trivial.
     
    Darkimmortal likes this.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    You're going to have to delve into the code to do that.

    Edit: Ninja'ed :eek:
     
  4. Wuebit

    Wuebit Well-Known Member

    hmm is there any examples anywhere (or an addon as you say?) looks abit silly after I have just renamed all trophies to something else :(
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Check out Darkimmortal's chat add-on.

    He has coded the ability to change the primary route so that will give you some pointers.
     
  6. Wuebit

    Wuebit Well-Known Member

    I wouldn't know where to even look in it tbh.
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Unless you're fairly proficient at php, it's not something you'll be able to do easily.

    As Mike said, it's not a trivial change.
     
  8. Wuebit

    Wuebit Well-Known Member

    What about something like a .htaccess ?
    I miss vbseo for things like this was soo easy :coffee: (never thought I would say that)
     
  9. Luke F

    Luke F Well-Known Member

    If you want to change trophies to 'achievements' for example:

    In library/XenForo/ControllerPublic/Help, replace:
    PHP:
    public function actionTrophies()
    with:
    PHP:
    public function actionAchievements()
    In the template 'navigation', replace:
    HTML:
    <li><a href="{xen:link help/trophies}">{xen:phrase trophies}</a></li>
    with:
    HTML:
    <li><a href="{xen:link help/achievements}">{xen:phrase trophies}</a></li>
    Obviously you'd need to edit the phrase(s) too ;)
     
  10. Wuebit

    Wuebit Well-Known Member

    Dam dark your as sexy as ever :) Thanks very much works great!
     
    Darkimmortal likes this.
  11. Brogan

    Brogan XenForo Moderator Staff Member

    Heh, easier than I imagined (clever sod) :LOL:

    Don't forget you'll need to redo that edit every time you upgrade.
     
  12. Wuebit

    Wuebit Well-Known Member

    Also for anyone else doing this. Remmber these templates to

    help_index
    help_wrapper
    member_trophies (two in here)

    to replace
    PHP:
    {xen:link help/trophies}
    with
    PHP:
    {xen:link help/achievements}
     

Share This Page