The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hooks Question
I have a hook that I want to add to the admincp login page. I know I have to use adminfunctions.php. The question I have is I have a hook that usually goes in the navbar near the login and submit buttons. Anyway I'm trying to add the hook and I know I have to use
PHP Code:
Heres what I think it is (yes I know I did change hook_name_here): PHP Code:
PHP Code:
|
#2
|
||||
|
||||
You need to add a file to the includes/xml directory that defines your hook so it will show up in the hook location dropdown. Take a look at the existing files in there and you should get a good idea of what to do. Post back if you can't figure it out.
|
#3
|
|||
|
|||
I'm going to take the wildest guess here, I'm guessing in the adminfunctions.php I have to put:
PHP Code:
PHP Code:
|
#4
|
||||
|
||||
It looks right - just try it and you'll see.
|
#5
|
|||
|
|||
It still doesn't work. Any other ideas?
Also is it... PHP Code:
PHP Code:
|
#6
|
||||
|
||||
If you are creating a php hook, then you need to add it to the php page. You just make it look like any other evaled hook in a php page. You should not be echoing the hook like you are.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|