The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]() Quote:
Code:
<link rel="stylesheet" href="clientscript/nivo-slider.css" type="text/css" media="screen" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script src="clientscript/jquery.nivo.slider.pack.js" type="text/javascript"></script> <div id="slider"> <a href="http://www.repairmanjack.com"><img src="http://www.repairmanjack.com/forum/animate_logo/rj_logo00.png" /></a> <a href="http://www.repairmanjack.com"><img src="http://www.repairmanjack.com/forum/animate_logo/rj_logo01.png" /></a> <a href="http://www.repairmanjack.com"><img src="http://www.repairmanjack.com/forum/animate_logo/rj_logo02.png" /></a> <a href="http://www.repairmanjack.com"><img src="http://www.repairmanjack.com/forum/animate_logo/rj_logo00.png" /></a> <a href="http://www.repairmanjack.com"><img src="http://www.repairmanjack.com/forum/animate_logo/rj_logo03.png" /></a> <a href="http://www.repairmanjack.com"><img src="http://www.repairmanjack.com/forum/animate_logo/rj_logo04.png" /></a> <a href="http://www.repairmanjack.com"><img src="http://www.repairmanjack.com/forum/animate_logo/rj_logo00.png" /></a> <a href="http://www.repairmanjack.com"><img src="http://www.repairmanjack.com/forum/animate_logo/rj_logo05.png" /></a> <a href="http://www.repairmanjack.com"><img src="http://www.repairmanjack.com/forum/animate_logo/rj_logo.png" /></a> </div> <vb:literal> <script type="text/javascript"> $(window).load(function() { var total = $('#slider img').length; var rand = Math.floor(Math.random()*total); $('#slider').nivoSlider({ effect:'random', slices:15, animSpeed:500, pauseTime:7000, startSlide:rand, directionNav:false, directionNavHide:true, controlNav:false, controlNavThumbs:false, controlNavThumbsFromRel:false, keyboardNav:true, pauseOnHover:true, manualAdvance:false, captionOpacity:0.8, beforeChange: function(){}, afterChange: function(){}, slideshowEnd: function(){} }); }); </script> </vb:literal> |
#12
|
|||
|
|||
![]()
I tested to make sure - using a non-existent template should just result in a (more or less) empty string.
If you haven't already, maybe try this code: PHP Code:
I'm not really an expert on these kinds of thing, but based on what I've seen before I'm kind of getting a feeling like it's a problem other than what you're doing, like maybe a php configuration issue or something wrong with the vb installation. Is this a new install of vb? Did you try running "Suspect File Versions" under Maintenance in the adminCP? |
#13
|
|||
|
|||
![]() Quote:
I changed the plugin code and that stopped the Internal Server Error. Not sure why Code:
$templater->render() But the images in the slider won't load. Not sure what's up with that, but that's a different problem entirely. |
#14
|
|||
|
|||
![]()
Well, in retrospect I guess that didn't help much since you already knew it was the call to render causing the problem. But taking it out isn't really a fix since you should be able to reder a template there if you want.
|
#15
|
|||
|
|||
![]() Quote:
Also, should it be Code:
$template->render() Code:
$templater->render() |
#16
|
||||
|
||||
![]()
$templater->render() is correct since that is what he defined.
Try this for preregistering: Code:
vB_Template::preRegister('header', array('templatevalues' => $templatevalues)); |
#17
|
||||
|
||||
![]()
Also, is it *any* template you render via a plugin on that site that causes issues, or just this one? If it is any template, then I would suspect something like mod_security or suhosin to be the problem. Have you run diagnostics > problematic webserver modules?
|
#18
|
|||
|
|||
![]() Quote:
Quote:
Problematic Webserver pops up with No to "Module Loaded" and "AJAX Unicode Issue". --------------- Added [DATE]1311209342[/DATE] at [TIME]1311209342[/TIME] --------------- Just a minor update. When I add your code: Code:
vB_Template::preRegister('header', array('templatevalues' => $templatevalues)); Fatal error: Call to a member function render() on a non-object in /home/fpaul46/public_html/forum/includes/class_core.php(4257) : eval()'d code on line 2 |
#19
|
|||
|
|||
![]()
No other ideas?
|
#20
|
|||
|
|||
![]()
Ah, yeah, I can't believe I didn't think of this before, but did you try a different hook location, like maybe parse_templates? The one you're using is actually in the vB_Template code and is called when a variable is registered, so that could be causing strange things to happen.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|