PDA

View Full Version : CMPS_index.php file path problem


BoostedK20
03-09-2011, 09:32 PM
I can't figure out the correct path... Here is my code:
error_reporting(E_ALL & ~E_NOTICE & ~8192);
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 = './forums';

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

?>

On my FTP, it has my website url and directly underneath that is my forums folder, so I figured ./forums is correct... if you go to mywebsite.com/forums it will bring up my forums page (which is really www.mywebsite.com/forums/forum.php). Can anyone help me figure this out? Sorry for the annoyance! thank you

--------------- Added 1299731924 at 1299731924 ---------------

Really.... No one?

--------------- Added 1299765918 at 1299765918 ---------------

.... Anyone?

BoostedK20
03-13-2011, 05:06 AM
Anyone.....

WEBDosser
03-13-2011, 07:20 AM
i think i told you somewhere.. but hey.

you need the absolute path something like home/username/public_html/forums

gbox master
03-13-2011, 10:47 AM
you have a file called forumpath.php i think
upload it in your htdocs
it must be the folder where the forum is located
goto it with your browser
http://yoursite.com/forumpath.php

thats all there is to it to find the path


then you edit this part

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

$forumpath = 'var/www/home/mysite/whoknows/forum';

just copy and paste the path you get when you use the url




I can't figure out the correct path... Here is my code:


On my FTP, it has my website url and directly underneath that is my forums folder, so I figured ./forums is correct... if you go to mywebsite.com/forums it will bring up my forums page (which is really www.mywebsite.com/forums/forum.php). Can anyone help me figure this out? Sorry for the annoyance! thank you

--------------- Added 1299731924 at 1299731924 ---------------

Really.... No one?

--------------- Added 1299765918 at 1299765918 ---------------

.... Anyone?

BoostedK20
03-14-2011, 04:59 AM
I'm sorry guys, I have since changed that to the correct forum path. I think my problem is the installation of vBa cmps. I re-installed it but I think my problem is that I have the index.php file in both the forums folder and the root folder... Home page still doesn't show the correct styles