PDA

View Full Version : URL Problem


kellee88
03-17-2006, 04:09 PM
We have changed our cmps_index.php directory as follows:

chdir('/home2/kellee88/public_html/forum');

In our AdminCP/vboptions/site URL we changed the url to http://www.interfaithforums.com/forum

We get the following error and the forums address has not been changed to
http://www.interfaithforums.com/forum

Warning: chdir(): No such file or directory (errno 2) in /home2/kellee88/public_html/cmps_index.php on line 34

Are we missing a step?

The cmps is here:http://www.interfaithforums.com/cmps_index.php
Our forums are here: http://ww.interfaithforums.com

Thanks for any help you can give.

It appears we need a way to change the forums URL.

Also, in the cmps default settings in AdminCP there is a box for the URL of the cmps. Does that need to be changed?

Here is the way the cmps_indes.php reads:
// ============================================
// 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('/home2/kellee88/public_html/forum');

Does the placement of chdir need to be changed?

KW802
03-17-2006, 04:16 PM
The latest version of CMPS doesn't use the chdir command in cmps_index.php, it's using a variable instead. Mind posting the forum variable from your cmps_index.php file so we can take a look?

Our Sponsors
 

kellee88
03-17-2006, 04:36 PM
Is this what you need?

<?php
// ++=========================================================================++
// || vBadvanced CMPS v2.1.0 (vB 3.5) - 23582
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 17:08, Thu Mar 16th 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('/home2/kellee88/public_html/forum');

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

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

print_portal_output($home);

KW802
03-17-2006, 05:05 PM
OK, I see now.

In your cmps_index.file remove this line...chdir('/home2/kellee88/public_html/forum');... and change this line...$forumpath = './';... to be this instead:$forumpath = '/home2/kellee88/public_html/forum';Let us know how that goes then.

Our Sponsors
 

kellee88
03-17-2006, 06:28 PM
Now I have the forum with the same address as it always had. I have changed the AdminCP/vboptions/site url to
http://www.interfaithforums.com/forum

I now have no cmps. Do we need to change the url of the cmps in the
AdminCP/cmps/default settings?

Here is the way the cmps_index.php reads after your suggested changes.
Did I mention we are using vB 3.5.4?

<?php
// ++=========================================================================++
// || vBadvanced CMPS v2.1.0 (vB 3.5) - 23582
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 17:08, Thu Mar 16th 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 = '/home2/kellee88/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;
}



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

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

print_portal_output($home);

?>

KW802
03-17-2006, 06:34 PM
Kelle88, if you submit a Support Ticket I'll check it tonight.

kellee88
03-17-2006, 06:53 PM
O.K. I submitted a support ticket.

kellee88
03-18-2006, 01:41 PM
No one has shown up as promised to help with this problem and we are getting this error.

I'm sure that this has to do with changing the url of the site and portal pages, but I'm not sure if you were aware of it. I have my profile set up to email me whenever anyone responds to a thread and so forth, but now, when I click the link to the thread, I get:

The requested URL /forum/showthread.php was not found on this server.

None of the links in the emails will work anymore. The only way around this is to go to the forum, figure out where the thread is located, open up the thread, then scroll to the bottom of it. Here is an example of one of the emails:

pedro-hofmann
03-14-2007, 04:15 PM
got a similar problem

now i have an index.php and cmps_index.php

both works - ok
but.....

I would like to start the forum always using the cmps_index.php instead of the index.php

As well if I click on a thread, it shows up in the regular forum page - and all options of the cmps are gone

see
http://www.denta-beaute.at/testforum/cmps_index.php

how can I keep them in shape ?

thanks 4 quick reply

Brian
03-15-2007, 12:16 PM
http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=7