Web development · 30 Aug 2014 · 4 min read

How to change the Vtiger CRM login page design

Vtiger is a popular open-source CRM that you can install on your own server and customise. Out of the box, though, its login page carries Vtiger’s own branding, a promotional slider for add-ons and Vtiger’s social links. If your staff log in to it every day, it looks far more professional with your own logo and nothing else.

These steps were written for Vtiger 6 and also apply to the open-source Vtiger 7 and 8 releases, which use a different layout folder (noted below). File contents vary a little between versions, so look for the blocks described rather than copying line numbers.

Before you start

Back up the files you change. Copy Login.tpl (and anything else you edit) somewhere safe, so you can put the original back if something breaks.

Step 1: find the login template

The login page is a Smarty template called Login.tpl. Where it lives depends on the version:

VersionTemplate folder
Vtiger 5.xSmarty/templates/
Vtiger 6layouts/vlayout/modules/Users/
Vtiger 7 and 8layouts/v7/modules/Users/

If it isn’t where you expect, search the install from its root folder:

find . -name "Login.tpl" -not -path "./test/*"

Open Login.tpl and look for the <img> tag near the top that shows the logo. Its src tells you which file it loads. The simplest change is to replace that image file with your own logo, keeping the same file name and a similar size.

If you would rather not overwrite Vtiger’s file, upload your logo next to it under a new name and change the src in the template to point to it.

Step 3: remove the promotional slider

On Vtiger 6 the left side of the login page is a slider advertising Vtiger’s mobile apps and add-ons. In Login.tpl it is a block that starts like this:

<div class="carousal-container">
  <div><h2> Get more out of Vtiger </h2></div>
  <ul class="bxslider">
    <li>
      <div id="slide01" class="slide">
        ...

Delete the whole <div class="carousal-container"> block, down to its matching closing </div>. Note the spelling: Vtiger’s class is carousal, not carousel.

On Vtiger 7 and 8 the promotional area is a different block. Look for the section that loads Vtiger’s marketing content next to the form and remove it the same way.

At the bottom of the page Vtiger links to its own social profiles. The block looks like this:

<div class="pull-right footer-icons">
  <small>{vtranslate('LBL_CONNECT_WITH_US', $MODULE)}&nbsp;</small>
  <a href="https://www.facebook.com/vtiger"><img src="layouts/vlayout/skins/images/facebook.png"></a>
  ...
</div>

Either delete the block or change each href to your own company’s profiles.

The page also links to the Vtiger website, wiki, videos and forums (in a helpLinks block) and shows a copyright line with links to vtiger.com (in a footer-content block). Change these to your own links, such as your IT helpdesk, or remove them.

Vtiger’s open-source licence has terms about attribution. Read the licence that ships with your version (LICENSE.txt) before removing the licence link or copyright notice, and keep whatever it requires.

Step 6: clear the template cache

Smarty compiles templates and caches the result, so your changes may not show straight away. Delete the compiled files in the cache folder (test/templates_c/ in a standard install), keeping the folder itself, then reload the login page with the browser cache cleared.

Keep your changes through upgrades

An upgrade or patch can overwrite Login.tpl and undo your work. To make that painless:

  • Keep a copy of your edited template, or a diff against the original, in version control.
  • After each upgrade, compare the new Login.tpl with your copy and reapply your changes.
  • Keep your logo under its own file name so an upgrade doesn’t replace it.

A note on old versions

Vtiger 6 no longer gets updates and doesn’t run on current PHP releases. If you are still on it, the login page is the least of the concerns: plan an upgrade, or at least make sure the server isn’t reachable from the open internet without protection.

Customising or hosting a CRM?

We customise, integrate and host open-source business software from Shimla, and connect it to the systems you already run.

See our web and app development

Peak performance
& connectivity

31.0785°N 77.1800°E · Kasumpti, Shimla · 2,205 m