XF 1.x Language based user login / register button

KozmoK

Registered
Hi,

I am trying to make my site multilingual - and although the xenforo does a pretty good job at it, your button sprites are locked to one set.

fusiongamer_header.css defines the sprite..

is it possible to make language specific sprite list images? based upon the language pack? They cant seem to find the login/register buttons.

 

oman

Staff
Hi KozmoK,

I've moved this to the customer support area. @Russ and or @Steve will be able to attend to your question shortly.

Regards,
oman
 

Russ

Pixel Exit Staff
I'll do some digging but I'm not exactly sure it would work, we'd need a conditional, xen:if is="english" ect....

I'll take a look this weekend, apologies for the delay, I've been on vacation then a flu.
 

Russ

Pixel Exit Staff
BUMP - If this can't be done easily I'd like to hire you for the modifications.
Actually, I've got it:

Code:
<xen:if is="{$visitor.language_id} == 2">
html .upsprites { background-image  : url('@imagePath/xenforo/images/spriteother.png'); }
</xen:if>
Where 2 would be the language ID, and spriteother needs to be a different sprite(new language.

Can you give me the translation for the following text:

sprite.png


Needs to be small :D
 

Russ

Pixel Exit Staff
Actually that would be problem as I literally can't find the sprite PSD I used for another language translation. I'll need to re-arrange the original PSD :unsure:

I should have time tomorrow to deliver it to you
 

KozmoK

Registered
Thanks!

So what template should I stick this code?

Code:
<xen:if is="{$visitor.language_id} == 2">
html .upsprites { background-image  : url('@imagePath/xenforo/images/spriteother.png'); }
</xen:if>
 

KozmoK

Registered
It didnt work for me ;( I tried placing it in xb_custom_style.css

I tried this:

Code:
<xen:if is="{$visitor.language_id} == 6">
.upsprites {
    background-image    : url('@imagePath/xenforo/images/spriteother.png');
    background-color    : transparent;
    background-repeat    : no-repeat;
}
</xen:if>
and this:

Code:
<xen:if is="{$visitor.language_id} == 6">
html .upsprites {
    background-image    : url('@imagePath/xenforo/images/spriteother.png');
    background-color    : transparent;
    background-repeat    : no-repeat;
}
</xen:if>
 

Russ

Pixel Exit Staff
Try this inside page_container right above the </head>

Code:
<style>
<xen:if is="{$visitor.language_id} == 6">
html .upsprites {
    background-image    : url('@imagePath/xenforo/images/spriteother.png') !important;
}
</xen:if>
</style>
If that doesn't work I'll need access to debug(PM or Support Ticket)
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.