The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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"> <html lang="en-us"> <head> <script type="text/javascript" src="http://www.terrarienbilder.com/parallax/jquery-1.2.6.min.js"></script> <script type="text/javascript" src="http://www.terrarienbilder.com/parallax/jquery.jparallax.js"></script> <link rel="stylesheet" type="text/css" media="screen" href="http://www.terrarienbilder.com/parallax/style.css"> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('#parallax').jparallax({}); }); </script> </head> <body> <hr size="1"> <table style="text-align: left; width: 100%;" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="width: 24%;"></td> <td style="width: 802px; text-align: center; vertical-align: middle;"> <div style="border: 1px solid ; position: relative; width: 800px; height: 150px;" id="parallax"> <div style="width: 800px; height: 150px;"><img alt="" src="http://www.terrarienbilder.com/parallax/bg_1.png"></div> <div style="width: 990px; height: 180px;"> <img style="position: absolute; top: -40px; left: 650px;" alt="" src="http://www.terrarienbilder.com/parallax/palm_1.png"></div> </div> </td> <td style="width: 24%;"></td> </tr> </tbody> </table> <hr size="1"> </body> </html> |
#3
|
||||
|
||||
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 |
#4
|
|||
|
|||
Ok, I managed it to show the Header.
I simply added the Code directly into the Header-Template. 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"> jQuery(document).ready(function(){ jQuery('#parallax').jparallax({}); }); </script> I tried headinclude-Template, doesn`t work. Thanks in advance MayerZwo |
#5
|
|||
|
|||
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> <script type="text/javascript" src="http://www.terrarienbilder.com/parallax/jquery.jparallax.js"></script> <link rel="stylesheet" type="text/css" media="screen" href="http://www.terrarienbilder.com/parallax/style.css"> <script type="text/javascript"> jQuery(document).ready(function(){'; $template_hook['headinclude_javascript'] .= "jQuery('#parallax').jparallax({}); }); </script>"; HTML Code:
<hr size="1"> <table style="text-align: left; width: 100%;" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="width: 24%;"></td> <td style="width: 802px; text-align: center; vertical-align: middle;"> <div style="border: 1px solid ; position: relative; width: 800px; height: 150px;" id="parallax"> <div style="width: 800px; height: 150px;"><img alt="" src="http://www.terrarienbilder.com/parallax/bg_1.png"></div> <div style="width: 990px; height: 180px;"> <img style="position: absolute; top: -40px; left: 650px;" alt="" src="http://www.terrarienbilder.com/parallax/palm_1.png"></div> </div> </td> <td style="width: 24%;"></td> </tr> </tbody> </table> <hr size="1"> |
Благодарность от: | ||
MayerZwo |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|