xoops forums

alain01

Quite a regular
Posted on: 5/6 8:39
alain01
alain01 (Show more)
Quite a regular
Posts: 389
Since: 2003/6/20
#1

Overloaded pm_pmlite.tpl (PM module) ???

Hi,
my overloaded on /themes/xswatch4/modules/pm/pm_pmlite.tpl doesn't work !

This file is not used...
I tried to modify directly the file /modules/pm/templates/pm_pmlite.tpl but... Nothing.

I've found an old topic here

I understand that for some files, they are read with a different way, like pmlite

So, i've investigated and i've found /pmlite.php (at the XOOPS root directory) !
So,
please, explain me how to overload this file, or on which file should i work to re-design this template ?
Directly on the PHP file named /pmlite.php ?

Yes, i need some good advices for that.

You need a beautiful re-design window "new PM" ?
So, take some time to explain to me how, for this particular template!


Sorry for my english...

alain01

Quite a regular
Posted on: 5/6 13:49
alain01
alain01 (Show more)
Quite a regular
Posts: 389
Since: 2003/6/20
#2

Re: Overloaded pm_pmlite.tpl (PM module) ???

ok,
it seems to be build directly in the /htdocs/modules/pm/pmlite.php
since the line 113.

ok, i've just tried to add that :
$pmform->addElement('<hr />Test - alain01<hr />');

ok, it works,
but it means that with this file, it's not possible to overload the template in a bootstrap 4 theme.

I can work and modify this building page with BT4 tag but if the theme does'nt use BT4, the code will be out !

Devs core, any idea ?

Mage

Core Developer
Posted on: 5/6 19:26
Mage
Mage (Show more)
Core Developer
Posts: 188
Since: 2009/8/2 1
#3

Re: Overloaded pm_pmlite.tpl (PM module) ???

Hi Alain,

It is a form generated by xoops. If your theme uses bt4 then the form will be displayed in bt4 (theme_autorun.php):

xoops_load('XoopsFormRendererBootstrap4');
XoopsFormRenderer::getInstance()->set(new XoopsFormRendererBootstrap4());

alain01

Quite a regular
Posted on: 5/6 20:27
alain01
alain01 (Show more)
Quite a regular
Posts: 389
Since: 2003/6/20
#4

Re: Overloaded pm_pmlite.tpl (PM module) ???

Ok, but there is trouble with the window size

+
1 trouble with the label in lg size.

xs/sm/md : label are on left,
lg : label on right
xl: label on left

ok, i'll check the XoopsFormRendererBootstrap4.php file

alain01

Quite a regular
Posted on: 5/7 8:13
alain01
alain01 (Show more)
Quite a regular
Posts: 389
Since: 2003/6/20
#5

Re: Overloaded pm_pmlite.tpl (PM module) ???

Quote:
alain01 wrote:
1 trouble with the label in lg size.
xs/sm/md : labels are on left,
lg : labels on right
xl: labels on left
Ok pull request here for this problem :
https://github.com/XOOPS/XoopsCore25/pull/828