Jump to content

Recommended Posts

Posted

Hi all,

 

Can somebody help me out with a simple task.

 

Fist of all my PHP sucks, I am as useless as a chocolate fire guard when it comes to PHP... I know this a simple but I keep messing things up and it's now becoming frustrating. All I want to do is make Invision Community Pages my main default index.php. I basically wany Invision Community Pages outside of the forum as my main index but still accessible via the forum as well, so my members can go back to the main page within the forum. You see this is were I get completely lost and hit the wall...? http://ipbwebmaster.com/public/style_emoticons/default/sad.gif

 

I have done My Apps> Invision Community Pages>Settings> Advanced>URL to index.php I have set to yourdomain.com/

 

Gateway filename index.php

 

Use .htaccess mod_rewrite Yes

 

it's just pointing to the correct path is where I get totally lost. upload index.php from the tools folder, and I lost.

What do I do here...?

 

/**
* You must define the path to your IPB installation here, with a trailing slash.
* THIS IS A PATH, NOT A URL.  So, for example if this file is located in the root
* of your site at /home/account/public_html and your forums are in a subfolder
* named forums, you would set this to /home/account/public_html/forums/
*/
$path_to_ipb	= './forums/';

------------------------------------------------

 

4. Using CCS outside of your forums

 

------------------------------------------------

 

While the above are suitable solutions, and can be used in any situation, you may also (or in place of the above) want to access CCS pages outside of your forum root directory. A good example for this would be to have CCS power your main website, while your forums remain in the /forums subfolder as in the previous examples. CCS is perfect for this scenario, but does require some work on your part to successfully set this up.

 

You will need to take the following steps in order to set CCS up in the root of your site (using the previous examples)

 

1) Take the "index.php" file from the Tools folder of your CCS download and open it in a text editor. At the top of the file you will see the following

 

/**

 

* You must define the path to your IPB installation here, with a trailing slash.

 

* THIS IS A PATH, NOT A URL. So, for example if this file is located in the root

 

* of your site at /home/account/public_html and your forums are in a subfolder

 

* named forums, you would set this to /home/account/public_html/forums/

 

*/

 

$path_to_ipb = './forums';

 

Edit the $path_to_ipb variable to point to the directory Invision Community Forum is installed in. If in doubt, verify the correct path with your host.

 

2) Upload the file to the folder you specified

 

3) In the IPB ACP navigate to My Apps -> Community Content System. Click on "Advanced" in the left hand menu. Configure the "URL to index.php" setting appropriately. In the above example you would set it to "http://www.yoursite.com". Click Update Settings.

 

4) At this stage, you can access pages from your forum root directory using the following URL structure

 

http://www.yoursite....folder/test.php

 

5) If you would like to remove /index.php/ from the URL, go back to the IPB ACP and on the same "Advanced" page, change the setting "Use .htaccess mod_rewrite" to "Yes". Again, click "Update Settings".

 

6) Click the button at the top right of the page to "Download .htaccess" and download this file to your computer. Now upload it to the same folder you uploaded the index.php file to in step 2. You should now be able to successfully access CCS pages without the /index.php/ in the URL like so

 

http://www.yoursite....folder/test.php

Could somebody point me in the right direction wher I am going wrong.

 

Thanks

  • IPBW changed the title to Help with Pages

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...