Skip to content
View in the app

A better way to browse. Learn more.

JimiWikman.se

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Custom reward to special clups

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

  • Replies 3
  • Views 1.4k
  • Created
  • Last Reply

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.

  • 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

Featured Replies

  • Owner

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.

  • Author

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

  • Owner

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 🙂

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.