![]() |
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 :( ? |
Well it really depends on how the hook is placed, and what exactly is above the hook.
|
Quote:
Above the hook... PHP Code:
PHP Code:
PHP Code:
|
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. |
All times are GMT. The time now is 05:29 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|