Is there any way to use an addon's conditions on custom template?

Status
Not open for further replies.

Citrus

Member
Registered
Joined
Oct 5, 2020
Messages
18
Points
13

Reputation:

Hi everyone,

I wanted to create a custom page for AddonFlares Award System addon. This page shows the user's level and badges but i can not use AddonFlares conditional statements on custom template. Is there any way to use the statements?

Note: Problem solved.
 
Last edited:

Splicho

Emudevs.gg Owner
Staff member
Moderator
Collaborate
Registered
Joined
Jan 21, 2022
Messages
603
Points
103

Reputation:

Hi everyone,

I wanted to create a custom page for AddonFlares Award System addon. This page shows the user's level and badges but i can not use AddonFlares conditional statements on custom template. Is there any way to use the statements?
CitrusOf course you can display the Award data on other pages.

You can use

Level: {{ user_award_level($user) }}
Badges: <xf:include template="af_as_message_postbit"> <xf:set var="$postbitPosition" value="manual" />

Those for example work on other pages, as well as on member_view, member_tooltip and anywhere else possible.
 

Citrus

Member
Registered
Joined
Oct 5, 2020
Messages
18
Points
13

Reputation:

Of course you can display the Award data on other pages.

You can use

Level: {{ user_award_level($user) }}
Badges: <xf:include template="af_as_message_postbit"> <xf:set var="$postbitPosition" value="manual" />

Those for example work on other pages, as well as on member_view, member_tooltip and anywhere else possible.
SplichoWhen i tried on PAGE_CONTAINER level data not worked :/
 
View previous replies…

Citrus

Member
Registered
Joined
Oct 5, 2020
Messages
18
Points
13

Reputation:


It does work indeed, this is page_container
Splicho
1707006024457.png


not works for me
 
Status
Not open for further replies.
Top