151
alain01
Re: Re-Design the PM templates - Need smarty help
  • 2020/4/29 15:45

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


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



152
alain01
Re: Re-Design the PM templates - Need smarty help
  • 2020/4/29 15:09

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


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



153
alain01
Re: Re-Design the PM templates - Need smarty help
  • 2020/4/29 13:21

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


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 !



154
alain01
Re-Design the PM templates - Need smarty help
  • 2020/4/29 12:45

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


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



155
alain01
Modal images Gallery with Bootstrap 4
  • 2020/4/12 17:30

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Hi,
I work on a modules directory page.
I use tabs nav for some informations and one of them is a"print screen".

I want to use a mini gallery (1 bloc, 2 or 3 print screen for frontoffice module pages, 2 or 3 print screen for backoffice admin pages)

I used modal but modal has a fixed width .

I need some help with an exemple to use mini gallery in bt4.
Thank you for help !

Alain



156
alain01
Re: XOOPS 2.5.9 Notes for Theme Creators
  • 2020/4/8 10:41

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Quote:
geekwright wrote:
There is a XoopsFormRendererBootstrap4 that will be included in 2.5.11

you can copy the file XoopsFormRendererBootstrap4.php into your theme's directory and use:
<?php
include_once 'XoopsFormRendererBootstrap4.php';
XoopsFormRenderer::getInstance()->set(new XoopsFormRendererBootstrap4());
Ok, i 've tried on XOOPS 2.5.10
but it was not clear for me, i believed that i should modify theme.tpl...

But, in fact, we should modify the theme_autorun.php file like that :
<?php
/*
xoops_load('XoopsFormRendererBootstrap4');
XoopsFormRenderer::getInstance()->set(new XoopsFormRendererBootstrap4());
*/
include_once 'XoopsFormRendererBootstrap4.php';
XoopsFormRenderer::getInstance()->set(new XoopsFormRendererBootstrap4());

and NOW, it's ok !

(No need action for xoops 2.5.11*)



157
alain01
New admin theme in dev : Cockpit_by_monxoops
  • 2020/3/31 13:59

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Hi, i 've just opened a new github repository for a new admin theme based on AdminLTE

This is a very first version, it's just a dev version.
Feel free to try it and to give some help for this admin theme.

Please see the Readme file before.

https://github.com/alain01/cockpit-by-monxoops

Nota : I'm not a developper, i'm not a designer...



158
alain01
Re: Need some information to clone system theme
  • 2020/3/29 13:23

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Ok; but i'm working onhttps://adminlte.io/themes/AdminLTE/index2.html !



Next hours/days, see my work on github...



159
alain01
Re: xNewsletter 1.4 RC ready for testing
  • 2020/3/25 11:05

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Modules, books (tuto) !
Well done, Goffy,
as usually !
Thank you.
I will test in next days !

This module is perfect for our web site (https://www.monxoops.fr/) with "Allow new user registration" set to "no".



160
alain01
Re: Need some information to clone system theme
  • 2020/3/24 14:44

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


thank you but this cheatsheet get some errors.

========================
With my approach, 3 stages :

1 - AdminLTE to integrate in xoops
2 - Re-organise all admin functions (user univers, maintenance univers, configuration univers, modules unviers...)
3 - Changing display results with bt4 template interfaces

Stage 1 : Done
Stage 2 : I'm working on it




TopTop
« 1 ... 13 14 15 (16) 17 18 19 ... 38 »



Login

Who's Online

185 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 185


more...

Donat-O-Meter

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

Latest GitHub Commits