Thread: Major Additions - QuoteIt! - Quote Database
View Single Post
  #320  
Old 04-12-2007, 04:04 PM
skorzguy's Avatar
skorzguy skorzguy is offline
 
Join Date: May 2003
Location: Cleveland
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cap'n Steve View Post
Could you tell me what's on those lines mentioned in the Zoint's error messages?
Parse error: syntax error, unexpected T_STRING in /home/allswac1/public_html/forum/z/includes/external_auth/vbulletin36.php(116) : eval()'d code on line 3

vbulletin36.php
--------------------

Here is line 3 on vbulletin36.php:
define('THIS_SCRIPT', 'Zoints'); # fix for vbportal's lack of vbulletin compatibility

Here is line 116:
eval('$headinclude = "' . fetch_template('headinclude') . '";');

** Should line 116 have this? '";'); I am not a programmer but looks weird


----------------------

Cannot modify header information - headers already sent by (output started at /home/allswac1/public_html/forum/z/includes/external_auth/vbulletin36.php(116) : eval()'d code:3) in /z/includes/zoints.php on lines (341 + 342 + 343)

zoints.php
--------------

Line 341 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
Line 342 header("Pragma: no-cache");
Line 343 header("Cache-Control: no-cache, must-revalidate");

Lines 335-350 if this helps:

if (is_a($this->_user, 'z_user') AND $this->_user->usergroup('zointsadmin') AND !$this->_config['userstyles'])
{
$this->_config['userstyles_off'] = 1;
$this->_config['userstyles'] = 1;
}

header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header("Pragma: no-cache");
header("Cache-Control: no-cache, must-revalidate");


if (!defined('z_install'))
{
$this->_template->_navbar->init();
}


---------------

Warning: Cannot modify header information - headers already sent by (output started at /home/allswac1/public_html/forum/z/includes/external_auth/vbulletin36.php(116) : eval()'d code:3) in /z/includes/functions.php on lines (100+103)

function.php
---------------

Line 100 header("HTTP/1.1 301 Moved Permanently");
Line 103 header("Location: $url");

This is lines 82-105 if this helps:

// check if it's a full url, ie http://
if (!preg_match('#^[a-z]+://#i',$url))
{
$dir = dirname($_SERVER['PHP_SELF']);
if (substr($url,0,1) != '/' AND substr($dir,-1,1) != '/')
{
$dir .= '/';
}
$url = (($_SERVER["SERVER_PORT"] == 443)?'https://':'http://') . $_SERVER['HTTP_HOST'] . $dir . $url;
}

if (strpos($url, '&'))
{
$url = str_replace('&', '&', $url);
}

if ($threeohone)
{
header("HTTP/1.1 301 Moved Permanently");
}

header("Location: $url");
exit;
}

--------------------------------------------------------------

I hope this helps, like I said. The quotes works perfectly on the forums page but I would like it to be on other pages too like this. It does this after adding the global plugin but it doesn't allow the zoints profile's to work anymore.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01215 seconds
  • Memory Usage 1,769KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete