Unwanted text on LMS homepage

Anything about what happens on the user and teacher side
Post Reply
pmanly

Unwanted text on LMS homepage

Post by pmanly »

I have just upgraded my formalms from 1.4.2 to 2.0 in a test environment. When I open the LMS homepage to list all the courses, two text lines appear on the header. The lines are 'Applica filtro' and 'Azzera filtro'. See attached screen shot.

How to I eliminate those lines, or at least translate them into English?
Capture.PNG
alfa24
Senior Boarder
Posts: 1982
Joined: Fri Nov 24, 2017 8:45 am

Re: Unwanted text on LMS homepage

Post by alfa24 »

Both files /widget/coursefilter/views/coursefilter.php and /widget/tablefilter/views/tableefilter.php contain this snippet:

Code: Select all

<div class="input-group">
                        <a href='#' id='<?php echo $id; ?>_filter_set1'>Applica filtro</a><br><br>
                        <a href='#' id='<?php echo $id; ?>_filter_reset'>Azzera filtro</a>
                    </div>
With the unwanted text hardcoded in Italian language, as you can see.
You can get rid of the whole snippet or, if you want to keep the functions, to change it as follows:

Code: Select all

<div class="input-group">
                        <a href='#' id='<?php echo $id; ?>_filter_set1'><?php echo Lang::t('_FILTER_APPLY'); ?></a><br><br>
                        <a href='#' id='<?php echo $id; ?>_filter_reset'><?php echo Lang::t('_FILTER_RESET'); ?></a>
                    </div>
If you edit the snippet, you must add a language key.
To do this, go to language administration page and add:

module: standard
key: _FILTER_APPLY
translation: as you wish

and same for the second:

module: standard
key: _FILTER_RESET
translation: as you wish
Per supporto GRATUITO contattatemi in privato qui
User avatar
canelli
FormaLms Guru
Posts: 496
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: Unwanted text on LMS homepage

Post by canelli »

Tanks for the resolution

The bug will be fixed in the next release
Cercate nel forum le riposte prima di chiedere. Check the forum before posting
---------------
Claudio Anelli
Joint Technologies - Sistemi avanzati per l'information technology

http://www.joint-tech.com
---------------
pmanly

Re: Unwanted text on LMS homepage

Post by pmanly »

Thank you for the resolution.
daveperso
Newbie
Posts: 16
Joined: Sun Nov 21, 2021 2:37 pm

Re: Unwanted text on LMS homepage

Post by daveperso »

I needed to do this on 3.1 too.
alfa24
Senior Boarder
Posts: 1982
Joined: Fri Nov 24, 2017 8:45 am

Re: Unwanted text on LMS homepage

Post by alfa24 »

3.1 is not free for the community.
Provide access to your instance for a paid job or wait.
Per supporto GRATUITO contattatemi in privato qui
daveperso
Newbie
Posts: 16
Joined: Sun Nov 21, 2021 2:37 pm

Re: Unwanted text on LMS homepage

Post by daveperso »

As mentioned in my message, I needed to do this (i.e. I used the past tense).
alfa24
Senior Boarder
Posts: 1982
Joined: Fri Nov 24, 2017 8:45 am

Re: Unwanted text on LMS homepage

Post by alfa24 »

So what?
Per supporto GRATUITO contattatemi in privato qui
Post Reply