Closed Thread
Results 1 to 6 of 6

Thread: VBadvanced cmps Help error..?

  1. #1
    davidk is offline x10Hosting Member davidk is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    20

    VBadvanced cmps Help error..?

    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 = '<?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);
    
    ?>
    whta can i do to fix the problem ?
    thank you

  2. #2
    woiwky is offline x10 Lieutenant woiwky is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    390

    Re: VBadvanced cmps Help error..?

    The single quotes need to be escaped in that string.

    PHP 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);

    ?>
    "But you have access to the greatest source of knowledge in the universe."
    "Well I do talk to myself sometimes, yes."

    "I'm back, and I'm bad! Obviously within certain, sensible, preset parameters"

  3. #3
    davidk is offline x10Hosting Member davidk is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    20

    Re: VBadvanced cmps Help error..?

    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 by davidk; 05-13-2008 at 06:02 AM.

  4. #4
    woiwky is offline x10 Lieutenant woiwky is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    390

    Re: VBadvanced cmps Help error..?

    Are you sure that $forumpath is supposed to be set to that php code? Try this instead:

    PHP 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
    // ============================================


    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 by woiwky; 05-13-2008 at 06:31 AM.
    "But you have access to the greatest source of knowledge in the universe."
    "Well I do talk to myself sometimes, yes."

    "I'm back, and I'm bad! Obviously within certain, sensible, preset parameters"

  5. #5
    davidk is offline x10Hosting Member davidk is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    20

    Re: VBadvanced cmps Help error..?

    ok super my friend its works thanks allot!!

  6. #6
    LHVWB's Avatar
    LHVWB is offline Lord Of The Keys LHVWB is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Australia
    Posts
    1,308

    Re: VBadvanced cmps Help error..?

    * Thread Closed *

Closed Thread

Similar Threads

  1. Replies: 5
    Last Post: 03-23-2008, 11:40 PM
  2. ISP Driver error, again.
    By Stryker in forum Free Hosting
    Replies: 3
    Last Post: 02-01-2008, 08:27 AM
  3. XHTML help please
    By mac173 in forum Graphics & Webdesign
    Replies: 3
    Last Post: 01-29-2008, 11:39 AM
  4. {req} Banners
    By SEÑOR in forum The Marketplace
    Replies: 23
    Last Post: 01-05-2006, 03:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers