Jump to content


Photo

Turn your Suite into a website


Best Answer Con, 07 June 2012 - 02:00 PM

Notes (20120607):

  • Step d4 - Sometimes there is no need to manually rebuild the FURL Cache (in which case, the message will not appear, so ignore the step).
  • Step e4 - An .htaccess might not exist at that location yet (in which case, create the file first, which can be blank).
Go to the full post


  • Please log in to reply
59 replies to this topic

#1 Con

Con

    XR3X

  • +Clients
  • 1,581 posts

Posted 06 June 2012 - 04:35 PM

*
POPULAR

This article will help turn your IPS Suite into a website, with forums to the side (e.g. at website.com/forums). In addition, it has steps on getting your site nicer, cleaner URLs that not only better reflect the site's structure but that are also more optimized for search engines.

Note: as with anything involving editing of the core files, take extreme care and keep a copy of the original form of anything that you edit. I accept no responsibility for any issues that result, including but not limited to issues that result from (i) not following the steps to the dot, or (ii) attempting these steps on versions of the software other than what is noted in the requirements. Otherwise, if your site meets the requirements set out below, then it should be ready for action.


QUESTIONS
  • How do I set IP.Content as my default app (e.g. instead of the Forums)?
  • How do I make a homepage - and other unique pages - using IP.Content?
  • How do I make the homepage - and other unique pages - look 'separate' or completely different from the rest of the Suite?
  • How do I make the Forums appear at website.com/forums? And what about the other apps?
  • How do I get cleaner URLs?


REQUIREMENTS
Before you get started, ensure that you have had the following IP.Suite applications installed in the root public directory at the desired domain:
  • IP.Board (note: these steps have only been tested on 3.2.X and 3.3.X)
  • IP.Content (note: these steps have only been tested on 2.2.X and 2.3.X)


ANSWERS
In each of the answers below, italicized unbolded text denote locations, bolded italicized text denote settings, and bolded unitalicized text denote values. Additionally, website.com refers to your website's root domain, public_html refers to your website's root public directory (the files of which should be accessible via FTP), and ACP refers to your IPS Suite's Admin CP.


a) How do I set IP.Content as my default app (e.g. instead of the Forums)?
  • If you are using IPB 3.3.X or above, skip to step 5 below, ignoring steps 2 through 4.
  • Download /public_html/initdata.php and make a copy of it.
  • Open one copy of that file, and in it, find IPS_DEFAULT_PUBLIC_APP. That variable would be set to 'forums' by default. Change 'forums' or whatever it is currently set to, to 'ccs'.
  • Then save the file, and upload it to replace the original at the location specified in step 2.
  • Find /public_html/constants.php if it already exists. If it doesn't exist, first create a blank file called constants.php at that location. In either case, download the file and make a copy of it.
  • Open one copy of that file, and in it, define 'ccs' as the default public app if it hasn't already been defined there, e.g. by adding the following on its own line at the very top of the file:
    <?php define( 'IPS_DEFAULT_PUBLIC_APP', 'ccs' ); ?>
  • Then save the file, and upload it to replace the original at the location specified in step 5.


b) How do I make a homepage - and other unique pages - using IP.Content?
  • Successfully complete the steps in Question a, above.
  • Go to ACP > Other Apps [tab] > Content > Settings > Basic.
  • There, at Default home page, set the URL filename for the homepage. By default, this is set as index.html, so index.html will be referred to in the next steps. Save the settings.
  • Go to ACP > Other Apps [tab] > Content > Settings > Advanced.
  • There, at URL to index.php, input the URL where the gateway file (index.php by default) is located. Given that your Suite is in the root public directory, this would normally just be your site's root domain - e.g. http://website.com/. Save the settings.
  • Go to ACP > Other Apps [tab] > Content > Page Manager.
  • If there is already an index.html at the Site Root, rename it or move it to a sub-folder, unless you want to use that index.html as the homepage, in which case you should modify its settings according to the steps below.
  • Create an index.html at the Site Root if there isn't one currently there, via Add Page. If there is already one there, see the preceding step.
  • Select to edit the index.html that is located at the Site Root.
  • In the editing area for index.html, go to Step 1 | Page Details.
  • There, for the Page URL, ensure that it is index.html. Do not select any sub-folder in the adjacent dropdown box, but enable (check) Omit page name in URL.
  • Adjust the remaining settings as you wish, but [given that it's the homepage] ensure that the setting Available to ALL users is set to Yes.
  • Still in the editing area, go to Step 2 | Content, and add/edit content if you wish.
  • Continue through the editing process, until the page is saved.
  • Repeat steps 6 through 14 for any other unique page(s) that you wish to add to your site, except with accordance to the page(s).


c) How do I make the homepage - and other unique pages - look 'separate' or completely different from the rest of the Suite?
  • Successfully complete the steps in Question b, above.
  • Go to ACP > Other Apps [tab] > Content > Page Manager.
  • There, click on the name of the page and enter the Step 1 | Page Details editing area.
  • Set Use IPB Wrapper? as No if it isn't already. Due to this step, you are now responsible for the entire content of the page - including the template - instead of just content that would have appeared within the IPB Wrapper.
  • Still in the editing area, go to Step 2 | Content, and add/edit content if you wish. If you wish for this page to have a unique template that is not to be used on other IP.Content pages, incorporate the template into this area. If, instead, you wish for this page to share a template with other IP.Content pages, then it's recommended to use a Page Template instead (more on that in step 7).
  • Continue through the editing process, until the page is saved.
  • (Optional) If you wish to create a template that can be shared among different IP.Content pages, go to ACP > Other Apps [tab] > Content > Templates > Page Templates. There, click Add Template and edit the template as you desire, using Template Tags where appropriate. Then save the template. Finally, at ACP > Other Apps [tab] > Content > Page Manager, with regards to any page(s) that you wish to apply the template to, select the template in the Template to start with? dropdown box in the Step 1 | Page Details section in the editing area of the page(s), and save the page.


