PDA

View Full Version : How do I install multiple versions


ashley76
09-16-2008, 09:21 AM
Let's say I want to install CMPS again in a separate directory (Different page for different info pulled from the forum). How do I install another instance of CMPS?

Brian
09-16-2008, 11:45 AM
You can't really install another instance. You can make a copy of the cmps_index.php file though and place it in any other folder you would like. Then if you want that file to always show a specific CMPS page, just add this line of code to the file on a new line just after the opening <?php tag:
define('VBA_PAGE', 'page_identifier');
(replace 'page_identifier' with what you used for the 'Page Identifier' setting for the CMPS page)

Our Sponsors
 

ashley76
09-16-2008, 12:52 PM
Will that allow me to pull different forum threads to different CMPS pages? I was looking at http://www.tfw2005.com and all news goes to the main CMPS page but, there is also a CMPS page for each different category of news... That is what I am trying to accomplish... :)

Brian
09-16-2008, 12:57 PM
Yes. You can enable/disable whatever modules you would like on that page and also change any of the settings just for that page.

Our Sponsors
 

ashley76
09-16-2008, 01:25 PM
Excuse me for being ignorant but what is the "VBA_Page"?

Brian
09-16-2008, 01:41 PM
It's an alternate way of passing the CMPS page that should be queried and will allow you to specify the page by adding the code to your .php file instead of passing it in the URL (index.php?pageid={identifier}).

ashley76
09-16-2008, 01:46 PM
I know what the identifier is, I was wondering about 'VBA_PAGE'

still stuck on the first part though... define('VBA_PAGE', 'movies');

ashley76
09-16-2008, 02:24 PM
Nevermind I figured it out... feel stupid but, oh well :)