The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Noob question regarding hooks
I'm looking at the files and I see the hook(s) inside. However, I don't want to add code, I want to change what the code directly above the hook does (Which is an if/else statement).
I'm going to assume this is possible to do using hooks. If so, how would I go about doing that? If not, I'm guessing it means I'd have to hack the code directly, right ? |
#2
|
|||
|
|||
Well it really depends on how the hook is placed, and what exactly is above the hook.
|
#3
|
|||
|
|||
Quote:
Above the hook... PHP Code:
PHP Code:
PHP Code:
|
#4
|
|||
|
|||
The code you've pasted wont work since $days isnt set.
However, its easy to achieve using a hook by overwriting the variable instead of modifying the code. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|