The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Which Execution Order to use
I couldn't find any documentation of this on the manual.
This is what I made out of the description given. Quote:
I have a few questions. Now how does one go about choosing the execution order or see if any other snippet is conflicting. What happens if they overlap? I see different products using the same hooks, do they all need to have different Execution Orders. thx |
#2
|
|||
|
|||
Unless there is a specific reason you want you code to run before or after other plugins, i would simply leave it at the default of 5.
|
#3
|
|||
|
|||
Is execution order ascending? Does an EO of 1 run before an EO of 5?
I am getting a warning about a foreach() in one of my plugins, but I'm having a hard time figuring out *which* foreach it is because the reported line number doesn't have a foreach on it. I can set the EO to 1 or to 10 but it still won't land on a line that actually has a foreach. |
#4
|
|||
|
|||
Yes, if you have multiple plugin's then check all of the plugins that are associated with the hook that is being excecuted when the error is generated. Your error will probably look like this:
Quote:
193 is the Line number in somefile.php from this you can find the hook which is being executed, 212 is the line number of the code from plugins associated with that hook. |
#5
|
|||
|
|||
I figured that out. What I need to know is whether the plugin execution order is ascending or descending. I am getting wierd results from setting it to 1 or 10.
|
#6
|
||||
|
||||
1 runs first and 10 runs last.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|