TeamProjectsOnly

Topic: Blank Branded Page for your Site

This example will add a blank formatted page to your site. For this example we will add a blank page
named login so that we can add the login box in a later tutorial.

1) Add entry to index.php on the root for page
    a) Find this code
       

Code:
switch($page)
    {
        // home
        case '':
            require_once 'page_home.php';
            $flag = 1;
            break;

b) Insert this entry in the case statement. *It can go anywhere in the CASE, but I put it at the top
         for easy ref while troubleshooting.
               

Code:
// login page
            case 'login':
            require_once 'page_login.php';
            $flag = 1;
            break;

2) Create page named page_login.php on the root

3) Add code:

Code:
<?php
    $template = 'login.tpl';
?>

4) Create page named login in the /_templates/default/ directory

5) Add code:

Code:
{include file="header.tpl"}
</div>
</div>
{include file="footer.tpl"}

6) open browser and go to http://<yoursite>/login. You should now see a blank formatted page
with the site branded header and footer.

7) Modify page contents as necessary

8) Enjoy !

Next Step(s):
A tutorial on how to add the link for this new page to the site.

NOTE: I want to replace the
widgets item in the header and footer with this new page, so expect that if I post a tutorial
on howto add the link...that is what I'll post. If anyone else has a quick and easy answer,
please feel free to post it.

navjotjsingh

Re: Blank Branded Page for your Site

If you are using Jobberbase v1.8, it can be easily done from Admin>>Links menu.

For Older versions, you need to insert links directly in header.tpl and footer.tpl.

TeamProjectsOnly

Re: Blank Branded Page for your Site

Thanks for the info, I'm using v 1.8 and found the widget link and edited as needed