PDA

View Full Version : Adding in CMPS to vBadvanced


Dee
10-17-2004, 07:57 PM
Hello, I have vBadvanced and I was wondering if I can just add in CMPS with putting in some files or would I have to completly delete vBadvanced and fully install CMPS.

Brian
10-17-2004, 09:09 PM
You can have both running at the same time without a problem and the install script for the CMPS will import your settings from vBa Homepage if you wish. :)

Our Sponsors
 

Dee
10-17-2004, 09:21 PM
Alright I downloaded CMPS and did everything, and all file edits except one. In /forum/includes/adminfunctions_template.php I have to find this 'forumhome' => $vbphrase['group_forum_home'], and below it add 'adv_portal' => 'vBadvanced CMPS',
I cannot find it, do you know under what function it is in the file?

Brian
10-17-2004, 09:40 PM
Are you running an older version of vB? Either way, just go to the very bottom of the file and then go up a few lines and you should see something similar.

Our Sponsors
 

Dee
10-18-2004, 03:34 PM
Oh man it was right there, I missed it. Ok thanks now I got it, and going to install all the files now. :) I'll post if I have any problems.

Dee
10-18-2004, 04:06 PM
Alright I just installed everything, and went fine. But before I change cmps_index.php to index.php I went to http://www.mysite.net/cmps_index.php and it gave me this Parse error: parse error, unexpected T_REQUIRE_ONCE in /home/mc2g/public_html/cmps_index.php on line 25


Will that change once I rename it to index.php or is it a problem?

Brian
10-18-2004, 04:11 PM
Looks like you modified your chdir line in that file incorrectly.

Dee
10-18-2004, 04:40 PM
I figured that was the problem, I put the same one in that was used for vBadvanced. Right now its currently like this:

<?php
// ++=========================================================================++
// || vBadvanced CMPS v1.0 RC2 ||
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved ||
// || This file may not be redistributed in whole or significant part. ||
// || http://vbadvanced.com ||
// ++ ========================================================================++

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

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

chdir('./forums');'/home/virtual/site2/fst/var/www/html/board'

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

require_once('./global.php');

print_portal_output($home);

?>

Is it right like that?

Brian
10-18-2004, 05:08 PM
chdir('/home/virtual/site2/fst/var/www/html/board');

Dee
10-18-2004, 06:21 PM
Alright I put that in and went back to http://www.mysite.net/cmps_insex.php and I got this:

Warning: chdir(): No such file or directory (errno 2) in /home/mc2g/public_html/cmps_index.php on line 19

Warning: main(./global.php): failed to open stream: No such file or directory in /home/mc2g/public_html/cmps_index.php on line 25

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mc2g/public_html/cmps_index.php on line 25

Dont know what that is. Should I fill out a support Ticket?

Brian
10-18-2004, 08:17 PM
You have your chdir line wrong. Try this:

chdir('/home/mc2g/public_html/board');

Dee
10-18-2004, 09:43 PM
Alright I changed it to that and now I got this:

Warning: main(./modules/onlineusers.php): failed to open stream: No such file or directory in /home/mc2g/public_html/board/includes/vba_cmps_include_bottom.php on line 259

Fatal error: main(): Failed opening required './modules/onlineusers.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mc2g/public_html/board/includes/vba_cmps_include_bottom.php on line 259

Brian
10-18-2004, 10:01 PM
Did you upload the modules folder and it's contents to your forums directory?

Dee
10-18-2004, 10:58 PM
Bah, I thought I did, I must've overlooked it. Ok it works fine now on cmps_index.php Its doing fine. So its safe to go ahead and change to index.php and everything should be set?

Brian
10-19-2004, 09:28 AM
Yup, as long as you have it set up the way you would like :)

Dee
10-19-2004, 05:20 PM
Alright thanks, works perfect :) But do you know how I can get the custom blocks again from vBadvanced?

Brian
10-19-2004, 05:27 PM
Just add them as new modules.