PDA

View Full Version : vbispy help


Chadi
05-24-2007, 11:21 AM
I installed this mod called vbispy, but the coder is not very helpful in solving the issue I get, which happens ONLY with his mod. I literally have at least 50 others installed, only his gives off this error.

I'm getting this error after upgrading vb to 3.6.7 and re-upgrading this hack

Parse error: syntax error, unexpected T_STRING in /home/user/public_html/vaispy.php(337) : eval()'d code on line 1

It says

eval('$headinclude = "' . fetch_template('headinclude') . '";');


This is my entire headinclude template:

<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
<meta name="generator" content="vBulletin $vboptions[templateversion]" />
<if condition="$show['threadinfo']">
<meta name="keywords" content="$threadinfo[title], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
<else />
<if condition="$show['foruminfo']">
<meta name="keywords" content="$foruminfo[title_clean], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
<else />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />
</if>
</if>

<!-- CSS Stylesheet -->
$style[css]
<if condition="is_browser('opera') AND !is_browser('opera', '8.0.1')">
<style type="text/css">
ul, ol { padding-left:20px; }
</style>
</if>
<!-- / CSS Stylesheet -->

<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
var vb_disable_ajax = parseInt("$vboptions[disable_ajax]", 10);
// -->
</script>
<script type="text/javascript" src="clientscript/glossary_crosslinking.js"></script>
<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js?v=$vboptions[simpleversion]"></script></if>
<script type="text/javascript">
document.cookie = "psistats_screenwidth = " + self.screen.width;
document.cookie = "psistats_screenheight = " + self.screen.height;
document.cookie = "psistats_screendepth = " + self.screen.colorDepth;
</script>
<if condition="$vboptions['externalrss']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS2" />
<if condition="$show['foruminfo'] OR $show['threadinfo']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&amp;forumids=$foruminfo[forumid]" />
</if>
</if>

<if condition="$show['member']"><else />
<script language="JavaScript" src="$stylevar[imgdir_misc]/mootools.js" type="text/JavaScript"></script>
<script type="text/javascript">
window.addEvent('domready', function(){
var mySlide = new Fx.Slide('vbstyles_element').hide();
$('toggle').addEvent('click', function(e){
e = new Event(e);
mySlide.toggle();
e.stop();
});
});
</script></if>
<script type="text/javascript" src="/highslide/highslide.js"></script>
<script type="text/javascript">

// remove the registerOverlay call to disable the controlbar
hs.registerOverlay(
{
thumbnailId: null,
overlayId: 'controlbar2',
position: 'bottom left',
hideOnMouseOut: true,
opacity: 0.75
}
);

hs.graphicsDir = '/highslide/graphics/';
hs.outlineType = 'rounded-white';
window.onload = function() {
hs.preloadImages(5);
}
</script>
<link rel="stylesheet" href="/highslide/highslide.css" type="text/css" media="screen" />

This is very strange. I still get the same exact error even after reverting headerinclude back to default, which is this one.

<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
<meta name="generator" content="vBulletin $vboptions[templateversion]" />
<if condition="$show['threadinfo']">
<meta name="keywords" content="$threadinfo[title], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
<else />
<if condition="$show['foruminfo']">
<meta name="keywords" content="$foruminfo[title_clean], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
<else />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />
</if>
</if>

<!-- CSS Stylesheet -->
$style[css]
<if condition="is_browser('opera') AND !is_browser('opera', '8.0.1')">
<style type="text/css">
ul, ol { padding-left:20px; }
</style>
</if>
<!-- / CSS Stylesheet -->

<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
var vb_disable_ajax = parseInt("$vboptions[disable_ajax]", 10);
// -->
</script>

<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js?v=$vboptions[simpleversion]"></script></if>
<if condition="$vboptions['externalrss']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS2" />
<if condition="$show['foruminfo'] OR $show['threadinfo']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&amp;forumids=$foruminfo[forumid]" />
</if>
</if>

Please help me out!

Dismounted
05-25-2007, 10:00 AM
From what I read, this is line 337 in vbispy.php:
eval('$headinclude = "' . fetch_template('headinclude') . '";');
What are the few lines above it?

Chadi
05-25-2007, 10:17 AM
$navbits = array();
$navbits[$parent] = 'iSpy';
$navbits = construct_navbits($navbits);

eval('$navbar = "' . fetch_template('navbar') . '";');
$navbar = process_replacement_vars($navbar);

eval('$headinclude = "' . fetch_template('headinclude') . '";');

Chadi
05-26-2007, 05:02 PM
I'll give someone $10 via paypal if they can figure this out.

Chadi
05-28-2007, 01:19 AM
:(

*** please help out ***

I've asked on vbulletin.com, vb.org, and the skin developer. No one has helped out with a resolution.

troybtj
05-29-2007, 05:44 AM
I run vaispy, and have customized it a bit.

As long as the vbulletin root is set to the same location as vaispy.php it seems to work.

I am willing to look at yours to see what I can come up with. vaispy.php should be protected with an .htaccess file. Send me a PM and I'll see what I can do with it.

Chadi
05-29-2007, 10:43 AM
Thanks, but send you a pm of what?

Chadi
06-02-2007, 01:30 AM
I really would appreciate some help, anyone.

haytham
06-02-2007, 08:27 AM
I run vaispy, and have customized it a bit.

As long as the vbulletin root is set to the same location as vaispy.php it seems to work.

I am willing to look at yours to see what I can come up with. vaispy.php should be protected with an .htaccess file. Send me a PM and I'll see what I can do with it.

What do you mean by " .php should be protected with an .htaccess file." ? If it's protected then how can people see it? Please clarify. Thanks.
Chadi I hope someone can help you. I just followed directions and it installed. I have 3.6.7

I am going to PM you now ok?