d) How do I make the Forums appear at website.com/forums? And what about the other apps?
  • Download /public_html/admin/applications/forums/extensions/furlTemplates.php and make a copy of it.
  • Open one copy of that file, and in it, replace each instance of index with forums or the name that you prefer.
  • Then save the file, and upload it to replace the original at the location specified in step 1.
  • Go to the ACP > System [tab] > My Control Panel > My Dashboard, where there should now be a message that the FURL Cache needs to be rebuilt, along with a link that can be clicked to do just that. Click the link to rebuild the FURL Cache.
  • Repeat steps 1 through 4 for any other app you wish to customize the name in the URL for, except with accordance to the particular app being adjusted for (e.g. in step 1, go to the location of the FURL template for that particular app rather than the FURL template for the forums).


e) How do I get cleaner URLs?
  • Go to ACP > System [tab] > System Settings > System [tab] > Search Engine Optimization.
  • There, set both Redirect to new friendly URL format and Use .htaccess mod_rewrite to Yes, and save the settings.
  • Below Use .htaccess mod_rewrite, there should be a message to 'add a file called .htaccess with the following contents.' Copy the contents that it is referring to, into a text file.
  • Download /public_html/.htaccess and make a copy of it.
  • Open one copy of that file, and in it, paste the copied contents from step 3, to the top of the .htaccess file.
  • Then save the file, and upload it to replace the original at the location specified in step 4.
  • Go to ACP > Other Apps [tab] > Content > Settings > Advanced.
  • There, set Use .htaccess mod_rewrite to Yes, and save the settings.


Feel free to post any questions or notes.
sig.png

#2 Sefket

Sefket

    Spam Happy

  • +Clients
  • 901 posts

Posted 06 June 2012 - 05:33 PM

Thanks man. I'm glad you made this guide.

#3 CrossFire-Radio

CrossFire-Radio

    Spam Happy

  • +Clients
  • 728 posts

Posted 06 June 2012 - 06:14 PM

nice job.. they should pin this.. :D

CrossFire-Radio
DJ Fire - CEO
http://www.crossfire-radio.com
My Downloads

Help


#4 Con

Con

    XR3X

  • +Clients
  • 1,581 posts

Posted 07 June 2012 - 02:00 PM   Best Answer

Notes (20120607):
  • Step d4 - Sometimes there is no need to manually rebuild the FURL Cache (in which case, the message will not appear, so ignore the step).
  • Step e4 - An .htaccess might not exist at that location yet (in which case, create the file first, which can be blank).

sig.png

#5 Gangst3r

Gangst3r

    IPB Newbie

  • Members
  • Pip
  • 28 posts

Posted 08 June 2012 - 03:28 AM

Very usefull guide! Thanks man! Many of these steps I'm looking on many support board but finally find nice and clear tut here ;)
  • Con likes this

#6 MeGuru

MeGuru

    IPB Newbie

  • +Clients
  • 9 posts

Posted 09 June 2012 - 01:08 AM

This seems an exellent guide, and I'm really getting tired of my old homepage but... Can you post some examples of the final result?
  • Con likes this

#7 Con

Con

    XR3X

  • +Clients
  • 1,581 posts

Posted 09 June 2012 - 10:28 AM

This seems an exellent guide, and I'm really getting tired of my old homepage but... Can you post some examples of the final result?


Especially where the IPB Wrapper is not used, the final result could look like any website that's possible to make. :)

There should be some examples in this thread: List of sites / pages done using CCS.



sig.png

#8 Jonathan B

Jonathan B

    IPB Full Member

  • +Clients
  • 193 posts

Posted 09 June 2012 - 03:36 PM

I'd like to see this post promoted to a FAQ for iP.Content :thumbsup:

http://producerbay.com


#9 3DKiwi

3DKiwi

    IPB regular

  • +Clients
  • 4,873 posts

