1
alain01
Overloaded pm_pmlite.tpl (PM module) ???
  • 2020/5/6 8:39

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


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...

2
alain01
Re: Overloaded pm_pmlite.tpl (PM module) ???
  • 2020/5/6 13:49

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


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 ?

3
Mage
Re: Overloaded pm_pmlite.tpl (PM module) ???
  • 2020/5/6 19:26

  • Mage

  • Core Developer

  • Posts: 206

  • Since: 2009/8/2 1


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());

4
alain01
Re: Overloaded pm_pmlite.tpl (PM module) ???
  • 2020/5/6 20:27

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


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

5
alain01
Re: Overloaded pm_pmlite.tpl (PM module) ???
  • 2020/5/7 8:13

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


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

Login

Who's Online

188 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 188


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits