Rmove Dolibarr from tittle and login header

Hello,

i will like to show something more personal in these places, is it possible?

Dolibarr 3.X.X version in the page tittle, and in the login screen.

Attached a few images for clarify.

Thank you

captura036_2012_11_21_02_07_58.jpg

captura035_2012_11_21_02_07_47.jpg

This will change the login header

edit file

~/core/tpl/login.tpl.php

Edit line 86 to this

<?php echo "YOUR NEW INFO"; ?\>

to change the title (Page dependent)

In the same file
edit line 33
from

<title>ā€™.$langs->trans(ā€˜Loginā€™).ā€™ ā€˜.$title.ā€™</title>ā€™."\n";

to

<title>ā€™.$langs->trans(ā€˜Whatever You Wantā€™).ā€™ </title>ā€™."\n";

The changes above will only change the login pageā€¦ To change the title once in dolibarr I havenā€™t figured out yet

3 Likes

Thanks a lot Kevin !! :woohoo:

I could been searching and never foud it, now is so easy.

Regards from Madrid

No Worries :happy:

Iā€™ll post here when I figure out how to change the title once your logged into Dolibarr

Canā€™t you make all that without digging in the code ?

Setup/Other setup :
. add the variable MAIN_APPLICATION_TITLE value is up yo what you want

Setup/Display :
. you can modify some parameters up to your needs

Rgds.

2 Likes

Very Awesomeā€¦

To be entirely honest Iā€™ve only been messing with Dolibarr for about 3 weeks for a clientā€¦

Iā€™m a little more accustomed to editing php directly vs edits within a system and being such you can change things like (ā€˜Loginā€™) to (ā€˜Welcome Toā€™) whereas edits within Dolibarr will only allow you to change system wide variables i.e (.$title.)

However your Other Setup trick for the Dolibarr title was brilliant!!! It saved me tons of time

What else can you do with Other Setup??

The solution provided by Kevin works perfectly, but maybe the code must be changed everytime you update to a new Dolibarr versiĆ³n.

By the way humphrey, how do you get this variable?, iĀ“ve been searching for all possible variables in the wiki with no success and IĀ“m sure there must be many wich could help to personalize Dolibarr a lot.

Yeah I would imagine the code change would be lost after processing any updateā€¦

Donā€™t get me wrong the variable setup within Dolibarr is definitely the way to go if you plan on keeping up with releases but it limits you to system wide changes

For instance I didnā€™t like the ā€œConnectionā€ button on the login page so I changed it to ā€œLoginā€

A variable Iā€™m almost certain couldnā€™t have been changed within Dolibarr

but thats me I guessā€¦ I like to change little things like that throughout different systems for a more custom feel

The variables list is available at the wiki page http://wiki.dolibarr.org/index.php/Setup_Other

i.dannati : you are only using Dolibarr for 3 weeks ??? I read you other posts and it looks like you already know quite a lot about Dolibarr, you are great ! thatā€™s amazing for me !!

Iā€™m not a developer, just a regular user, sometimes Iā€™d really love being able to understand and modify the PHP code for our needsā€¦ maybe in another lifeā€¦

Anyway youā€™re right that any modification will be lost after an upgrade, so it is quite difficult to restore the modifications after an upgrade, moreover that there are huge structure changes since 3.2.0

Regards.

Thank you Humphrey!

PHP coding can be very easy given the right toolsā€¦

A basic starting point is:

Firefox with firebug extension (This will help with css mainly but provides tools from tracing code down)

Textwrangler if you have a mac
Geany if you use linux
Not sure what for windows but search for alternatives in googleā€¦

Those apps will not only seriously help in coding but more importantly they provide easy access to tracingā€¦ Lets say you want to find a particular code but have no idea what file to search

Simply search the entire document root with either of those applications

They will also allow you to compare one file to the nextā€¦ So if there is a update you can compare the 2 different files to determine if coding changes were made and where

A trick we developers use to keep track of changes is simply create a local folder and call it revisions

When you change any file you duplicate the file structure within revisions so revisions/core/menus/standard/eldy.lib.php (recent one I worked on)

this way you can keep track of every edit as well as tailoring a custom comment out code for yourself like //dannati above all your editsā€¦ (makes searching for them in the future so much easier)

on a side note anyone who wants to learn in their spare time should visit http://codeacadamy.com its a great website to learn everything from the basics to more advanced programmingā€¦

if you ever get stuck with any code no worries! Just send me a email i.dannati@yahoo.com and Iā€™ll do want I can to help!

Cheers!

I want to delete Need help or support ?) from login pageā€¦how can i do this ??

I failed to modify the title and login headersā€¦
in Other setup Iadded MAIN_APPLICATION_TITLE and gave it value 1.
there is no other place to go to edit or see what to changeā€¦

Please help step by step if possible, am completely new to linux and dolibarr

1 Like

Instead of 1, write what you want to show, ā€œMy erpā€, if that field is blank, then dolibarr will show again

Edit main.inc.php and change or comment this line

// Displays title
//$appli=ā€˜Dolibarrā€™;

for this line
$appli=ā€˜your titleā€™;

1 - Edit main.inc.php
2 -Change or comment this line

     // Displays title
    //$appli='Dolibarr';

Write your title
$appli=ā€˜your titleā€™;

How To delete text dolybar alpha ā€¦ etc.

This method really works well. I did for a dolibarr 11.0.4 version

I have just figured it out by adding this value in Setup > Other setups
Name:
MAIN_APPLICATION_TITLE
Value:
add your company name or something to replace Dolibar

This will change the title of the software (that appears on the login page by default).
Warning: changing this may make Dolibarr version detection fail by smartphone applications like [Application Android - DoliDroid]
(Application Android - DoliDroid - Dolibarr ERP CRM Wiki) breaking some features when using Dolibarr from this application.