dle-modules / DLE-UserBox

UserBox - вывод информации о любом пользователе в любом месте сайта на DLE 12.x-13.x
http://pafnuty.name/modules/142-userbox.html
MIT License
12 stars 1 forks source link

Global use #12

Open BerkerSP opened 4 years ago

BerkerSP commented 4 years ago

@pafnuty @lazyphpdev не забудь посмотреть этот тиккет :ticket:

Good morning, how could it be done to use the module globally? For example, adding the insert from header and that it can be used in the whole site without being limited only to the default.tpl, thanks!

pafnuty commented 4 years ago

Hi @BerkerSP! To apply another template for display userinfo, you shoul use additional param &template=templatename You can add {include file="engine/modules/userbox.php?&userName=login&template=yourtemplate"} to any place

BerkerSP commented 4 years ago

Thank you very much for your prompt response!

I've been testing the template tag and it works perfectly but I wonder in addition to this, I've tried to make the {custom} tag work also with the Userbox module to be able to customize the image quality as well as the amount of news that are displayed but I failed, is there any method for that tag to be covered too? Thank you very much!

pafnuty commented 4 years ago

@BerkerSP Could give the code wich you use please?

BerkerSP commented 4 years ago

Sure, like example i've this in main.tpl to call slider using owl-carousel

{include file="engine/modules/userbox.php?&userName=this&template=app/modules/sections/car-2"}

and i want the carousel can recognize the module userbox to use public xfvalue userfield but i'm calling menues too and with that the code to request news of site

`

Best news
    </div>`

But this don't recognize with that method and the link of images appear like:

https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy?url=[xfvalue_poster]?q=[xfnotgiven_cdx_img-q]100[/xfnotgiven_cdx_img-q][xfgiven_cdx_img-q]10[/xfgiven_cdx_img-q]&fm=jpg&container=focus&refresh=31536000