PDA

View Full Version : Index Forumpath Not Working


Draygonia
08-05-2006, 04:02 PM
I used forumpath to define the path to my forums and when I use the cmps_index.php I get this error:

Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.

Any reason why this is happening?

Vbulletin: 3.6.0
vBadvanced: 2.2

ncangler
08-05-2006, 04:08 PM
I just installed vBa 2.2 after upgrading to vBulletin 3.6.0 and I am having the same problem. I have checked the path and it is correct but I still get the error message. What could be happening? Thanks for any help.

Our Sponsors
 

Draygonia
08-05-2006, 09:14 PM
Nobody can answer this? :( Than I guess its just a vbadvanced bug?

ncangler
08-06-2006, 12:11 AM
Okay I figured out my problem with this. I had edited the example code line not the actual forumpath code line. LOL! :p I must be really tired, cause I've been doing this stuff for 2 years now and I'll bet I looked at that cmps_index.php file 5-6 times before I realized what I'd NOT done. I hope my embarrasement helps someone else. ;)

Our Sponsors
 

Draygonia
08-06-2006, 12:17 AM
I however am getting this problem and I did type it in right :(

EDIT: ARG! I DONT GET IT! I put in the EXACT path from the forumpath.php! What is going on?!

Draygonia
08-06-2006, 12:29 AM
Nevermind! My client wasnt updating files normally :D

1996 328ti
08-06-2006, 08:12 PM
Odd, I'm having the same problem.

Also notice that the portal version did not change, nor is the portal version appearing in the footer.

1996 328ti
08-06-2006, 09:34 PM
Well, I reupload the files. Still no dice.
I decide to uninstall and reinstall.
Well it says I already have the latest version. Grrrrrr!

Edit: So I delete my adv_ tables and start all over.
Still nothing.

1996 328ti
08-07-2006, 07:49 PM
I did a little experiment.
I have a test forum with no plugins at all.
A clean install of vB 3.6 Gold.
Installed the last vBa 2.2.

Still 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.'
And my forumdisplay page does not show the left column even the I have the proper define statements.

EDIT: is anyone using vBadvanced on anything other than the home page?

http://www.318ti.org/index2.php displays the problem.
http://www.318ti.org/index.php uses a modified version of an older cmps_index.php file.
SAME FORUM PATH!

Zachery
08-07-2006, 09:25 PM
Can you paste the conents of index2.php ?

1996 328ti
08-07-2006, 10:18 PM
Can you paste the conents of index2.php ?
<?php
// ++=========================================================================++
// || vBadvanced CMPS v2.2.0 (vB 3.6) - 3800
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 19:52, Sun Aug 6th 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
// ============================================

chdir('/home/username/public_html/forum');


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

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

?>

Zachery
08-08-2006, 01:01 AM
chdir('/home/username/public_html/forum');

Is wrong, thats from the old file

The default file now looks like this


<?php
// ++=========================================================================++
// || vBadvanced CMPS v2.2.0 (vB 3.6)
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 23:05, Wed Jul 5th 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 = '';

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

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

?>