![]() |
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:
|
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.
|
I'm going to take the wildest guess here, I'm guessing in the adminfunctions.php I have to put:
PHP Code:
PHP Code:
|
It looks right - just try it and you'll see.
|
It still doesn't work. Any other ideas?
Also is it... PHP Code:
PHP Code:
|
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.
|
All times are GMT. The time now is 05:11 PM. |
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:
|