Jump to content

hi dear friends

I have a request.

I wanna award a prize to some clubs. for example I have 5 clubs that I wanna add some rewards to one club.

please give me the structure or ready code

 

thanks in advance

Link to comment
https://beta.jimiwikman.se/forums/topic/8087-custom-reward-to-special-clups/
Share on other sites
  • Replies 3
  • Created
  • Last Reply
Expand topic overview

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Most Popular Posts

Jimi Wikman
Jimi Wikman

Hi @LoveHate, if I understand your request properly, that would require a plugin, I am afraid. I have not taken that step yet, so you would need one of the Plugin developers for that.

LoveHate
LoveHate

thanks to reply myself write a code for that: {{if $record->customFieldDisplayByKey('custom_field_key')}} {$record->customFieldDisplayByKey('custom_field_key', 'listing')|raw} {{if $item

Jimi Wikman
Jimi Wikman

The custom field key is what you define when you create a new custom field. It is on the second tab called display options. Club_ID you can find when you go to clubs and hover over the edit butto

Expand topic overview

Featured Replies

Hi @LoveHate, if I understand your request properly, that would require a plugin, I am afraid.

I have not taken that step yet, so you would need one of the Plugin developers for that.

thanks to reply

myself write a code for that:

{{if $record->customFieldDisplayByKey('custom_field_key')}}
{$record->customFieldDisplayByKey('custom_field_key', 'listing')|raw}
{{if $item::$IPSclubId == club_ID params="$item"}}
   <div class="club-badge"><i class="fa fa-star"></i></div>
       {{else}}
   <div class="club-badge" style="display:none;"></div>
       {{endif}}
{{endif}}

<!---------- CSS ----------->

.club-badge {
    position: absolute;
    background: black;
    left: 0;
    top:10%;
    border-radius: 50%;
    vertical-align: middle;
    display: flex;
    align-items: center;
    width: 30px;
    height: 30px;
}

but I don't know how to find custom_field_key and club_Key

also I don't know where to put that

The custom field key is what you define when you create a new custom field. It is on the second tab called display options.

Club_ID you can find when you go to clubs and hover over the edit button. The ID is shown in the url at the bottom of the page.

Based on this code it looks like you are adding an extra field in Clubs and then you add this to the theme templates somewhere (depends on where it should show up).

It is a separate function than the achievements however 🙂

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now