The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Why Can't I add a plugin
Hi;
I've added a plugin with the following code, this should allow me to include another html file into my header section; $my_header = implode('', file('../main.html')); However when I added the variable $my_header into the header section of the style, I seem to get the following displayed on the top before the logo: $my_header Why the plugin is not working? I should expect the content of the included html file to appear before the logo. I have enabled plugin on the whole of my VBulletin Any advise will be appreciated Thanks |
#2
|
|||
|
|||
Eurgh! Why do people insist on using no standard colors & fonts when posting!
Anyway... what did you set as the hook location? Also when you said "header section" what exactly do you mean by "section"? Do you mean template or something else? It seems odd that the $my_header is not evaluated to just an empty variable which is what I would have expected to happen. Can you post the entire contents of the Plugin? (use [php] [/php] tags ) |
#3
|
|||
|
|||
Thanks for the reply.
The hook location was at global_start. And I mean by the header, the header template. The plugin php code is : PHP Code:
PHP Code:
Thanks hicham |
#4
|
||||
|
||||
It will help if you put a semi-colon at the end of your php code. ie:
PHP Code:
|
#5
|
||||
|
||||
<a href="http://www.vbulletin.com/docs/html/templates_externalfiles" target="_blank">http://www.vbulletin.com/docs/html/t..._externalfiles</a>
|
#6
|
|||
|
|||
Quote:
Thanks The semi colun is already in my code, I just missed it when posting my reply. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|