VBadvanced cmps Help error..?

Status
Not open for further replies.

davidk

New Member
Messages
20
Reaction score
0
Points
0
i have installed on my vb forum the VBadvanced cmps
I have already rename the cmps_index.php to index.php
I have already add the path but i got this error and i cant show my site:

Parse error: syntax error, unexpected T_STRING in /home/dxflw/public_html/forum/index.php on line 24

the php file is this: and with the red color is the path
Code:
<?php
// ++=========================================================================++
// || vBadvanced CMPS v2.2.1 (vB 3.6) - 25780
// || © 2003-2007 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 10:36, Mon Dec 18th 2006
// || 
// ++ ========================================================================++

error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
define('VBA_SCRIPT', 'CMPS');

// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================

$forumpath = '[COLOR=Red]<?php

if ($_SERVER['PATH_TRANSLATED'])
{
    $path = $_SERVER['PATH_TRANSLATED'];
}
else if ($_SERVER['SCRIPT_FILENAME'])
{
    $path = $_SERVER['SCRIPT_FILENAME'];
}
else
{
    echo 'We are sorry, but this script is unable to determine your forums path.';
    exit;
}

echo substr($path, 0, (strlen($path) - 14));

?>[/COLOR]';

// ============================================
// No Further Editing Necessary!
// ============================================

if ($forumpath)
{
    if (!is_dir($forumpath))
    {
        echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';
        exit;
    }

    chdir($forumpath);
}

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();

require_once('./includes/vba_cmps_include_template.php');
require_once('./global.php');

print_portal_output($home);

?>

whta can i do to fix the problem ?
thank you
 

woiwky

New Member
Messages
390
Reaction score
0
Points
0
The single quotes need to be escaped in that string.

PHP:
<?php
// ++=========================================================================++
// || vBadvanced CMPS v2.2.1 (vB 3.6) - 25780
// || © 2003-2007 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 10:36, Mon Dec 18th 2006
// || 
// ++ ========================================================================++

error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
define('VBA_SCRIPT', 'CMPS');

// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================

$forumpath = '<?php

if ($_SERVER[\'PATH_TRANSLATED\'])
{
    $path = $_SERVER[\'PATH_TRANSLATED\'];
}
else if ($_SERVER[\'SCRIPT_FILENAME\'])
{
    $path = $_SERVER[\'SCRIPT_FILENAME\'];
}
else
{
    echo \'We are sorry, but this script is unable to determine your forums path.\';
    exit;
}

echo substr($path, 0, (strlen($path) - 14));

?>';

// ============================================
// No Further Editing Necessary!
// ============================================

if ($forumpath)
{
    if (!is_dir($forumpath))
    {
        echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';
        exit;
    }

    chdir($forumpath);
}

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();

require_once('./includes/vba_cmps_include_template.php');
require_once('./global.php');

print_portal_output($home);

?>
 

davidk

New Member
Messages
20
Reaction score
0
Points
0
thank you
The single quotes need to be escaped in that string.
how?
i have now new problem:
Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable
nowthe php file its this:
Code:
<?php
// ++=========================================================================++
// || vBadvanced CMPS v2.2.1 (vB 3.6) - 25780
// || © 2003-2007 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 10:36, Mon Dec 18th 2006
// || 
// ++ ========================================================================++

error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
define('VBA_SCRIPT', 'CMPS');

// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================

$forumpath = '<?php

if ($_SERVER[\'PATH_TRANSLATED\'])
{
	$path = $_SERVER[\'PATH_TRANSLATED\'];
}
else if ($_SERVER[\'SCRIPT_FILENAME\'])
{
	$path = $_SERVER[\'SCRIPT_FILENAME\'];
}
else
{
	echo \'We are sorry, but this script is unable to determine your forums path.\';
	exit;
}

echo substr($path, 0, (strlen($path) - 14));

?>';

// ============================================
// No Further Editing Necessary!
// ============================================

if ($forumpath)
{
	if (!is_dir($forumpath))
	{
		echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';
		exit;
	}

	chdir($forumpath);
}

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();

require_once('./includes/vba_cmps_include_template.php');
require_once('./global.php');

print_portal_output($home);

?>
 
Last edited:

woiwky

New Member
Messages
390
Reaction score
0
Points
0
Are you sure that $forumpath is supposed to be set to that php code? Try this instead:

PHP:
<?php
// ++=========================================================================++
// || vBadvanced CMPS v2.2.1 (vB 3.6) - 25780
// || © 2003-2007 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 10:36, Mon Dec 18th 2006
// || 
// ++ ========================================================================++

error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
define('VBA_SCRIPT', 'CMPS');

// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================


if ($_SERVER['PATH_TRANSLATED'])
{
    $forumpath = $_SERVER['PATH_TRANSLATED'];
}
else if ($_SERVER['SCRIPT_FILENAME'])
{
    $forumpath = $_SERVER['SCRIPT_FILENAME'];
}
else
{
    echo 'We are sorry, but this script is unable to determine your forums path.';
    exit;
}

// ============================================
// No Further Editing Necessary!
// ============================================

if ($forumpath)
{
    if (!is_dir($forumpath))
    {
        echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';
        exit;
    }

    chdir($forumpath);
}

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();

require_once('./includes/vba_cmps_include_template.php');
require_once('./global.php');

print_portal_output($home);

?>
 
Last edited:
Status
Not open for further replies.
Top