Customizing the Login Page

 

There are two ways to create a custom login page to Creative Manager. One is to provide a link to our built in pop up login page. The other allows you to build your own custom login page on your site and post it to our site where the login is process.

 

Using the pop up login box

Insert the following script into your page and use the link provided below to launch the window with different options. You can control the logo and position of the logo on the page. You can also control the width and height of the login box. The query string  values allow you to pass in different parameters.

 

 

<SCRIPT language=JavaScript>

<!--

function checkRes(theURL,winName) {

var screenHeight = screen.height;

var screenWidth = screen.width;

if (screenWidth == 640){

     features = "width=600,height=460,top=0,left=0"

     window.open(theURL,winName,features);

}

else{

   var screenY = (screenHeight-490)/2;

   var screenX = (screenWidth-600)/2;

    features = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=620,height=350,top="+screenY+",left="+screenX';

    window.open(theURL,winName,features);

}

}

 

//-->

</script>

 

<input type="Button" name="Login" onclick="checkRes('https://app.crmgr.com/login.aspx?CK=#####&LogoPos=1&Width=600&Height=520','Login')" value="Open Login Screen">

 

Using the custom form Posting

When using this option, you will create a custom login form on your site, then post the information to our site. Below is a simple sample form. You use the hidden fields to pass information to our site about your company and where to return if there is a problem logging into the site. It is important that you keep the names of the fields the same.

 

In the CK hidden field, enter your company key. You can find this by uploading a login page logo.

In the ErrorReturnPage hidden field, enter the url where you would like the system to return if there is an error. When an error is generated, the user will be returned to the page specified along with a querystring variable (Error). The possible error codes are:

 

The resulting return URL would be http://yoursite.com?Error=1

 

If the login is successful, you will be directed to the main dashboard.

 

<html>

<body>

<form id="Form1" method="post" action="http://app.crmgr.com/default.aspx" method="post">

<input type="hidden" name="CK" value="XX">

<input type="hidden" name="ErrorReturnPage" value="www.yoursite.com/pathtologinpage">

<table>

<tr>

<td>User ID</td>

<td>

<input type="text" name="UserID" value="">

</td>

</tr>

<tr>

<td>Password</td>

<td>

<input type="password" name="Password" value="">

</td>

</tr>

<tr>

<td colspan="2">

<input type="submit" value="Login">

</td>

</tr>

</table>

</form>

</body>

</html>