xoops forums

Forum Index


Board index » All Posts (alain01)




alain01

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

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/6 13:49
alain01
alain01 (Show more)
Quite a regular
Posts: 390
Since: 2003/6/20
#22

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 ?


alain01

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

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/5 15:21
alain01
alain01 (Show more)
Quite a regular
Posts: 390
Since: 2003/6/20
#24

Re: Re-Design the PM templates - Need smarty help

Resized Image


And this, with Lio DJ
Resized Image


Condensed table (mode smartphone) with an unread mail :
Resized Image


alain01

Quite a regular
Posted on: 5/5 14:59
alain01
alain01 (Show more)
Quite a regular
Posts: 390
Since: 2003/6/20
#25

Re: Re-Design the PM templates - Need smarty help

Ok, great,
and now, Lucio
i want to get the real name if exists !!!
It's not
<{$member_info.name}>
cause this smarty is our own smarty


alain01

Quite a regular
Posted on: 4/29 16:01
alain01
alain01 (Show more)
Quite a regular
Posts: 390
Since: 2003/6/20
#26

Re: Re-Design the PM templates - Need smarty help

YESSSSSSSS !!!
Done !!!
Thank you,
I dont know why now it works with your new code but it works fine !


alain01

Quite a regular
Posted on: 4/29 15:45
alain01
alain01 (Show more)
Quite a regular
Posts: 390
Since: 2003/6/20
#27

Re: Re-Design the PM templates - Need smarty help

@Mamba
?
No, i dont want to modify the php code of the PM module,
i just want to add overloaded files for webmasters which use PM module.


alain01

Quite a regular
Posted on: 4/29 15:09
alain01
alain01 (Show more)
Quite a regular
Posts: 390
Since: 2003/6/20
#28

Re: Re-Design the PM templates - Need smarty help

Thank you luciorota,
i'm so close...

<img src="<{$xoops_url}>/uploads/<{php}>
    
$user_handler = xoops_getHandler('user');
    
$posterObj = $user_handler->get($GLOBALS['message']['posteruid']);
    echo 
$posterObj->getVar('user_avatar');
<{/php}>" 
class="img-responsive img-rounded img-thumbnail">


It gives me an avatar image, but always same avatar...
I'm in the <foreach >...


alain01

Quite a regular
Posted on: 4/29 13:21
alain01
alain01 (Show more)
Quite a regular
Posts: 390
Since: 2003/6/20
#29

Re: Re-Design the PM templates - Need smarty help

I tried :
<img src="<{$xoops_url}>/uploads/<{$message.posteruid->getVar('user_avatar')}>" alt="<{$message.posteruid->getVar('uname')}>" class="img-responsive img-rounded img-thumbnail">


but it doesn't work !


alain01

Quite a regular
Posted on: 4/29 12:45
alain01
alain01 (Show more)
Quite a regular
Posts: 390
Since: 2003/6/20
#30

Re-Design the PM templates - Need smarty help

Hi,
i want to redesign the PM templates,
- pm_readpmsg.tpl
- pm_viewpmsg.tpl
- pm_pmlite.tpl

I know there are yet the 2 first files in BT4 overloaded,
but i want to make a real responsive design in BT4.

I need a smarty variable which is avalaible in the readpmsg.tpl (defined in readpmsg.php file) in the viewpmsg.tpl file :

<{if ( $poster->getVar("user_avatar") != "")}>
                    <
img src="<{$xoops_url}>/uploads/<{$poster->getVar('user_avatar')}>" alt="<{$poster->getVar('uname')}>" class="img-responsive img-rounded img-thumbnail">
                <{/if}>


i need to use the avatar postername.
i know how to use
<img src="<{$xoops_url}>/uploads/<{$member_info.user_avatar}>" height="22px" class="align-top">

but it's not the good code, $member_info is for the member who is connected...

In the viewpmsg.tpl file, the smarty <{$message.posteruid}> is known.
So i want to get the avatar for this user



TopTop
« 1 2 (3) 4 5 6 ... 26 »