Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global use #12

Open
BerkerSP opened this issue Mar 28, 2020 · 4 comments
Open

Global use #12

BerkerSP opened this issue Mar 28, 2020 · 4 comments

Comments

@BerkerSP
Copy link


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

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
Copy link
Member

pafnuty commented Mar 28, 2020

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
Copy link
Author

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
Copy link
Member

pafnuty commented Mar 29, 2020

@BerkerSP Could give the code wich you use please?

@BerkerSP
Copy link
Author

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

<div class="top-side center clearfix"> <div class="ts_in tb-wrp"> <div class="ts-title"></div> <div class="st-tabs"> <span class="current">Best news</span> </div> <div class="owl-carousel owl-theme tb-cont" id="owl-top"> {custom template="/app/modules/content/slider/test" category='19,20,21,22,23' from='0' limit="12" cache="no"} </div> <ul class="m-menu to-mob clearfix"> <li><a href="/" class="active">Home</a></li> <li><a href="/">FAQ</a></li> <li><a href="/">Help</a></li> </ul> </div> </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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants