Solved UI.X style compatibility issue + missing phrase

Blackhat

Licensed
Licensed
User Upgrade Duration
User Upgrade Pro
Credit System
Advanced User Profile
Joined
Dec 7, 2019
Messages
188
Reaction score
27
The credits value in message is missing when using UI.X style.

xs_cs_tax_type_fixe phrase should be corrected to xs_cs_tax_type_fixed, and phrase text from Fixe to Fixed
 
Solution
Hello there,

Here is a new update that sould fix the issue :

Regards, SyTry
I hope you fix the compatibility issue for this style. It's the most popular XF style, used by the majority of sites. I just sent you a message and attached the UI.X style.
 
I hope you fix the compatibility issue for this style. It's the most popular XF style, used by the majority of sites. I just sent you a message and attached the UI.X style.
Sorry, but I can't install it on my localhost. Could you just send me a screenshot of what it looks like?
 
The issue is that you made the credits display after the location. Editing the regex to place it after <xf:if is="$extras.custom_fields"> will resolve the problem and make it compatible with most styles because some styles make changes to the message user info elements.

It would be better if you added the edits in a new template xs_cs_credit_postbit this makes it easier to change its location in the message_macros template by adding <xf:include template="xs_cs_credit_postbit" />
 
Last edited:
Hello there,

Here is a new update that sould fix the issue :

Regards, SyTry
 
Solution
The issue is that you made the credits display after the location. Editing the regex to place it after <xf:if is="$extras.custom_fields"> will resolve the problem and make it compatible with most styles because some styles make changes to the message user info elements.

It would be better if you added the edits in a new template xs_cs_credit_postbit this makes it easier to change its location in the message_macros template by adding <xf:include template="xs_cs_credit_postbit" />
This issue is still present.
 
Hello,

xs_cs_tax_type_fixe phrase should be corrected to xs_cs_tax_type_fixed, and phrase text from Fixe to Fixed
This has been taken into account.

For the rest, it depends on your theme. All our add-ons are compatible with the default XenForo theme. If you have a problem with a theme, please either make the change yourself or contact the developer of that theme.
 
I understand that the current modification works with the default style, but the suggested change ensures compatibility with the default style and most other styles. If you prefer to keep the modification as it is, please make the credits appear after <xf:if is="$extras.custom_fields"> instead of tying it to the location field. This approach makes it compatible with most styles, not just the default style.

Change /({{ phrase\('location'\) }})(.*?<\/xf:if>)(.*?<\/xf:if>)/s to (<xf:if is="\$extras\.custom_fields">[\s\S]*?</xf:if>\s*</xf:if>)
 
Correct, but it still requires manual editing, and anyone who wants to display it must manually enable development mode and add it as I mentioned. It would be better to make it compatible so this modification isn't required, especially since most sites use custom styles based on UI.X/PixelExit. Instead, you could simply make it compatible with other styles, just like the DBTech Credits add-on.
 
Back
Top Bottom