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

1.2 Beta Tips, Tricks, FAQ.

Discussion in 'General XenForo Discussion and Feedback' started by Slavik, Jun 19, 2013.

  1. Slavik

    Slavik XenForo Moderator Staff Member

    So, a lot of common questions to be coming with the Beta release.

    Will try to keep them all here.

    So first up

    TIP: Disable all listeners before running the upgrade and re-enable them afterwards to ensure the XenForo alterations occur properly.

    How to use the CLI upgrade?
    Just run library/XenForo/Install/run-upgrade.php and follow the prompts.
    Last edited: Jun 19, 2013
    ZeWildGuy, Alien, SneakyDave and 2 others like this.
  2. oman

    oman Well-Known Member

    Another tip:


  3. Slavik

    Slavik XenForo Moderator Staff Member

    My editor icons arnt showing up correctly!
    Your location may be pointing to the wrong place, probably styles/*YOUR STYLE*/xenforo/editor/icons.png either update or copy the new location: styles/default/xenforo/editor/icons.png

    If you have this problem, you'll probably need to update styles/*YOUR STYLE*/xenforo/xenforo-ui-sprite.png as well.
  4. DRE

    DRE Well-Known Member

    *re-news license*
    ZeWildGuy, Cambion, Mrs.T and 2 others like this.
  5. Chris D

    Chris D XenForo Developer Staff Member

    In case you need to use conditional statements in templates/CSS to identify the current XenForo version, you can use:

    In PHP you can use:

    Steve F, Kevin, JulianD and 1 other person like this.
  6. Slavik

    Slavik XenForo Moderator Staff Member

    Watch out for conflicts between auto merge and manual merging, the system may auto remove an opening tag, but then ask you to put the closing tag back in if you revert to the default throwing a syntax error.
    Last edited: Jun 19, 2013
  7. xf_phantom

    xf_phantom Well-Known Member

    What's now the best way to change the indexpage? Just call setIndexRoute('myNewRoutePrefix')?
    Or use the routefilter?
    Andrej likes this.
  8. Sheratan

    Sheratan Well-Known Member

    "Upgrading... 1.2.0 Alpha"

    Is it correct?
  9. Mike

    Mike XenForo Developer Staff Member

  10. Brogan

    Brogan XenForo Moderator Staff Member

    Lisa likes this.
  11. Adam Howard

    Adam Howard Well-Known Member

    Clarification ---- Do you mean the add-ons individually in AdminCP or via config.php

    I've seen "listeners" referred to as both and either or. And just want a small clarification on your meaning.
  12. Mike

    Mike XenForo Developer Staff Member

    The listeners won't mess with the upgrade process itself - they're never run. However, it is worth disabling each add-on individually and re-enabling them one by one and testing as you go so you have a better idea of what you changed when things broke.
    ZeWildGuy, dutchbb, Shelley and 5 others like this.
  13. Adam Howard

    Adam Howard Well-Known Member

    Thank you @Mike

    I'm in the process of doing what is unadvised, not recommended, and is not for the weak-heart`ed. Updating live site and fully accepting any and all consequences.

    Disabled all add-ons 1 by 1 and also config.php just to be safe (including custom styles)

    Wish me luck :cautious:
    tafreehm likes this.
  14. RoldanLT

    RoldanLT Well-Known Member

    Adding this code into my config.php
    $config['enableListeners'] = false;
    Will just disable all addons?
    Or will affect default XenForo core features also?
  15. Jeremy

    Jeremy Well-Known Member

    It will disable add-ons only.
    RoldanLT likes this.
  16. Adam Howard

    Adam Howard Well-Known Member

    Strongly encourage you to disable each add-on 1 by 1 individually, then add that to your config.php

    Then slowly 1 by 1, verify individual which add-ons work... commenting and un-commenting that line in config.php as needed.
    Shelley and RoldanLT like this.
  17. RoldanLT

    RoldanLT Well-Known Member

    I think I have 60 addons :D
  18. Adam Howard

    Adam Howard Well-Known Member

    I have 75 and am going through them now. Making a list of what works and what does not. You're welcome to wait for that list, but if you're already scream`ish at the idea of 60 add-ons... Wait until the final version.
  19. xf_phantom

    xf_phantom Well-Known Member

    Addons using XenForo_DataWriter_User::$usernameChangeUpdates won't change the names automatically in xenforo 1.2 anymore
    You have to use XenForo_Model_User::changeContentUser for this
    Adam Howard and Bob like this.
  20. xf_phantom

    xf_phantom Well-Known Member

    If your addon requires another addon, you can use following code, to check if it's installed and active:

    $addOns XenForo_Application::get('addOns');
    if (isset(
    //ADDON is INSTALLED and active
    if you want to test the addon version too, you can use
    if (isset($addOns['test']) && $addOns['test'] < 1020031){


Share This Page