Jump to content

Birthdays this month "block"


pjfry

Recommended Posts

Hello,

I created iin the Pages/CMS a news custom block with the source "plugin" from the category "System -> User". In the conditions I checked the "Has birthday this month". This block works well and shows all members who have birthday this month. Thats great. But one thing do I miss:

At the moment the block show the member name, last visited and the registration date. But it would be great to show the birthday date insted of last visited and registered date.

I looked at the template but there I have no idea how to achiev this!

Any ideas?

Thanks Benny

Link to comment
Share on other sites

That is a solution:

in the block template search for:

<span class='ipsType_light ipsType_small'>{lang="widget_member_joined_date" htmlsprintf="$member->joined->html()"}</span>
{{if $member->last_activity}}
<br><span class='ipsType_light ipsType_small'>{lang="widget_member_last_active_date" htmlsprintf="\IPS\DateTime::ts( $member->last_activity )->html()"}</span>

and replace this with:

<span class='mt_Title'><i class="fa fa-birthday-cake" aria-hidden="true"></i> {lang="mt_bday"}:</span>
<span class='mt_Content'>{$member->birthday}</span> 

 

Many thanks to @V0RT3X666 providing me this solution!

Benny

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...