![]() |
Include Html as Header
Hello
Im trying to include this as Header at my vB4.1.5. I used this Tutorial but I?m getting two Errors: [function.file]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in [path]/global.php(29) : eval()'d code (Zeile 1) Warnung: implode() [function.implode]: Invalid arguments passed in [path]/global.php(29) : eval()'d code (Zeile 1) Thanks for any Help. Best Regards |
Okay, Error Messages are gone now, but the Header doesn`t show up.
What did I do so far:
I simply just wanna show the following Header-Code at Top of the Site. Header Code is: Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
what does the file function do and are you sure it returns an array?
I'm not sure if you actually know what you're doing with the implode and file functions there, otherwise you'd know what causes this, apparently file does not return an array, which implode expects. Also: URL path instead of absolute path? weird |
Ok, I managed it to show the Header.
I simply added the Code directly into the Header-Template. :o Well, one Problem stays. The Header has an jparallax-Effect. As soon as I put the following Code into Header-Template I can`t save the Template. So I`m not able to get the jparallax working. Code:
<script type="text/javascript"> I tried headinclude-Template, doesn`t work. Thanks in advance MayerZwo |
Create a plugin that uses the 'parse_templates' hook.
Place this code in the plugin.. Code:
$template_hook['headinclude_javascript'] .= ' <script type="text/javascript" src="http://www.terrarienbilder.com/parallax/jquery-1.2.6.min.js"></script> HTML Code:
<hr size="1"> |
Amazing nhawk !
Works Perfect. Thanks for helping an Noob. :up: Best regards MayerZwo |
All times are GMT. The time now is 07:06 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:
|