| | |
Parse error:
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
First off, I am completely new to php
hello I am running vbulletin 3.0.3 and I am trying to use the How to create your own vBulletin-powered page! (uses vB templates). The reason that I want to create this page is so that I can intergrate a glossary script that will look just like the rest of my forums. I was able to create this page just fine, but I added the index.php that is used for the glossary into a template called test in vbulletin and tired to save it, but I got this error
this is the code that I have on line 26 thur 29
[PHP]$sys['path_include'] = 'inc';
$sys['is_prepend'] = 1;
include_once('./db_config.php');
include_once($sys['path_include'] . '/config.inc.php');[/PHP]
The only way that I have found on vbulletin.org is to use it this way and call it from a template, unless any one else should have an idea?
What can I do to over come this error as this is the best glossary layout that I have found and like (for free)? Any help would be great
hello I am running vbulletin 3.0.3 and I am trying to use the How to create your own vBulletin-powered page! (uses vB templates). The reason that I want to create this page is so that I can intergrate a glossary script that will look just like the rest of my forums. I was able to create this page just fine, but I added the index.php that is used for the glossary into a template called test in vbulletin and tired to save it, but I got this error
•
•
•
•
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/jaxen/public_html/4xtraders/forum/includes/adminfunctions_template.php(3055) : eval()'d code on line 26
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
[PHP]$sys['path_include'] = 'inc';
$sys['is_prepend'] = 1;
include_once('./db_config.php');
include_once($sys['path_include'] . '/config.inc.php');[/PHP]
The only way that I have found on vbulletin.org is to use it this way and call it from a template, unless any one else should have an idea?
What can I do to over come this error as this is the best glossary layout that I have found and like (for free)? Any help would be great
Give us the few lines before 26 as well.
Also, nice to see you using my tutorial and putting it to good use :p
Also, nice to see you using my tutorial and putting it to good use :p
•
•
•
•
Originally Posted by Gary
Give us the few lines before 26 as well.
Also, nice to see you using my tutorial and putting it to good use :p
Ok... here is 1-50 on the code
[PHP]<?php
/**
* $Id: index.php,v 1.20 2004/11/13 12:31:42 yrtimd Exp $
*/
/**
* Glossword - glossary compiler (http://glossword.info/dev/)
* © 2002-2004 Dmitry N. Shilnikov <dev at glossword.info>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* (see `glossword/support/license.html' for details)
*/
/* ------------------------------------------------------- */
/**
* Website
*/
/* ------------------------------------------------------- */
if (!defined('IN_GW'))
{
define('IN_GW', true);
}
/* ------------------------------------------------------- */
/* Load configuration */
$sys['path_include'] = 'inc';
$sys['is_prepend'] = 1;
include_once('./db_config.php');
include_once($sys['path_include'] . '/config.inc.php');
/* ------------------------------------------------------- */
/* Append system settings */
$sys = array_merge($sys, getSettings());
/* --------------------------------------------------------
* mod_rewrite configuration
* ------------------------------------------------------- */
$oHtml = new gw_html;
$oHtml->setVar('ar_url_append', $sys['ar_url_append']);
$oHtml->setVar('is_htmlspecialchars', 0);
$oHtml->setVar('is_mod_rewrite', $sys['is_mod_rewrite']);
$oHtml->setVar('mod_rewrite_suffix', ',xhtml');
$oHtml->setVar('server_dir', $sys['server_dir']);
$oHtml->setVar('mod_rewrite_rule',
array('a=t' => '/a/d/q', 'a=term' => '/a/r/t,d', 'a=list' => '/a/d/p,w1,w2', 'a='.A_PRINT => '/a/q,t,d', 'a=srch' => '', '/a/t')
);
if (($sys['is_mod_rewrite']) && (!preg_match("/\.php/", REQUEST_URI)))
{
parse_str($oHtml->url_dir2str(REQUEST_URI), $_GET);
}[/PHP]
You didn't pay attention to the error message, now did you?
It says right here in your first post:
Check your <if> statements in templates. You might be missing </if>
It says right here in your first post:•
•
•
•
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
I doesn't like line 29:
[PHP]include_once($sys['path_include'] . '/config.inc.php');[/PHP]
but I don't know enough ab
[PHP]include_once($sys['path_include'] . '/config.inc.php');[/PHP]
but I don't know enough ab
hmmm actually it's line 26 it doesn't like:
[PHP]$sys['path_include'] = 'inc';[/PHP]
but no clue whats wrong
[PHP]$sys['path_include'] = 'inc';[/PHP]
but no clue whats wrong
Nope, that's incorrect actually.
It doesn't like line 26 in the EVALUATED code, meaning line 26 of the template that it is trying to execute
It doesn't like line 26 in the EVALUATED code, meaning line 26 of the template that it is trying to execute
![]() |
Similar Threads
- Help. Parse error in PHP code (PHP)
- PHP Parse error: parse error, unexpected T_STRING (PHP)
- Parse error: parse error, unexpected T_STRING in /home/thei2k9/public_html/includes/f (PHP)
- Need Help With Parse Error... (PHP)
- Parse Error message when testing page on browser - HELP!! (PHP)
- I need help with a parse error! (PHP)
- Parse error, syntax error, Forbids declaration (C++)
Other Threads in the PHP Forum
- Previous Thread: PHPNuke mysql error
- Next Thread: Multiple vulnerabilities in PHP 4/5
| Thread Tools | Search this Thread |
advanced ajax apache api array basics beginner binary broken cakephp check checkbox class cms code combobox cookies cron curl database date datepart display dynamic echo email error file files folder form forms function functions google head href htaccess html image include includingmysecondfileinthechain insert integration ip java javascript job joomla js limit link login loop mail menu mlm multiple mysql oop parse password paypal pdf php problem procedure query radio random recursion regex remote script search server sessions smarty smash sms soap source space sql stored syntax system table traffic tutorial unicode update upload url validator variable video web xml youtube





