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

XF 1.5 Template Editing Question

Discussion in 'Styling and Customization Questions' started by Cylent1, Jan 22, 2016.

  1. Cylent1

    Cylent1 Active Member

    Hello!
    I was wondering what exactly the "Execution Order" in template modifations is and what it does exactly?
     
  2. katsulynx

    katsulynx Well-Known Member

    As it says, it's the order in which template modifications are applied to a template. If two modifications are searching for the exact same thing to change it, the one with the lower execution number comes first, changes it and the second one will probably no longer be able to find it and therefor don't execute at all.
     
  3. Cylent1

    Cylent1 Active Member

    wow! I thought it had something to do with that! That is why my latest addon I am making seems to jumble up!
    Now I recently switched half the numbers making sure none of them have the same, Hopefully it won't mess it all up worse :(
     
  4. katsulynx

    katsulynx Well-Known Member

    Doesn't matter if they have the same number, they'll still be executed one after another, then by alphabet I'd asume. It shouldn't happen that you change something that has already been changed within your own addon. In that case you might want to bring them into a better order, merge them together into one edit or work with regex to make sure it always hits the right spot.
     
  5. Cylent1

    Cylent1 Active Member

    Thanx for the advice. Do you happen to know where a good regex tutorial might be? I really know nothing about it.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

  7. Cylent1

    Cylent1 Active Member

    Just a couple of quick questions:

    What is regex and what is it exactly used for?
    Is regex the better route to go for template editing?
    If so would it be wise to change all my template edits to regex?
     

Share This Page