The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
plugin not working?
Im trying to create a hook out of this page
http://lvasp.com/providers_hook.php So I add the PHP include like the manual says, I'm trying to import it into http://lvasp.com/forum/providers.php But when I enable the hook (screenshot) the board breaks and I have to disable it. (attatched is also the source code of the hook. Any ideas... Thanks... |
#2
|
||||
|
||||
As you are coding your own custom page, you can put the PHP code directly into the providers.php file. There is no need to use hooks.
|
#3
|
|||
|
|||
How do I do that. I used this (https://vborg.vbsupport.ru/showthrea...n+powered+page) tutorial so heres the code for my php page.
|
#4
|
|||
|
|||
What do you mean "How do you do it?", you need to put the PHP in the PHP file (under the START MAIN SCRIPT section).
I'm not sure how else to explain it. |
#5
|
|||
|
|||
Man (I think I'm missing something here)
I took the code from providers_page.php and copied it into line 37 and I got "Sorry, page unavailable" (is that right? Thanks... |
#6
|
|||
|
|||
Quote:
|
#7
|
|||
|
|||
But, placing the code there (inside providers.php on line 37 should work?) Why does it work without it?
Thanks |
#8
|
||||
|
||||
Perhaps you need to figure out why you are getting the "Page Unavailable" message first. Do you have the permissions set correctly on the file - 644?
|
#9
|
|||
|
|||
ok, I created this hook, (1st screenshot) and in it created the $providers variable like in your tutorial, but when I include the variable ($providers in the second screenshot) in a template, the board breaks, till I disable the hook. I can even go straight the the hook
http://www.lvasp.com/providers_hook.php Thanks What is the correct way to do this? |
#10
|
||||
|
||||
Try {$providers}
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|