Posted 09 June 2012 - 03:39 PM

I must be doing something right as I'd done most of this. I'm sure others will appreciate the detailed instructions.

3DKiwi
  • Con likes this
C4D Cafe My IPB powered web site.

#10 Con

Con

    XR3X

  • +Clients
  • 1,581 posts

Posted 13 June 2012 - 11:48 AM

Thanks for the feedback, everyone. :smile:

If anyone would like to add tips relating to the subject, please do so.
sig.png

#11 Dmacleo

Dmacleo

    Needs Life

  • +Clients
  • 6,498 posts

Posted 13 June 2012 - 04:40 PM

it can also be done without setting ip.content as default app in either initdata or constants and having forums run under /forums by using the ip.content generated htaccess placed in root (eg publc_html) and the htaccess generated in the (with rewite on) Settings: Search Engine Optimization placed in /forums.
use the index php file that comes with ip.content under public_html.

depending on needs some have better luck with furls and bottom breadcrumbs this way.
ip.content really becoming a powerful app :)
  • Con likes this

Dmac
 


#12 Mikey B

Mikey B

    Rinse & Repeat

  • IPS Staff
  • 622 posts

Posted 14 June 2012 - 07:38 AM

in a) - you don't even need to touch initdata.php. If you went from step 5 onwards you'd be fine.

Michael Burton

Invision Power Services, Inc.
Twitter - Blog - Forums For Us

Insanity: doing the same thing over and over again and expecting different results. - Albert Einstein

“It is sometimes an appropriate response to reality to go insane.” ― Philip K. Dick, VALIS

 


#13 Saiga

Saiga

    Advanced Member

  • +Clients
  • 314 posts

Posted 14 June 2012 - 07:25 PM

Thanks for this. Have a feeling it'll be of use in the near future.
  • Con likes this

Sailing in the dark isn't smart, kid!

 

Enhance The End User's Experience :)


@Mentions 1.0.3
Last Updated May 15 2013 07:02 PM

 

 


#14 Con

Con

    XR3X

  • +Clients
  • 1,581 posts

Posted 15 June 2012 - 12:09 PM

in a) - you don't even need to touch initdata.php. If you went from step 5 onwards you'd be fine.


constants.php works in IPB 3.2.x as well? I just based the IPB 3.3.x+ tip on the info in this doc, but I haven't tested it on IPB 3.2.x yet. Perhaps it's worth a shot.
sig.png

#15 BGLBeta

BGLBeta

    IPB Newbie

  • Visitors
  • Pip
  • 22 posts

Posted 15 June 2012 - 04:33 PM

This article will help turn your IPS Suite into a website, with forums to the side (e.g. at website.com/forums). In addition, it has steps on getting your site nicer, cleaner URLs that not only better reflect the site's structure but that are also more optimized for search engines.


Would this work for one of the IP hosted sites?

#16 Rimi

Rimi

    Strip Me

  • +Clients
  • 5,774 posts

Posted 15 June 2012 - 04:36 PM

Would this work for one of the IP hosted sites?

Yes.

#17 BGLBeta

BGLBeta

    IPB Newbie

  • Visitors
  • Pip
  • 22 posts

Posted 15 June 2012 - 04:38 PM

Yes.


Thanks.

#18 Mikey B

Mikey B

    Rinse & Repeat

  • IPS Staff
  • 622 posts

Posted 15 June 2012 - 04:48 PM

constants.php works in IPB 3.2.x as well? I just based the IPB 3.3.x+ tip on the info in this doc, but I haven't tested it on IPB 3.2.x yet. Perhaps it's worth a shot.

No, it was introduced in 3.3, sorry.
  • Con likes this

Michael Burton

Invision Power Services, Inc.
Twitter - Blog - Forums For Us

Insanity: doing the same thing over and over again and expecting different results. - Albert Einstein

“It is sometimes an appropriate response to reality to go insane.” ― Philip K. Dick, VALIS

 


#19 msg

msg

    Advanced Member

  • +Clients
  • 275 posts

Posted 16 June 2012 - 12:15 PM

Thank i was able to use your instruction to setup my invision suite.

My newbie question, how can we change the order of the tabs at the top and the display name.

Attached File  tab order.png   6.82K   6 downloads
  • Con likes this

#20 saturnus

saturnus

    cappuccino

  • +Clients
  • 847 posts

Posted 16 June 2012 - 01:33 PM

Thank i was able to use your instruction to setup my invision suite.

My newbie question, how can we change the order of the tabs at the top and the display name.

Attached File  tab order.png   6.82K   6 downloads

System Settings > Applications and Modules >Manage Applications and Modules

You can move them around, just look at the left of each tab, grab it and drag it.

On the same page, click on "Edit Application Details" on the side (It's a pencil icon!) and change it where it says "Application Public Title"

Here:
Image postée
  • Con likes this




1 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


    Bing (1)