What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

No Answer Calling for Game Icon Image

toodlez

Member
Hi, have an advanced question I'm looking for some help with the rosters system game icon + tournaments...

I'm trying to utilize the game icon in the tournament as the page background

I put the following into extra.less

Code:
[data-template="xfa_tourn_tournament"]
.p-pageWrapper {
background: url({{ link('roster/game/icon', $game) }});
}

but it's missing the game id number between /game and /icon for example roster/game/1/icon

how can I do this properly?
Thanks!
 
Hi,

It's not icon it's logo but I am not sure if it's the way to call.

@Fredxd will be able to confirm how game icon url is constructed.

Clément
 
I have look in code and link is good .
PHP:
link('roster/game/icon', $game)

But i don't work how it's work in less file
 
It works the same.

However, my thinking is that $game doesn't exist there :)
Try instead $tournament.Game.

Clément
 
how would you enter this code?

Code:
[data-template="xfa_tourn_tournament"]
{
    .p-pageWrapper {
    background: url({{ link('roster/game/icon', $tournament.Game) }});
}
}

I did this, it still spits out the url url(/clubs/game/icon)
 
so, what I would think is I need to add something between /game and /icon for that game ID that you have coded into there by number
 
No you don't need the url is correct, it means $tournament.Game is not available where you used your code.
I don't understand it btw, is that a template modification you did ?
 

From bespoke add-on development to complex integrations and specialized enhancements, we offer a range of XenForo development services designed to help your community thrive.

Start discussing your needs
Back
Top
Cart