• 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

katsulynx

Well-known member
#2
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.
 

Cylent1

Active member
#3
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 :(
 

katsulynx

Well-known member
#4
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.
 

Cylent1

Active member
#5
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.
Thanx for the advice. Do you happen to know where a good regex tutorial might be? I really know nothing about it.
 

Cylent1

Active member
#7
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?