Unwanted text on LMS homepage

Please report here problems and bugs
Post Reply
pmanly
Newbie
Posts: 2
Joined: Thu Jul 05, 2018 8:51 pm
Version: forma.lms 2.0

Unwanted text on LMS homepage

Post by pmanly » Thu Jul 05, 2018 8:58 pm

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
You do not have the required permissions to view the files attached to this post.

alfa24
FormaLms Expert
Posts: 146
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Unwanted text on LMS homepage

Post by alfa24 » Fri Jul 06, 2018 8:45 am

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
I'm Jasmines, the One

User avatar
canelli
FormaLms Guru
Posts: 440
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: Unwanted text on LMS homepage

Post by canelli » Fri Jul 06, 2018 8:56 am

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
Newbie
Posts: 2
Joined: Thu Jul 05, 2018 8:51 pm
Version: forma.lms 2.0

Re: Unwanted text on LMS homepage

Post by pmanly » Fri Jul 06, 2018 7:19 pm

Thank you for the resolution.

Post Reply